Home › G-codes › Mazak (EIA) › G54
G54 Work offsets G54 to G59
Mazak (EIA) G-code · Mill and lathe
Selects one of six work coordinate systems, G54 to G59. Program X Y Z values are then measured from that part zero. Mazak calls these work offsets in the EIA screens.
Format
G54 to G59
Addresses
| Address | What it does |
|---|---|
G54 to G59 | Work offset 1 to 6 |
How it works
Modal, group 12. G54 is the power on state.
Example program
G20 G17 G40 G49 G80 G90 (SAFETY LINE)
T01 M06 (TOOL 1)
G54 G00 X0. Y0. S3000 M03 (WORK OFFSET 1)
G43 H01 Z1. (LENGTH OFFSET)
T01 M06 (TOOL 1)
G54 G00 X0. Y0. S3000 M03 (WORK OFFSET 1)
G43 H01 Z1. (LENGTH OFFSET)
Example is in inch. Check offsets and clearances first.
Watch out for
- Mazatrol programs use their own work zero. An EIA program needs G54 to G59 set on the work offset screen.
- Call the offset before the first move in every tool, so a restart mid program is safe.
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 |
| 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 Mazak (EIA) 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 Mazak G-codes