G28 Return to zero
Fadal G-code · Mill
Sends the named axes to the zero position set at cold start. In Format 2 only the axes in the G28 block move.
Format
G28 [X] [Y] [Z]
Addresses
| Address | What it does |
|---|---|
X Y Z | Axes to send home. In G91 use 0 to go straight home |
How it works
Non modal.
Example program
N20 G0 Z.1 M9 (CLEAR PART)
N21 G91 G28 Z0. M5 (Z HOME)
N22 G28 X0. Y0. (XY HOME)
N23 G90 (BACK TO ABSOLUTE)
…
N21 G91 G28 Z0. M5 (Z HOME)
N22 G28 X0. Y0. (XY HOME)
N23 G90 (BACK TO ABSOLUTE)
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Format 2 needs the axis in the block. G28 alone does not move every axis.
- Use G91 G28 Z0. so Z goes straight up. In G90 the axis first goes to the programmed point.
- Go back to G90 on the next line.
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 |
| LinuxCNC Tormach | Go to stored position 1 |
| Mach3 Mach4 | Return to home through a point |
| Centroid CNC12 Acorn | Return to reference point 1 |
| Hurco WinMax (NC) | Return to reference point |
| Swiss (Citizen Star) | Return to reference point |
Every G-code for Fadal 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 Fadal G-codes