CNC Machinist Calculator Ultra

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

G52 X Y Z

Addresses

AddressWhat it does
X Y ZOrigin 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

G90 G54 G00 X0. Y0. (G54 ZERO)
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

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

G52 X Z then G52 X0 Z0

Addresses

AddressWhat it does
X ZOrigin 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

G54 (WORK OFFSET 1)
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

Related codes

G54 · G92.1 · G92 · G50.3 · G50

G52 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucLocal coordinate system
Haas NGCSet local coordinate system
Mitsubishi M70 M80Local coordinate system
Brother SpeedioLocal coordinate system
LinuxCNC TormachLocal coordinate offset
Mach3 Mach4Local coordinate shift
Centroid CNC12 AcornLocal coordinate shift
Hurco WinMax (NC)Local coordinate system
FadalCoordinate 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

App Store Google Play