CNC Machinist Calculator Ultra

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

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

The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G54 · G92 · M98

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
Hurco WinMax (NC)Local coordinate system
FadalCoordinate 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

App Store Google Play