Home › G-codes › Mach3 Mach4 › G59
G59 Work offset 6 and extra offsets
Mach3 Mach4 G-code · Mill
Selects fixture offset 6. Positions are then measured from that work zero. Mach3 G59 P selects any of the extra fixture offsets.
Format
G59 [P]
Addresses
| Address | What it does |
|---|---|
P | Fixture number, 7 and up for the extra offsets |
How it works
Modal, coordinate system group.
Example program
G0 G20 G90 G54 G17 G40 G49 G80 (SAFE START, INCH)
T1 M6 (TOOL CHANGE)
S6000 M3 (SPINDLE ON)
G59 P8 (FIXTURE 8)
…
T1 M6 (TOOL CHANGE)
S6000 M3 (SPINDLE ON)
G59 P8 (FIXTURE 8)
…
The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- 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
G59 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Work coordinate system 6 |
| Haas NGC | Work offset 6 select |
| LinuxCNC Tormach | Work coordinate system 6 |
| Centroid CNC12 Acorn | Work coordinate system 6 |
| Hurco WinMax (NC) | Work coordinate system 6 |
| Fadal | Fixture offset 6, same as E6 |
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 G59 in the app All Mach3 Mach4 G-codes