G04 Dwell
Fanuc G-code · Mill, Lathe
On mills: Dwell
Pauses the program for a set time before the next block. Used at the bottom of a hole, after a spindle start, or to let coolant reach the cut.
Format
Addresses
| Address | What it does |
|---|---|
X | Dwell time in seconds, decimal point allowed |
P | Dwell time in milliseconds, no decimal point |
How it works
One shot, group 00. Must be in its own block or with other non motion words.
Example program
G04 X2. (WAIT 2 SECONDS FOR SPINDLE)
G01 Z-.5 F5. (PLUNGE)
G04 P500 (WAIT HALF A SECOND AT BOTTOM)
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- P1000 is one second. P1. with a decimal point is not allowed and may give an alarm or be read wrong.
- On lathes U can also be used for seconds. On a mill use X or P.
- A parameter can switch dwell to spindle revolutions in G95 mode. Check if your dwell seems too long.
On lathes: Dwell
Pauses axis motion for a set time while the spindle keeps turning. Used at the bottom of grooves and holes to clean up the surface.
Format
Addresses
| Address | What it does |
|---|---|
X | Dwell in seconds, decimal point allowed |
U | Dwell in seconds, decimal point allowed |
P | Dwell in milliseconds, no decimal point |
How it works
Non-modal. Acts only in its own block.
Example program
G01 X1.25 F.002 (PLUNGE GROOVE)
G04 X.5 (DWELL HALF A SECOND)
G00 X1.6 (RETRACT)
Example is in inch. Check offsets and clearances first.
Watch out for
- P takes no decimal point. P500 is half a second.
- Put G04 on its own line. X on a G04 line is time, not a move.
- A parameter can make dwell count spindle revolutions in G99 mode. Check your setting.
Related codes
G04 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Haas NGC | Dwell |
| Mazak (EIA) | Dwell |
| Okuma OSP | Dwell |
| Mitsubishi M70 M80 | Dwell |
| Brother Speedio | Dwell |
| Siemens 840D 828D | Dwell for time or spindle revolutions |
| Heidenhain TNC (ISO) | Dwell time |
| Fagor 8055 8065 | Dwell or stop block preparation |
| LinuxCNC Tormach | Dwell |
| Mach3 Mach4 | Dwell |
| Centroid CNC12 Acorn | Dwell |
| Hurco WinMax (NC) | Dwell |
| Fadal | Dwell |
| Swiss (Citizen Star) | Dwell |
Every G-code for Fanuc in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.
Open G04 in the app All Fanuc G-codes