G-code reference

G55: Work offset 2

G55 is work offset 2. Selects work coordinate system 2. It is modal, so it stays active on the following lines until another code from the same group replaces it.

What G55 does

G55 selects the second stored work offset. Shops use G55 to G59 for a second vise, a second part, or a fixture with several stations. The values come from the offset page, so the program is only right if that page is right.

TypeG-code
MachineMill and lathe
GroupWork offset
ModalYes: stays active until replaced by another code from the same group

G55 example

G55 G00 X0. Y0.

Move to program zero of work offset G55.

WordWhat it means here
G55Work offset 2
G00Rapid positioning
X0.X axis target (on a lathe, the diameter)
Y0.Y axis target

Codes people confuse with G55

CodeWhat it does instead
G54 Work offset 1. Selects the first work coordinate system, where program zero is on the part.
G56 Work offset 3. Selects work coordinate system 3.

Other codes in the work offset group

Only one code from a modal group is active at a time. Programming any of these replaces G55.

  • G54 Work offset 1
  • G56 Work offset 3
  • G57 Work offset 4
  • G58 Work offset 5
  • G59 Work offset 6

Meanings follow the common Fanuc-style standard that Haas, Okuma (EIA mode), Mitsubishi, LinuxCNC and most other controls share for this code. Options and parameters change details from machine to machine, so check the manual for your control.

Quick check: G55

  1. What does G55 do? (Mill and lathe)

  2. Which code: Selects work coordinate system 2.(Mill and lathe)

  3. What does G54 do? (Mill and lathe)

Show the answers
  1. Selects work coordinate system 2.
  2. G55
  3. Selects the first work coordinate system, where program zero is on the part.

Drill this code with the rest of the core set

More practice hubs

Frequently asked questions

What does G55 mean in CNC programming?
Work offset 2. Selects work coordinate system 2.
Is G55 modal?
Yes. G55 belongs to the work offset group and stays active until another code from that group is programmed.
What is the difference between G55 and G54?
G55 (work offset 2): selects work coordinate system 2. G54 (work offset 1): selects the first work coordinate system, where program zero is on the part.
What is the difference between G55 and G56?
G55 (work offset 2): selects work coordinate system 2. G56 (work offset 3): selects work coordinate system 3.

G-Code Sprint is an educational practice tool only. It is not a CNC simulator, machine controller, safety manual, or replacement for instruction. Always follow your instructor, employer, machine manual, and shop procedures.

Free preview · no card Try G-Code Sprint