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.
| Language | gcode |
|---|---|
| Code | G4 |
| Syntax | G4 P- |
| Dialect | LinuxCNC |
| Name | Data type | Description |
|---|---|---|
| P | floating point | Seconds to dwell; all axes remain unmoving. Fractions of a second may be used. |