Home › G-codes › LinuxCNC Tormach › G4
G4 Dwell
LinuxCNC Tormach G-code · Mill and lathe
Pauses motion for P seconds. Spindle, coolant and outputs stay as they are.
Format
G4 P
Addresses
| Address | What it does |
|---|---|
P | Dwell time in seconds, decimals allowed |
How it works
Non modal. Acts only in its own block.
Example program
G20 G17 G40 G49 G54 G80 G90 G94 (INCH, SAFE START)
T2 M6 G43 (CENTER DRILL)
S2000 M3
G0 X1 Y1 Z0.1
…
T2 M6 G43 (CENTER DRILL)
S2000 M3
G0 X1 Y1 Z0.1
…
The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- P is always seconds in LinuxCNC, not milliseconds like some Fanuc setups.
- A missing or negative P is an error.
Related codes
G4 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Dwell |
| 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 |
| Mach3 Mach4 | Dwell |
| Centroid CNC12 Acorn | Dwell |
| Hurco WinMax (NC) | Dwell |
| Fadal | Dwell |
| Swiss (Citizen Star) | Dwell |
Every G-code for LinuxCNC Tormach 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 G4 in the app All LinuxCNC Tormach G-codes