Home › G-codes › Okuma OSP › G54
G54 Tool length offset X axis
Okuma OSP G-code · Mill
Applies a tool length offset on the X axis, for a horizontal tool or an attachment. On Okuma G54 is not a work offset.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
G54 X H
Addresses
| Address | What it does |
|---|---|
X | Position after the offset |
H | Tool offset number |
How it works
Modal, tool length offset group. Cancel with G53.
Example program
O1000 (OKUMA MILL SAMPLE)
N1 G15 H1 (WORK COORDINATE SYSTEM 1)
N2 T5 M06 (ANGLE HEAD TOOL)
N3 G00 G90 Y1. Z-1. S800 M03 (POSITION)
…
N1 G15 H1 (WORK COORDINATE SYSTEM 1)
N2 T5 M06 (ANGLE HEAD TOOL)
N3 G00 G90 Y1. Z-1. S800 M03 (POSITION)
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- A Fanuc G54 in an Okuma program turns on an X length offset, not work zero. Use G15 H1.
- G55 is Y axis and G57 to G59 are extra axes.
Related codes
G54 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Work coordinate system 1 |
| Haas NGC | Work offset 1 select |
| Mazak (EIA) | Work offsets G54 to G59 |
| Mitsubishi M70 M80 | Work coordinate G54 to G59 |
| Brother Speedio | Work coordinate systems G54 to G59 |
| Siemens 840D 828D | Settable work offsets G54 to G57 |
| Heidenhain TNC (ISO) | Datum shift in the program |
| Fagor 8055 8065 | Absolute zero offset 1 |
| LinuxCNC Tormach | Work coordinate system 1 |
| Mach3 Mach4 | Work offset 1 |
| Centroid CNC12 Acorn | Work coordinate system 1 |
| Hurco WinMax (NC) | Work coordinate system 1 |
| Fadal | Fixture offset 1, same as E1 |
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 G54 in the app All Okuma OSP G-codes