Home › G-codes › Siemens 808D ISO › G52
G52 Local coordinate system
Siemens 808D ISO G-code · Mill, Lathe
On mills: Local coordinate system
Shifts the zero point by X Y Z from the active G54 to G59 or G54 P offset. G52 X0 Y0 Z0 removes the shift. Handy for repeating a feature at several places.
Format
Addresses
| Address | What it does |
|---|---|
X Y Z | Origin of the local system, from the active work offset |
How it works
Non-modal block, but the shift stays until G52 X0 Y0 Z0 or G92.1.
Example program
G52 X100. Y50. (LOCAL ZERO AT X100 Y50)
G00 X0. Y0. (NOW AT G54 X100 Y50)
M98 P1000 (MACHINE FEATURE)
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- G92.1 also resets a G52 shift.
- No chamfer or round in the block right after G52, and no G52 while scaling or mirroring is on.
On lathes: Local coordinate system
Adds a programmable work offset on top of the active work offset G54 to G59, for repeat work at different positions. G52 with zero values cancels it.
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 | Origin of the local system, measured from the active work offset |
How it works
Non-modal, G group 18. The offset stays until G52 X0 Z0 or G50.3.
Example program
G52 Z-40.0 (LOCAL ZERO 40 MM FURTHER IN)
G00 X52.0 Z2.0 (SAME PROGRAM, SECOND POSITION)
G01 Z-10.0 F0.2 (CUT)
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- The last active work offset G54 to G59 is the base. A new G52 replaces the old one, it does not add to it.
- Cancel with G52 X0 Z0 before the next part, or the next program runs shifted.
Related codes
G54 · G92.1 · G92 · G50.3 · G50
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 |
| Fadal | Coordinate system shift |
Every G-code for Siemens 808D ISO 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 Siemens 808D ISO G-codes