G-code reference

G154 G-Code: Additional Work Offsets (Haas)

Additional Work Offsets (Haas) — Haas command that selects extra work offsets P1–P99, used on multi-part fixtures and tombstones.

By cnccode · Updated
PropertyValue
CodeG154
FunctionAdditional Work Offsets (Haas)
Modal group12
TypeModal — stays active until replaced by another code of the same group
Used onMilling machines
SyntaxG154 P_

What does G154 do?

Haas command that selects extra work offsets P1–P99, used on multi-part fixtures and tombstones.

G154 is modal: once programmed it remains in effect for the following blocks until another code from modal group 12 replaces it or the control is reset.

Syntax and parameters

Format
G154 P_
AddressMeaning
P1–99

G154 example program

Example
G154 P1 G00 X0 Y0

▶ Open this example in the G-code viewer

Tips and common mistakes

  • G154 P1–P20 equal G110–G129.

Controller compatibility

G154 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 G154 modal?
Yes. G154 belongs to modal group 12 and stays active until another code of that group is programmed.
What does G154 mean in CNC?
G154 means Additional Work Offsets (Haas). Haas command that selects extra work offsets P1–P99, used on multi-part fixtures and tombstones.
What is the difference between G154 and G54.1?
G154 is Additional Work Offsets (Haas), while G54.1 is Additional Work Coordinate Systems. See the G54.1 page for its syntax and examples.
Can I use G154 on a lathe?
Usually not with the same meaning: G154 is documented here for milling machines. Check your control manual for the equivalent.