> 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-g004-dwell.md).

# \[Marlin] G004 - Dwell

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

## Description

Dwell pauses the command queue and waits for a period of time.

## Notes

* If both `S` and `P` are included, `S` takes precedence.
* '[`G4`](https://app.gitbook.com/docs/gcode/G004.html) with no arguments is effectively the same as [`M400`](https://app.gitbook.com/docs/gcode/M400.html).'

## Usage

`G4` `[P<time in ms>]` `[S<time in sec>]`

### Parameters

* `[P<time in ms>]` Amount of time to dwell
* `[S<time in sec>]` Amount of time to dwell

## Examples

```
G4 P500 ; Dwell for 1/2 second
```
