Home › G-codes › Okuma OSP › G04
G04 Dwell
Okuma OSP G-code · Mill, Lathe
On mills: Dwell
Pauses the program for a set time before the next block runs. Used to clean up a hole bottom or let the spindle settle.
Format
Addresses
| Address | What it does |
|---|---|
F | Dwell time, normally seconds |
How it works
One shot. Active only in its own block.
Example program
N1 G15 H1 (WORK COORDINATE SYSTEM 1)
N2 G00 G90 X1. Y1. S1200 M03 (OVER THE HOLE)
N3 G56 Z.1 H1 (LENGTH OFFSET)
…
The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- The time unit can be changed by parameter. Prove it with a short dwell first.
- Okuma uses F for dwell time here, not X like many Fanuc programs.
On lathes: Dwell
Holds the next block for a set time after the previous block ends. Used at the bottom of a groove.
Format
Addresses
| Address | What it does |
|---|---|
F | Dwell time |
How it works
One shot.
Example program
N1 G50 S3000 (MAX SPINDLE 3000 RPM)
N2 G00 X2.2 Z-1. T050505 (.125 GROOVE TOOL)
N3 G97 S800 M03 (800 RPM)
…
The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- The time unit is set by parameter. Maximum is 9999.99 seconds.
- F here is time, not feed.
Related codes
G04 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Dwell |
| Haas NGC | Dwell |
| Mazak (EIA) | 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 Okuma OSP 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 Okuma OSP G-codes