CNC mill · G-code
G04: dwell
G04 holds the axes still for the time in P, then the program goes on. Haas lists it as one-shot (group 00). On a Haas, P10. is 10 seconds but P10, with no decimal point, is 10 milliseconds; LinuxCNC reads P as seconds. Formats below from Haas and LinuxCNC, each from its maker.
Worked example
Half a second at the bottom of a counterbore to clean up the floor. Written for this page in the Haas format.
G01 Z-0.25 F5.G04 P0.5 (the decimal point makes it seconds on a Haas)G00 Z0.1How each control writes it
Haas G04 P-
One source: Haas Automation, the control's maker
- P
- Dwell time: with a decimal point in seconds (P10. = 10 s), without one in milliseconds (P10 = 10 ms)
- P is modal: inside a canned cycle, the P of a G04 or M97 is also taken by the cycle.
Source: Haas Automation, mill G04
LinuxCNC G4 P-
One source: the LinuxCNC project, the control's maker
- P
- Dwell time in seconds; fractions allowed (P0.5)
- G4 does not affect the spindle, coolant or any I/O.
- A negative or missing P is an error.
Source: LinuxCNC documentation, "G4 Dwell" (archived Oct 29, 2026)
No Fanuc row yet: that chapter of the 0i manual has not been read.
Haas follows Fanuc's numbering, but options and parameters differ between controls: check your control's manual.