CNC Machinist Calculator Ultra

Home › G-codes › Mach3 Mach4 › G52

G52 Local coordinate shift

Mach3 Mach4 G-code · Mill

Shifts all work coordinates by the given amounts without motion. Good for repeating a feature at another spot.

Format

G52 [X] [Y] [Z] [A]

Addresses

AddressWhat it does
X Y Z AShift amount for each axis

How it works

Modal until G52 X0 Y0 Z0 or reset.

Example program

G0 G20 G90 G54 G17 G40 G49 G80 (SAFE START, INCH)
T1 M6 (TOOL CHANGE)
S6000 M3 (SPINDLE ON)
G43 H1 Z1.0 (LENGTH OFFSET)
…

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

Watch out for

Related codes

G92 · G54 · 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
Centroid CNC12 AcornLocal coordinate shift
Hurco WinMax (NC)Local coordinate system
FadalCoordinate system shift

Every G-code for Mach3 Mach4 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 Mach3 Mach4 G-codes

App Store Google Play