Home › G-codes › Mitsubishi M70 M80 › G28
G28 Return to reference position
Mitsubishi M70 M80 G-code · Mill, Lathe
On mills: Return to reference position
Moves through an intermediate point and then to the machine reference position for the named axes.
Format
G28 X Y Z
Addresses
| Address | What it does |
|---|---|
X Y Z | Intermediate point. Only named axes move |
How it works
Non-modal, group 00.
Example program
G00 Z1. M09 (CLEAR PART)
G91 G28 Z0. (Z HOME DIRECT)
G28 X0. Y0. (XY HOME)
G90 (BACK TO ABSOLUTE)
G91 G28 Z0. (Z HOME DIRECT)
G28 X0. Y0. (XY HOME)
G90 (BACK TO ABSOLUTE)
Example is in inch. Check offsets and clearances first.
Watch out for
- In G90, G28 Z0. moves to work Z0 first. Use G91 G28 Z0. to go straight up.
- Restore G90 right after the G91 G28 line.
On lathes: Return to reference position
Moves through the given point to the machine reference. Use U0 and W0 to go straight home.
Format
G28 U0 W0
Addresses
| Address | What it does |
|---|---|
U W | Incremental intermediate point, 0 means current position |
How it works
Non-modal, group 00.
Example program
G00 X3. Z1. M09 (CLEAR)
G28 U0 (X HOME)
G28 W0 (Z HOME)
G28 U0 (X HOME)
G28 W0 (Z HOME)
Example is in inch. Check offsets and clearances first.
Watch out for
- G28 X0 would drive the tool to center first. Use U0.
- Send X home before Z when near the chuck or tailstock.
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 |
| 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 |
| Fadal | Return to zero |
| Swiss (Citizen Star) | Return to reference point |
Every G-code for Mitsubishi M70 M80 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 Mitsubishi M70 M80 G-codes