This is an old revision of the document!


400px"]

G4 means “pause for a given duration of time”.

Format

The command is used as such :

[code] G4 S5
code]

Which means : pause for 5 seconds.

This is useful for example to wait for spindles to ramp up to speed, or to wait for small layers to cool down on 3D printers.

Parameters

~ Parameter ~ Usage ~ Example
s Duration to wait in seconds G4 S10
p Duration to wait in milliseconds ( thousandth of a second ) G4 P100

Note that if grbl_mode is set to true then the p parameter is the duration to wait in seconds, not milliseconds, as a float value. This is to conform to G-Code standards.

Further reading