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
| Address | What it does |
|---|---|
X Y Z | Optional 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)
…
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
- The stored point is not home unless you stored it there. It is held in parameters 5161 and up.
- G28 Z0 in G90 rapids to Z0 of the part first. Use G91 G28 Z0 to go straight up, then G90.
- Error with cutter compensation on.
Related codes
G28 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Return to reference position |
| Haas NGC | Return to machine zero |
| Mazak (EIA) | Reference point return |
| Mitsubishi M70 M80 | Return to reference position |
| Brother Speedio | Return to reference point |
| Heidenhain TNC (ISO) | Mirror image |
| Mach3 Mach4 | Return to home through a point |
| Centroid CNC12 Acorn | Return to reference point 1 |
| Hurco WinMax (NC) | Return to reference point |
| Fadal | Return 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