CNC Machinist Calculator Ultra

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

AddressWhat it does
XPosition after the offset
HTool 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)
…

The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G56 · G53 · G15

G54 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucWork coordinate system 1
Haas NGCWork offset 1 select
Mazak (EIA)Work offsets G54 to G59
Mitsubishi M70 M80Work coordinate G54 to G59
Brother SpeedioWork coordinate systems G54 to G59
Siemens 840D 828DSettable work offsets G54 to G57
Heidenhain TNC (ISO)Datum shift in the program
Fagor 8055 8065Absolute zero offset 1
LinuxCNC TormachWork coordinate system 1
Mach3 Mach4Work offset 1
Centroid CNC12 AcornWork coordinate system 1
Hurco WinMax (NC)Work coordinate system 1
FadalFixture 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

App Store Google Play