Home › G-codes › Okuma OSP › G15
G15 Work coordinate system select, modal
Okuma OSP G-code · Mill
Selects a work coordinate system by number with H. This is how Okuma picks the work zero instead of Fanuc G54 to G59.
Format
G15 H
Addresses
| Address | What it does |
|---|---|
H | Work coordinate system number |
How it works
Modal. Stays on until another G15 H.
Example program
O1000 (OKUMA MILL SAMPLE)
N1 G15 H1 (WORK COORDINATE SYSTEM 1)
N2 T1 M06 (.500 DRILL)
N3 G00 G90 X1. Y1. S1500 M03 (FIRST HOLE)
…
N1 G15 H1 (WORK COORDINATE SYSTEM 1)
N2 T1 M06 (.500 DRILL)
N3 G00 G90 X1. Y1. S1500 M03 (FIRST HOLE)
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- G54 to G59 on Okuma are tool length offset codes, not work offsets. Do not post Fanuc style G54.
- H in G15 is the work system number. H in G56 is the tool offset number.
Related codes
G15 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Polar coordinate command cancel |
| Haas NGC | Secondary spindle swap cancel |
| Mazak (EIA) | Polar coordinate input off |
| Brother Speedio | Polar coordinate cancel |
| Fagor 8055 8065 | Longitudinal axis selection |
| Mach3 Mach4 | Polar coordinates off |
| Hurco WinMax (NC) | Polar coordinates cancel |
| Fadal | YZ circular interpolation with A axis |
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 G15 in the app All Okuma OSP G-codes