0
0
Ev-technologyHow-ToBeginner · 4 min read

How to Use Work Coordinate Offset G54 and G55 in CNC Programming

In CNC programming, G54 and G55 are work coordinate offsets used to set different zero points on the machine table. Use G54 to select the first work coordinate system and G55 for the second, allowing you to switch between multiple part setups easily during machining.
📐

Syntax

The basic syntax to use work coordinate offsets is to include the G54 or G55 command in your CNC program before the movement commands. This tells the machine which coordinate system to use for positioning.

  • G54: Selects the first work coordinate system.
  • G55: Selects the second work coordinate system.
  • Movement commands like G00 or G01 follow to move the tool relative to the selected offset.
gcode
G54
G00 X0 Y0 Z0 ; Move to zero point of G54
G55
G00 X0 Y0 Z0 ; Move to zero point of G55
💻

Example

This example shows how to use G54 and G55 to machine two parts located at different positions on the table. The program moves to the zero point of the first part using G54, performs machining, then switches to G55 for the second part.

gcode
O1000 (Program start)

G21 (Set units to millimeters)
G90 (Absolute positioning)

G54 (Select first work offset)
G00 X0 Y0 Z5 (Rapid move above first part zero)
G01 Z-5 F100 (Cut down into part)
... (machining commands for first part)

G00 Z5 (Retract)

G55 (Select second work offset)
G00 X0 Y0 Z5 (Rapid move above second part zero)
G01 Z-5 F100 (Cut down into second part)
... (machining commands for second part)

G00 Z100 (Retract)
M30 (End program)
⚠️

Common Pitfalls

Common mistakes when using G54 and G55 include:

  • Not setting the work offsets properly before running the program, causing the tool to move to wrong positions.
  • Forgetting to switch between offsets, leading to machining in the wrong coordinate system.
  • Using offsets without confirming machine zero or tool length offsets, which can cause crashes.

Always verify offsets with a dry run or manual check before cutting.

gcode
Wrong:
G54
G00 X0 Y0 Z0
... (machining)
; Forgot to switch to G55 for second part

Right:
G54
G00 X0 Y0 Z0
... (machining first part)
G55
G00 X0 Y0 Z0
... (machining second part)
📊

Quick Reference

CommandDescription
G54Select first work coordinate offset
G55Select second work coordinate offset
G90Absolute positioning mode
G00Rapid positioning
G01Linear interpolation (cutting move)

Key Takeaways

Use G54 and G55 to switch between different work coordinate zero points on the CNC machine.
Always set and verify work offsets before machining to avoid tool crashes.
Include the offset command before movement commands to apply the correct coordinate system.
Switching offsets allows machining multiple parts or setups in one program efficiently.
Use G90 for absolute positioning with work offsets for predictable tool movement.