Home › G-codes › Mazak (EIA) › G04
G04 Dwell
Mazak (EIA) G-code · Mill and lathe
Pauses the program for a set time before the next block. Use it at the bottom of a spot face or groove, or to let the spindle reach speed.
Format
G04 X or G04 P
Addresses
| Address | What it does |
|---|---|
X | Dwell time in seconds, with a decimal point |
P | Dwell time. Units depend on a parameter and on the decimal point |
How it works
Non-modal. Acts only in its own block.
Example program
G01 Z-.25 F5. (FEED TO SPOT FACE DEPTH)
G04 X.5 (DWELL HALF A SECOND)
G00 Z1. (RETRACT)
G04 X.5 (DWELL HALF A SECOND)
G00 Z1. (RETRACT)
Example is in inch. Check offsets and clearances first.
Watch out for
- X1.5 always means 1.5 seconds. P without a decimal point may be read in milliseconds or seconds, set by parameter. Use X with a decimal to be safe.
- G04 alone in a block with no time does nothing useful.
Related codes
G04 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Dwell |
| Haas NGC | 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 Mazak (EIA) 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 Mazak G-codes