CNC Machinist Calculator Ultra

Home › G-codes › Fanuc › G52

G52 Local coordinate system

Fanuc G-code · Mill, Lathe

On mills: Local coordinate system

Shifts the zero point inside the active work offset by the given amount. Handy for repeating features or a pattern at several spots. All work offsets shift together.

Format

G52 X Y Z

Addresses

AddressWhat it does
X Y ZShift from the work zero. G52 X0 Y0 Z0 cancels

How it works

Stays active until cancelled, but the block itself is group 00.

Example program

G90 G54 G00 X0. Y0. (PART 1 ZERO)
M98 P1300 (CUT POCKET)
G52 X3. Y0. (SHIFT ZERO 3 INCH IN X)
M98 P1300 (SAME POCKET AT NEW ZERO)
…

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

Shifts the zero point inside the current work coordinate system. Handy for repeating features at a new spot. G52 X0 Z0 cancels it.

Format

G52 X Z

Addresses

AddressWhat it does
X ZShift from the work zero to the local zero

How it works

Stays until G52 X0 Z0, a reset or a new work offset, depending on parameters.

Example program

G52 Z-2. (SHIFT ZERO 2 INCHES IN Z)
M98 P2000 (RUN FEATURE SUBPROGRAM)
G52 Z0 (CANCEL SHIFT)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G54 · G92 · G53

G52 on other controls

The same number can mean something different on another control.

ControlMeaning
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 Fanuc 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 Fanuc G-codes

App Store Google Play