# LinuxCNC G4 Dwell

Instructions · `G4` · verification: source checked

G4 is a dwell command in LinuxCNC G-code. It pauses all axis motion for the time given by the P word in seconds. It does not affect spindle, coolant, or I/O.

## Specification

| Property | Value |
|---|---|
| Language | gcode |
| Code | G4 |
| Syntax | G4 P- |
| Dialect | LinuxCNC |

### Parameters

| Name | Data type | Description |
|---|---|---|
| P | floating point | Seconds to dwell; all axes remain unmoving. Fractions of a second may be used. |

## Safety

- Operating limit: the P number must be specified and must not be negative.

## Study notes

- Dwell time is a floating point value, so fractions of a second are allowed.
- Example: G4 P0.5 waits for 0.5 seconds before proceeding.
- G4 does not affect spindle, coolant, or any I/O.

## Sources

1. [G-Codes](https://linuxcnc.org/docs/html/gcode/g-code.html#gcode:g4) (accessed 2026-10-26)

---

Source page: https://machineschema.com/instruction/gcode-g04  
JSON: https://machineschema.com/instruction/gcode-g04.json  
License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Cite Machine Schema and the original sources.
