CNC Machinist Calculator Ultra

Home › G-codes › Heidenhain TNC (ISO) › G54

G54 Datum shift in the program

Heidenhain TNC (ISO) G-code · Mill

Shifts the datum by the programmed X Y Z values. Klartext: CYCL DEF 7.0 DATUM SHIFT with 7.1 X, 7.2 Y.

Format

G54 X Y Z

Addresses

AddressWhat it does
X Y ZShift values from the current datum

How it works

Active from the block where it is defined. Cancel with G54 X+0 Y+0 Z+0.

Example program

; SHIFT TO SECOND PART
N50 G54 X+60 Y+40 *
N60 L1,0 *
N70 G54 X+0 Y+0 Z+0 *

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G53 · G247 · G28 · G73

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
Okuma OSPTool length offset X axis
Mitsubishi M70 M80Work coordinate G54 to G59
Brother SpeedioWork coordinate systems G54 to G59
Siemens 840D 828DSettable work offsets G54 to G57
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 Heidenhain TNC (ISO) 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 Heidenhain TNC G-codes

App Store Google Play