flexi-bot/docs/marlin/_gcode/M027.md
2023-09-05 20:38:49 +02:00

1.2 KiB

tag title brief author requires group codes notes parameters examples
m0027 Report SD print status Print SD progress to serial thinkyhead, TheSFReader SDSUPPORT sdcard
M27
Requires [`SDSUPPORT`](/docs/configuration/configuration.html#sd-card)
tag optional description values
S true Interval between auto-reports. `S0` to disable (requires `AUTO_REPORT_SD_STATUS`)
tag type
seconds int
tag optional description
C true Report the filename and long filename of the current file
pre code
Report current SD status M27 S4
pre code
Report SD status every 4 seconds M27 S4
pre code
Stop reporting SD status M27 S0
pre code
Report currently open filename M27 C

With no parameter, report the current SD read position in the form "SD printing byte 123/12345." If no file is open the response is "Not SD printing."

With S<seconds>, set the SD status auto-report interval. (Requires AUTO_REPORT_SD_STATUS)

With C, get the currently open file's name (and long filename if possible). Print "(no file)" if no file is open.