Home › G-codes › Haas NGC › G154
G154 Extra work offsets P1 to P99 / Select work coordinates P1 to P99
Haas NGC G-code · Mill, Lathe
On mills: Extra work offsets P1 to P99
Selects one of 99 extra work offsets with P. G154 P1 to P20 are the same as G110 to G129.
Format
G154 P
Addresses
| Address | What it does |
|---|---|
P | Extra work offset number, 1 to 99 |
How it works
Modal, work offset group 12.
Example program
T1 M06 (TOOL 1)
G90 G154 P10 G00 X0. Y0. (EXTRA WORK OFFSET 10)
G43 H01 Z1. (LENGTH COMP ON)
G90 G154 P10 G00 X0. Y0. (EXTRA WORK OFFSET 10)
G43 H01 Z1. (LENGTH COMP ON)
Example is in inch. Check offsets and clearances first.
Watch out for
- G154 without a P number gives an alarm. Write the P on the same line.
- Fill in the offset on the offset page before running.
On lathes: Select work coordinates P1 to P99
Gives 99 extra work offsets. G154 P10 picks extra offset 10. G110 to G129 are the same offsets as P1 to P20.
Format
G154 P
Addresses
| Address | What it does |
|---|---|
P | Extra work offset number, 1 to 99 |
How it works
Modal, group 12.
Example program
G154 P10 (EXTRA WORK OFFSET 10)
T0101 (OD TOOL)
G00 X2.1 Z.1 (APPROACH IN OFFSET 10)
T0101 (OD TOOL)
G00 X2.1 Z.1 (APPROACH IN OFFSET 10)
Example is in inch. Check offsets and clearances first.
Watch out for
- P is modal inside canned cycles. Avoid G154 while a cycle is active.
- G110 and G154 P1 share the same values.
- The active G154 P value shows in the work offset heading.
Related codes
Every G-code for Haas NGC in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.
Open G154 in the app All Haas NGC G-codes