Home › G-codes › Siemens 840D 828D › G54
G54 Settable work offsets G54 to G57
Siemens 840D 828D G-code · Mill and lathe
Activates the work offset stored in the G54 line of the work offset table. G55, G56 and G57 work the same with their own lines.
Format
G54 or G55 or G56 or G57
How it works
Modal, G group 8 (settable work offset). Cancel with G500.
Example program
G17 G90 G54 G71 ; FIRST FIXTURE
G0 X0 Y0 Z50 ; PART ZERO OF G54
G55 ; SECOND FIXTURE
G0 X0 Y0 ; PART ZERO OF G55
G0 X0 Y0 Z50 ; PART ZERO OF G54
G55 ; SECOND FIXTURE
G0 X0 Y0 ; PART ZERO OF G55
Example is in inch. Check offsets and clearances first.
Watch out for
- Whether the offset stays after reset depends on machine data, so always program it at the start.
- Programmable frames like TRANS and ROT act on top of G54.
- G505 to G599 give more offsets if the machine builder has enabled them.
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 |
| 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 Siemens 840D 828D 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 Siemens 840D 828D G-codes