thinkyhead

M28 - Start SD write

sdcard Start writing to a file on the SD card SDSUPPORT

Description

This command starts a file write. All commands received by Marlin are written to the file and are not executed until M29 closes the file.

With ‘B1’, set an optimized binary file transfer mode. (Requires BINARY_FILE_TRANSFER)

Notes

Use M928 to log commands to a file during printing.

Usage

M28 [B1] filename

Parameters

[B1]

Set an optimized binary file transfer mode. (Requires BINARY_FILE_TRANSFER)

filename

File name to write

Examples

Start writing to file.txt

M28 file.txt

Start binary writing to file.txt

M28 B1 file.txt