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

1.0 KiB

tag title brief author since requires group codes related notes parameters examples
m0154 Position Auto-Report Periodically auto-report position to serial thinkyhead 2.0.8.1 AUTO_REPORT_POSITION hosts
M154
M114
Requires `AUTO_REPORT_POSITION`.
Also enable `EXTENDED_CAPABILITIES_REPORT` to notify hosts about this capability.
tag optional description values
S true Interval in seconds between auto-reports. `S0` to disable.
tag type
seconds int
pre code
Report current position every 4 seconds M154 S4
pre code
Stop reporting position M154 S0

Some host software and serial controllers use M114 to get the current position, but polling with M114 is less than optimal, and in older versions of Marlin it would cause print stuttering. With M154 hosts can simply set an interval and Marlin will keep sending reports automatically. This method is preferred over polling with M114.