G-code reference

G55 G-Code: Work Coordinate System 2

Work Coordinate System 2 — Selects work offset 2. It is often used for a second vise or a second operation.

By cnccode · Updated
PropertyValue
CodeG55
FunctionWork Coordinate System 2
Modal group14
TypeModal — stays active until replaced by another code of the same group
Used onMills and lathes
SyntaxG55

What does G55 do?

Selects work offset 2. It is often used for a second vise or a second operation.

G55 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

Format
G55

G55 example program

Example
G55 G00 X0 Y0

▶ Open this example in the G-code viewer

Tips and common mistakes

  • Keep a written setup sheet of which offset belongs to which fixture.

Controller compatibility

G55 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.

Frequently asked questions

Is G55 modal?
Yes. G55 belongs to modal group 14 and stays active until another code of that group is programmed.
What does G55 mean in CNC?
G55 means Work Coordinate System 2. Selects work offset 2. It is often used for a second vise or a second operation.
What is the difference between G55 and G54?
G55 is Work Coordinate System 2, while G54 is Work Coordinate System 1. See the G54 page for its syntax and examples.
Can I use G55 on a lathe?
Yes, G55 is used on both mills and lathes, although some parameters differ between them.