G-code reference
G59 G-Code: Work Coordinate System 6
Work Coordinate System 6 — Selects work offset 6, the last of the six standard offsets. More are available with G54.1 P_ (Fanuc) or G110–G129 / G154 (Haas).
| Property | Value |
|---|---|
| Code | G59 |
| Function | Work Coordinate System 6 |
| Modal group | 14 |
| Type | Modal — stays active until replaced by another code of the same group |
| Used on | Mills and lathes |
| Syntax | G59 |
What does G59 do?
Selects work offset 6, the last of the six standard offsets. More are available with G54.1 P_ (Fanuc) or G110–G129 / G154 (Haas).
G59 is modal: once programmed it remains in effect for the following blocks until another code from modal group 14 replaces it or the control is reset.
Syntax and parameters
G59G59 example program
G59 G00 X0 Y0▶ Open this example in the G-code viewer
Controller compatibility
G59 follows the ISO/Fanuc dialect used by Fanuc, Haas, Brother, Doosan, Hurco (ISO mode), Mazak (EIA/ISO mode), Okuma (G-code mode) and Siemens in ISO dialect mode. Parameters, option packages and builder-specific behaviour can differ, so confirm the details in your machine's programming manual before running a new program.
Related codes
- G54 — Work Coordinate System 1
- G54.1 — Additional Work Coordinate Systems
- G154 — Additional Work Offsets (Haas)