G04 dwell G-code halts/delays current operation for the specified time (seconds or milliseconds) but during this whole process only axis motions of cnc machine are stopped and spindle keeps rotating.
Syntax
G04 P...
or
G04 X...
or
G04 U...
Parameter | Description |
---|---|
P | Dwell in milliseconds (msec) |
X | Dwell in seconds (sec) |
U | Dwell in seconds (sec) |
G-Code Data
G-Code | Group | Modal/Non-modal |
---|---|---|
G04 | 00 | Non-modal |
Usage
G04 P1000 (wait for 1 second)
the above part-program instruction will delay current cnc machining operation for one second.
Examples
So to program a 10 Seconds dwell
G04 X10
or
G04 U10
or
G04 P10000 (dwell time 1sec = 1000msec)
So to program a 2.5 Seconds dwell
G04 X2.5
How to dwell for Revolutions?
It is possible to have the pause in number of revolutions by using following formula,
Dwell = 60 / S (spindle speed in rpm)
Example
If the spindle rotates at 300 rpm, the dwell time for one revolution will be
0.2 seconds = 60 / 300
So if a dwell is required for 3 spindle rotations,
G4 U0.6 (0.2 seconds x 3 rpm)