LinuxCNC G4 Dwell

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.

Source checked6/6 values · 2026-10-26

Specification

1 source
Languagegcode
CodeG4
SyntaxG4 P-
DialectLinuxCNC

Parameters

NameData typeDescription
Pfloating pointSeconds to dwell; all axes remain unmoving. Fractions of a second may be used.

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.

Safety

  • Operating limit: the P number must be specified and must not be negative.
↑↓ navigate↵ openesc close