Home › G-codes › Haas NGC › G57
G57 Work offset 4 select / Work coordinate system 4
Haas NGC G-code · Mill, Lathe
On mills: Work offset 4 select
Selects work offset 4. Programmed positions are measured from the part zero stored in G57 on the offset page.
Format
How it works
Modal, work offset group 12. Stays active until another work offset is commanded.
Example program
G90 G57 G00 X0. Y0. S2000 M03 (PART ZERO OF OFFSET 4)
G43 H01 Z1. (LENGTH COMP ON)
Example is in inch. Check offsets and clearances first.
Watch out for
- Call the work offset on the first positioning line of every tool so the program can be restarted at any tool.
- An empty offset leaves part zero at machine zero, which can crash.
On lathes: Work coordinate system 4
Selects work offset 4. All following positions are read from this part zero. Values are set on the work offset page or with G10 L2 P4.
Format
How it works
Modal, group 12.
Example program
G00 G57 X2.1 Z.1 (APPROACH IN WORK OFFSET 4)
G01 Z-1. F.01 (TURN)
Example is in inch. Check offsets and clearances first.
Watch out for
- On DS lathes a separate work offset is often used for the secondary spindle, for example G55.
- For more offsets use G154 P1 to P99.
Related codes
G54 · G55 · G56 · G58 · G59 · G154 · G10
G57 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Work coordinate system 4 |
| LinuxCNC Tormach | Work coordinate system 4 |
| Mach3 Mach4 | Work offset 4 |
| Centroid CNC12 Acorn | Work coordinate system 4 |
| Hurco WinMax (NC) | Work coordinate system 4 |
| Fadal | Fixture offset 4, same as E4 |
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 G57 in the app All Haas NGC G-codes