G-code reference

G54.1 G-Code: Additional Work Coordinate Systems

Additional Work Coordinate Systems — Fanuc option that provides up to 48 (or 300) extra work offsets, selected with P. It is common on tombstones and pallet systems.

By cnccode · Updated
PropertyValue
CodeG54.1
FunctionAdditional Work Coordinate Systems
Modal group14
TypeModal — stays active until replaced by another code of the same group
Used onMilling machines
SyntaxG54.1 P_

What does G54.1 do?

Fanuc option that provides up to 48 (or 300) extra work offsets, selected with P. It is common on tombstones and pallet systems.

G54.1 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
G54.1 P_
AddressMeaning
POffset number 1–48 (or 1–300)

G54.1 example program

Example
G54.1 P1 G00 X0 Y0
G54.1 P2 G00 X0 Y0

▶ Open this example in the G-code viewer

Tips and common mistakes

  • Haas: G154 P1–P99 (or G110–G129).
  • Set with G10 L20 P_.

Controller compatibility

G54.1 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 G54.1 modal?
Yes. G54.1 belongs to modal group 14 and stays active until another code of that group is programmed.
What does G54.1 mean in CNC?
G54.1 means Additional Work Coordinate Systems. Fanuc option that provides up to 48 (or 300) extra work offsets, selected with P. It is common on tombstones and pallet systems.
What is the difference between G54.1 and G54?
G54.1 is Additional Work Coordinate Systems, while G54 is Work Coordinate System 1. See the G54 page for its syntax and examples.
Can I use G54.1 on a lathe?
Usually not with the same meaning: G54.1 is documented here for milling machines. Check your control manual for the equivalent.