[Marlin] M108 - Break and Continue

circle-check

Description

The M108arrow-up-right command requires EMERGENCY_PARSER for full effectiveness. (Otherwise a full queue blocks the parser.)

Some G-code commands cause Marlin to go into a closed loop, waiting indefinitely for a certain state or event. For example, M109arrow-up-right waits for the target temperature to be reached, and M0arrow-up-right waits for an LCD click.

In the case of M109arrow-up-right, the M108arrow-up-right command stops waiting for the target temperature and continues processing G-code. This may result in "cold extrude" messages. For a full stop use M112arrow-up-right.

In the case of M0arrow-up-right the M108arrow-up-right command acts like the LCD button, breaking out of M0arrow-up-right and continuing to process the G-code queue.

Notes

  • With both EMERGENCY_PARSER and HOST_KEEPALIVE_FEATURE enabled, hosts will be able to prompt for continuation or cancellation, confirming with M108arrow-up-right and cancelling with M112arrow-up-right.

Usage

M108

Examples

Use M108arrow-up-right as a "Continue" button in your host software.

M0 You're up, mate ; in your G-code file
M108               ; as your "Continue" button

Last updated

Was this helpful?