Home › G-codes › Mach3 Mach4 › G54
G54 Work offset 1
Mach3 Mach4 G-code · Mill
Selects fixture offset 1. Positions are then measured from that work zero. G54 is the default.
Format
G54
Addresses
| Address | What it does |
|---|---|
G54 | No address words |
How it works
Modal, coordinate system group. Default.
Example program
G0 G20 G90 G54 G17 G40 G49 G80 (SAFE START, INCH)
T1 M6 (TOOL CHANGE)
S6000 M3 (SPINDLE ON)
G54 (WORK OFFSET 1)
…
T1 M6 (TOOL CHANGE)
S6000 M3 (SPINDLE ON)
G54 (WORK OFFSET 1)
…
The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Keep G54 or the right offset in the safe start line. M30 can reset to G54 depending on setup.
- Mach3 G59 P7 and up selects fixtures 7 to 254. Mach4 prefers G54.1 P1 to P248, and G59 P7 still works.
- Mach3 errors if you change fixture with cutter comp on.
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 |
| Heidenhain TNC (ISO) | Datum shift in the program |
| Fagor 8055 8065 | Absolute zero offset 1 |
| LinuxCNC Tormach | Work coordinate system 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 Mach3 Mach4 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 Mach3 Mach4 G-codes