G54 Work coordinate system 1
Fanuc G-code · Mill, Lathe
On mills: Work coordinate system 1
Selects work offset 1. The control adds this offset to every position so the program can be written from the part zero instead of machine zero. The default at power on.
Format
G54
How it works
Modal, group 14. G54 to G59 and G54.1 share the group.
Example program
G17 G20 G40 G49 G80 G90 (SAFE START)
T1 M06 (TOOL 1)
G54 G00 X0. Y0. S2500 M03 (FIRST VISE, PART ZERO)
G43 H01 Z1. M08 (LENGTH COMP)
T1 M06 (TOOL 1)
G54 G00 X0. Y0. S2500 M03 (FIRST VISE, PART ZERO)
G43 H01 Z1. M08 (LENGTH COMP)
Example is in inch. Check offsets and clearances first.
Watch out for
- Set the offset on the work offset page or with G10 L2 P1.
- The external, or 00, offset is added to all work offsets. Keep it at zero unless the shop uses it on purpose.
- Check the right offset is active on the screen before pressing cycle start.
On lathes: Work coordinate system 1
Selects work offset 1. Program zero is taken from the G54 line on the work offset page. G54 is the power on default.
Format
G54
How it works
Modal, group 14. Power on default.
Example program
G54 (WORK OFFSET 1)
T0101 (OD TURNING TOOL)
G00 X2.1 Z.1 (APPROACH)
T0101 (OD TURNING TOOL)
G00 X2.1 Z.1 (APPROACH)
Example is in inch. Check offsets and clearances first.
Watch out for
- The external work shift line adds to every work offset. Keep it at zero unless you mean to use it.
- On most lathes the work offset holds Z only, with X at zero.
Related codes
G54 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| 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 |
| 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 Fanuc 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 Fanuc G-codes