thinkyhead

M154 - Position Auto-Report

2.0.8.1 hosts Periodically auto-report position to serial AUTO_REPORT_POSITION

Description

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.

Notes

Enable EXTENDED_CAPABILITIES_REPORT to notify hosts about this capability.

Usage

M154 [S<seconds>]

Parameters

[S<seconds>]

Interval in seconds between auto-reports. S0 to disable.

    Examples

    Report current position every 4 seconds

    M154 S4

    Stop reporting position

    M154 S0