# \[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
```
