Home › G-codes › Centroid CNC12 Acorn › G52
G52 Local coordinate shift
Centroid CNC12 Acorn G-code · Mill and lathe
Shifts the part zero by the given amounts. A new G52 replaces the old one. G52 with zero values cancels it. The shift affects all work offsets.
Format
G52 [X] [Y] [Z]
Addresses
| Address | What it does |
|---|---|
X Y Z | Shift amount from the work zero |
How it works
Modal. Stays until a new G52 or a G52 of zero.
Example program
G0 X0 Y0 ; FIRST PART
M98 P9100 ; CUT IT
G52 Y4. ; SHIFT ZERO 4 INCHES IN Y
G0 X0 Y0 ; SECOND PART
…
M98 P9100 ; CUT IT
G52 Y4. ; SHIFT ZERO 4 INCHES IN Y
G0 X0 Y0 ; SECOND PART
…
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 at the end of the job or the next program inherits the shift.
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 |
| Hurco WinMax (NC) | Local coordinate system |
| Fadal | Coordinate system shift |
Every G-code for Centroid CNC12 Acorn 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 Centroid CNC12 Acorn G-codes