blob: f7cb44950ca680874bce801ff44532f803f19695 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
---
tag: m0154
title: Position Auto-Report
brief: Periodically auto-report position to serial
author: thinkyhead
since: 2.0.8.1
requires: AUTO_REPORT_POSITION
group: hosts
codes: [ M154 ]
related: M114
notes:
- Requires `AUTO_REPORT_POSITION`.
- Also enable `EXTENDED_CAPABILITIES_REPORT` to notify hosts about this capability.
parameters:
-
tag: S
optional: true
description: Interval in seconds between auto-reports. `S0` to disable.
values:
-
tag: seconds
type: int
examples:
-
pre: Report current position every 4 seconds
code: M154 S4
-
pre: Stop reporting position
code: M154 S0
---
Some host software and serial controllers use `M114` to get the current position, but polling with [`M114`](/docs/gcode/M114.html) 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`](/docs/gcode/M114.html).
|