CNC Machinist Calculator Ultra

Home › G-codes › Mazak (EIA) › G28

G28 Reference point return / Reference point return, lathe

Mazak (EIA) G-code · Mill, Lathe

On mills: Reference point return

Returns the axes to the machine reference point, through an intermediate point. Most programs use G91 G28 Z0 so Z goes straight up from where it is.

Format

G28 X Y Z

Addresses

AddressWhat it does
X Y ZIntermediate point the axes pass through. In G91 a value of 0 means no extra move

How it works

Non-modal.

Example program

G00 Z1. M09 (RETRACT, COOLANT OFF)
G91 G28 Z0. (Z HOME, NO INTERMEDIATE MOVE)
G28 X0. Y0. (X Y HOME)
G90 (BACK TO ABSOLUTE)

Example is in inch. Check offsets and clearances first.

Watch out for

On lathes: Reference point return, lathe

Returns the turret to the machine reference point. G28 U0 W0 goes home straight from where it is.

Format

G28 U W

Addresses

AddressWhat it does
U WIncremental intermediate point, 0 means no extra move

How it works

Non-modal.

Example program

G00 X3. Z.5 M09 (CLEAR THE PART)
G28 U0. (X HOME)
G28 W0. (Z HOME)
M30 (END)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G30 · G53 · G91 · G00 · G50

G28 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucReturn to reference position
Haas NGCReturn to machine zero
Mitsubishi M70 M80Return to reference position
Brother SpeedioReturn to reference point
Heidenhain TNC (ISO)Mirror image
LinuxCNC TormachGo to stored position 1
Mach3 Mach4Return to home through a point
Centroid CNC12 AcornReturn to reference point 1
Hurco WinMax (NC)Return to reference point
FadalReturn to zero
Swiss (Citizen Star)Return to reference point

Every G-code for Mazak (EIA) 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 G28 in the app All Mazak G-codes

App Store Google Play