CNC Machinist Calculator Ultra

Home › G-codes › Haas NGC › G52

G52 Set local coordinate system / Set local coordinate system, FANUC

Haas NGC G-code · Mill, Lathe

On mills: Set local coordinate system

Shifts the work coordinate system by the given amounts. The shift is added to the active work offset. Use it to repeat a pattern at several places.

Format

G52 X Y Z [A B]

Addresses

AddressWhat it does
X Y Z A BShift amount added to the work offset

How it works

Modal shift, group 00. Cancel with G52 X0 Y0 Z0.

Example program

G90 G54 (WORK OFFSET 1)
G52 X3. Y0. (SHIFT ZERO 3 INCHES IN X)
M98 P1002 (CUT THE FEATURE AT THE SHIFTED ZERO)
G52 X0. Y0. Z0. (CANCEL THE SHIFT)

Example is in inch. Check offsets and clearances first.

Watch out for

On lathes: Set local coordinate system, FANUC

Selects a local coordinate system shifted from the active work offset, FANUC style. The Haas page gives only a short description.

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

Addresses

AddressWhat it does
X ZShift of the local coordinate system

How it works

Group 00.

Example program

G54 (MAIN WORK OFFSET)
G52 Z-2. (LOCAL ZERO 2 INCHES TOWARD CHUCK)
G52 X0 Z0 (CANCEL LOCAL SHIFT)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G54 · G92 · G10

G52 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucLocal 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 Haas NGC 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 Haas NGC G-codes

App Store Google Play