The G54 through G59 codes select work coordinate systems — the stored part zeros that tell the machine where the workpiece sits on the table. They let the same program run on a part clamped anywhere, and let one program handle several fixtures.
How it works
- You set each offset in the control (the distance from machine home to part zero), then call it in the program.
- G54 is the first and most common; G55–G59 hold additional setups.
- Many controls extend the set with G54.1 P1, P2, and so on for dozens more offsets.
G55 (switch to the second fixture)
FAQ
How many work offsets can I use beyond G54-G59? Most modern controls support extended work offsets beyond the standard six, which is useful for multi-fixture setups where a single program runs the same part in several locations on the table.
What’s a typical use for multiple work offsets in one job? Running the same operation across several identical vises or fixtures on one table, where each fixture gets its own offset so a single program can machine every part without re-zeroing between them.
Set part zero with the Tool Length Offset and related calculators in Setup & Workholding.
Beyond G59
Six fixture offsets aren’t always enough on a busy machine. Most modern controls support extended work offsets — G54.1 P1 through P300 on Fanuc-style controls, or G110 through G129 on others — for jobs that need more fixtures than the original six codes allow.
A common setup mistake is re-touching off a part (say, after a fixture gets bumped or a new vise is installed) but forgetting that the program is still calling the OLD offset number, or typing the new measurement into the wrong offset register entirely. Double-checking the offset number on screen against the number the program actually calls is worth the extra few seconds.
Work offsets and tool length offsets apply together, not instead of each other — the control adds the tool length offset to whichever work offset is active to get the final Z position, so an error in either one shows up as a wrong final position, and it’s worth checking both when a result looks off.
