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


---

# 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-g004-dwell.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.
