> For the complete documentation index, see [llms.txt](https://manual.rotrics.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual.rotrics.com/gcode/marlin-original-commands/marlin-m400-finish-moves.md).

# \[Marlin] M400 - Finish Moves

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

## Description

This command causes all GCode processing to pause and wait in a loop until all moves in the planner are completed.

## Usage

`M400`

## Examples

Wait for moves to finish before turning off the spindle

```
M400
M5    ; Without M400 this happens too soon
```
