Skip to content
Encyclopedia entry

Work Offsets (G54-G59) and Why They Matter

Work Offsets (G54-G59) and Why They Matter

A work offset, also called a work coordinate system, tells the control where the part’s zero point sits relative to machine home. The standard set is G54 through G59, and most controls add extended sets such as G54.1 P1 to P48. Each offset stores a shift in X, Y and Z, and often in the rotary axes [1].

The usual workflow is to touch the part with an edge finder, a tool setter or a spindle probe, store the resulting positions in G54, and then write the program in part coordinates. Because the program refers to the offset rather than to machine positions, the same program can run on a different fixture by changing one set of numbers.

Multiple offsets make multi-part setups practical. Four vises on a table can each have their own offset, and one program can machine all four in sequence; a subprogram called four times with a different offset is enough. Offset shifting with G52 and programmable offset changes inside a program allow bolt-hole patterns and tombstone layouts without rewriting coordinates [2].

It is also where crashes come from. A wrong Z value, an offset applied twice, or a stale offset left over from the previous job will drive the tool into the table or the fixture. The routine defences are a distance-to-go display, a dry run above the part, and verifying the offset numbers against the setup sheet before the first cut.

There is a discipline question too: some shops set offsets from the part, others from the fixture, and a few from the pallet. Mixing conventions between programmers and operators is a reliable source of scrap. Write down which convention the shop uses and put it at the top of every setup sheet.

Machine builders differ in how offsets persist. Some retain G54 values across power cycles, others clear them; some store offsets for every tool, others only per work zone. Knowing which applies is the difference between a safe restart and a crash after a break, and it belongs in the machine handover checklist alongside the tool table.

For unattended work, probing the part and writing the offset automatically removes the human step that causes most of these errors — and it catches a misloaded part before the spindle starts.

Quick reference: G-code and M-code table — G54–G59 sit alongside the other offset and motion codes.

References

  1. [1]Coordinate systems and offsetsLinuxCNC documentation · Retrieved 2026-12-02↩
  2. [2]G-codeWikipedia · Retrieved 2026-12-02↩