Back to Supported G-Codes
G4 - Dwell
DMC File Mode: Supported
Streaming Mode: Supported
Description
The G4 command causes the machine to pause (dwell) for a specified amount of time. This is useful for allowing spindles to reach full speed, letting materials settle, or creating delays in machining operations.
Syntax
G4 P<milliseconds>
G4 S<seconds>
Parameters
Parameter | Description | Example |
---|---|---|
P | Time to dwell in milliseconds | P1000 |
S | Time to dwell in seconds | S2.5 |
Examples
Dwell for 500 milliseconds
G4 P500
Dwell for 2 seconds
G4 S2
Typical spindle startup sequence
M3 S1000 ; Start spindle at 1000 RPM
G4 P2000 ; Wait 2 seconds for spindle to reach speed
G1 X10 Y10 F100 ; Begin cutting move