CNC Machinist Calculator Ultra

Home › G-codes › LinuxCNC Tormach › G28

G28 Go to stored position 1

LinuxCNC Tormach G-code · Mill and lathe

Rapids to the position stored by G28.1. With axis words it first rapids to that point, then moves only those axes to the stored position.

Format

G28 [X] [Y] [Z] [A] [B] [C]

Addresses

AddressWhat it does
X Y ZOptional intermediate point, in the active offsets

How it works

Non modal.

Example program

G20 G17 G40 G49 G54 G80 G90 G94 (INCH, SAFE START)
G91 G28 Z0 (Z STRAIGHT UP TO STORED Z)
G90 (BACK TO ABSOLUTE)
G28 X0 Y0 (XY TO STORED POSITION)
…

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

Watch out for

Related codes

G28.1 · G30 · G53

G28 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucReturn to reference position
Haas NGCReturn to machine zero
Mazak (EIA)Reference point return
Mitsubishi M70 M80Return to reference position
Brother SpeedioReturn to reference point
Heidenhain TNC (ISO)Mirror image
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 LinuxCNC Tormach 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 LinuxCNC Tormach G-codes

App Store Google Play