Home › G-codes › Haas NGC › G04
G04 Dwell
Haas NGC G-code · Mill, Lathe
On mills: Dwell
Pauses the program for the time in P. Use it to let the spindle reach speed, clean up a spot face, or wait for a device.
Format
Addresses
| Address | What it does |
|---|---|
P | Dwell time. With a decimal point it is seconds. Without a decimal point it is milliseconds |
How it works
Non-modal, group 00. Only acts on the line where it is commanded.
Example program
G04 P2. (WAIT 2 SECONDS FOR SPEED)
G01 Z-.1 F8. (START CUTTING)
Example is in inch. Check offsets and clearances first.
Watch out for
- G04 P2. is 2 seconds but G04 P2 is only 2 milliseconds. Always write the decimal point.
- A dwell inside a canned cycle uses the P of that cycle, not G04.
On lathes: Dwell
Pauses the program for the time in P. Use it at the bottom of a groove or face cut to clean up the surface.
Format
Addresses
| Address | What it does |
|---|---|
P | Dwell time. With a decimal point it is seconds, without it is milliseconds |
How it works
Non-modal, group 00.
Example program
G00 G54 X1.1 Z-.5 (OVER GROOVE)
G01 X.8 F.003 (PLUNGE GROOVE)
G04 P.5 (DWELL HALF SECOND)
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- G04 P1. is one second. G04 P1 is one millisecond. The decimal point matters.
- P values are modal inside canned cycles, so a G04 P can also be read by the active cycle.
Related codes
G04 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | 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 Haas NGC 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 Haas NGC G-codes