G52 Coordinate system shift
Fadal G-code · Mill
Shifts the zero point of the active fixture offset by X Y Z. Useful for several parts on one fixture.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
G52 X Y Z
Addresses
| Address | What it does |
|---|---|
X Y Z | Shift amount from the active fixture zero |
How it works
Modal until cancelled with G52 X0 Y0 Z0.
Example program
N1 G0 G40 G49 G80 G90 G17 (FORMAT 2 SAFE START)
N2 T1 M6 (1-2 END MILL)
N3 G0 G90 G54 X0. Y0. S3000 M3
N4 G52 X4. Y0. (SHIFT TO SECOND PART)
…
N2 T1 M6 (1-2 END MILL)
N3 G0 G90 G54 X0. Y0. S3000 M3
N4 G52 X4. Y0. (SHIFT TO SECOND PART)
…
The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Cancel with G52 X0. Y0. Z0. before the next part.
- Many Fadal shops use more E offsets instead. There are 48.
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 |
| Hurco WinMax (NC) | Local coordinate system |
Every G-code for Fadal 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 Fadal G-codes