# \[Marlin] M108 - Break and Continue

{% hint style="success" %}
**📅Update: 2020/09/18**
{% endhint %}

## Description

The [`M108`](https://app.gitbook.com/docs/gcode/M108.html) 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, [`M109`](https://app.gitbook.com/docs/gcode/M109.html) waits for the target temperature to be reached, and [`M0`](https://app.gitbook.com/docs/gcode/M000-M001.html) waits for an LCD click.

In the case of [`M109`](https://app.gitbook.com/docs/gcode/M109.html), the [`M108`](https://app.gitbook.com/docs/gcode/M108.html) command stops waiting for the target temperature and continues processing G-code. This may result in "cold extrude" messages. For a full stop use [`M112`](https://app.gitbook.com/docs/gcode/M112.html).

In the case of [`M0`](https://app.gitbook.com/docs/gcode/M000-M001.html) the [`M108`](https://app.gitbook.com/docs/gcode/M108.html) command acts like the LCD button, breaking out of [`M0`](https://app.gitbook.com/docs/gcode/M000-M001.html) 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 [`M108`](https://app.gitbook.com/docs/gcode/M108.html) and cancelling with [`M112`](https://app.gitbook.com/docs/gcode/M112.html).

## Usage

`M108`

## Examples

Use [`M108`](https://app.gitbook.com/docs/gcode/M108.html) as a "Continue" button in your host software.

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://manual.rotrics.com/gcode/marlin-original-commands/marlin-m108-break-and-continue.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
