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

1.7 KiB

tag title brief author group codes related notes parameters example
m0114 Get Current Position Report the current tool position to the host. thinkyhead hosts
M114
M154
Hosts should respond to the output of `M114` by updating their current position.
G-code [`M154`](/docs/gcode/M154.html) can be used to to auto-report positions to the host, reducing serial traffic.
tag optional description values
D true Detailed information (requires `M114_DETAIL`)
type
flag
tag optional description values
E true Report E stepper position (requires `M114_DETAIL`)
type
flag
tag optional description values
R true Real position information (requires `M114_REALTIME`)
type
flag
pre code
Get the _projected_ current position > M114 X:0.00 Y:127.00 Z:145.00 E:0.00 Count X: 0 Y:10160 Z:116000 ok

Get the "current position" of the active tool. Stepper values are included.

If M114_LEGACY is enabled the planner will be synchronized before reporting so that the reported position is not be ahead of the actual planner position.

Normally M114 reports the "projected position" which is the last position Marlin was instructed to move to.

With the M114_REALTIME option you can send R to get the "real" current position at the moment that the request was processed. This position comes directly from the steppers in the midst of motion, so when the printer is moving you can consider this the "recent position."

For debugging it can be useful to enable M114_DETAIL which adds D and E parameters to get extra details.