Home › G-codes › Haas NGC › G52
G52 Set local coordinate system / Set local coordinate system, FANUC
Haas NGC G-code · Mill, Lathe
On mills: Set local coordinate system
Shifts the work coordinate system by the given amounts. The shift is added to the active work offset. Use it to repeat a pattern at several places.
Format
Addresses
| Address | What it does |
|---|---|
X Y Z A B | Shift amount added to the work offset |
How it works
Modal shift, group 00. Cancel with G52 X0 Y0 Z0.
Example program
G52 X3. Y0. (SHIFT ZERO 3 INCHES IN X)
M98 P1002 (CUT THE FEATURE AT THE SHIFTED ZERO)
G52 X0. Y0. Z0. (CANCEL THE SHIFT)
Example is in inch. Check offsets and clearances first.
Watch out for
- The shift stays active until cancelled. Always cancel it when done.
- The G52 shift can also be seen and set on the work offset page.
On lathes: Set local coordinate system, FANUC
Selects a local coordinate system shifted from the active work offset, FANUC style. The Haas page gives only a short description.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
Addresses
| Address | What it does |
|---|---|
X Z | Shift of the local coordinate system |
How it works
Group 00.
Example program
G52 Z-2. (LOCAL ZERO 2 INCHES TOWARD CHUCK)
G52 X0 Z0 (CANCEL LOCAL SHIFT)
Example is in inch. Check offsets and clearances first.
Watch out for
- Cancel the shift with G52 X0 Z0 before the next part or it carries on.
- Most Haas lathe programs use work offsets instead.
Related codes
G52 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Local coordinate system |
| Mitsubishi M70 M80 | Local coordinate system |
| Brother Speedio | Local coordinate system |
| LinuxCNC Tormach | Local coordinate offset |
| Mach3 Mach4 | Local coordinate shift |
| Centroid CNC12 Acorn | Local coordinate shift |
| Hurco WinMax (NC) | Local coordinate system |
| Fadal | Coordinate system shift |
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 G52 in the app All Haas NGC G-codes