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
| Address | What it does |
|---|---|
X Y Z | Shift 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 *
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
- This is not the Fanuc G54 work offset. Workpiece presets are set in the preset table or with G247.
- G91 makes the shift add to the last shift.
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 |
| Okuma OSP | Tool length offset X axis |
| 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 |
| 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 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