Home › G-codes › Hurco WinMax (NC) › G52
G52 Local coordinate system
Hurco WinMax (NC) G-code · Mill
Shifts zero inside the current work offset. Good with subprograms to cut the same shape at several places.
Format
G52 X Y Z [A B C]
Addresses
| Address | What it does |
|---|---|
X Y Z | Shift from the active work zero |
A B C | Rotary positions that turn the local system about each rotary centerline |
How it works
Non modal, group 00, but the shift stays until canceled.
Example program
G90 G54 G00 X0. Y0. (WORK ZERO)
G52 X-1.5 Y-1.5 (SHIFT TO PART 2)
M98 P2121 (CUT SHAPE)
G52 X1.5 Y-1.5 (SHIFT TO PART 3)
…
G52 X-1.5 Y-1.5 (SHIFT TO PART 2)
M98 P2121 (CUT SHAPE)
G52 X1.5 Y-1.5 (SHIFT TO PART 3)
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Cancel with G52 X0. Y0. Z0., by selecting a work offset, or by G53.
- After a G53 the local shift is gone. Program G52 again if needed.
Related codes
G52 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Local coordinate system |
| Haas NGC | Set 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 |
| Fadal | Coordinate system shift |
Every G-code for Hurco WinMax (NC) 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 Hurco WinMax G-codes