Home › G-codes › Okuma OSP › G91
G91 Incremental programming
Okuma OSP G-code · Mill, Lathe
On mills: Incremental programming
Positions are distances from the current point. Useful for repeated patterns in a subprogram.
Format
G91
How it works
Modal. Cancel with G90.
Example program
O1000 (OKUMA MILL SAMPLE)
N1 G15 H1 (WORK COORDINATE SYSTEM 1)
N2 G00 G90 X1. Y1. (FIRST HOLE)
N3 G91 X.5 (NEXT HOLE .5 OVER)
…
N1 G15 H1 (WORK COORDINATE SYSTEM 1)
N2 G00 G90 X1. Y1. (FIRST HOLE)
N3 G91 X.5 (NEXT HOLE .5 OVER)
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- A forgotten G91 is a common crash. Switch back to G90 right after.
On lathes: Incremental programming
X and Z are distances from the current point. X distance is on diameter.
Format
G91
How it works
Modal. Cancel with G90.
Example program
O2000 (OKUMA LATHE SAMPLE)
N1 G50 S3000 (MAX SPINDLE 3000 RPM)
N2 G90 G00 X2. Z.1 T010101 (ABSOLUTE)
N3 G91 G01 Z-.5 F.01 (INCREMENTAL .5)
…
N1 G50 S3000 (MAX SPINDLE 3000 RPM)
N2 G90 G00 X2. Z.1 T010101 (ABSOLUTE)
N3 G91 G01 Z-.5 F.01 (INCREMENTAL .5)
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Return to G90 right after the incremental moves.
Related codes
G91 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Incremental programming |
| Haas NGC | Incremental positioning |
| Mazak (EIA) | Incremental programming |
| Mitsubishi M70 M80 | Incremental programming |
| Brother Speedio | Incremental programming |
| Siemens 840D 828D | Incremental dimensions |
| Heidenhain TNC (ISO) | Incremental dimensions |
| Fagor 8055 8065 | Incremental programming |
| LinuxCNC Tormach | Incremental distance mode |
| Mach3 Mach4 | Incremental mode |
| Centroid CNC12 Acorn | Incremental positioning |
| Hurco WinMax (NC) | Incremental mode |
| Fadal | Incremental positioning |
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 G91 in the app All Okuma OSP G-codes