Home › G-codes › Mazak (EIA) › G30
G30 Second, third or fourth reference point
Mazak (EIA) G-code · Mill
Returns the axes to the 2nd, 3rd or 4th reference point, set by parameter. Often used as a tool change or part unload position.
Format
G30 P X Y Z
Addresses
| Address | What it does |
|---|---|
P | P2, P3 or P4. P2 if left out |
X Y Z | Intermediate point, as in G28 |
How it works
Non-modal.
Example program
G00 Z1. M09 (RETRACT)
G91 G30 P2 Z0. (Z TO 2ND REFERENCE POINT)
G30 P2 X0. Y0. (X Y TO 2ND REFERENCE POINT)
G90 (ABSOLUTE)
G91 G30 P2 Z0. (Z TO 2ND REFERENCE POINT)
G30 P2 X0. Y0. (X Y TO 2ND REFERENCE POINT)
G90 (ABSOLUTE)
Example is in inch. Check offsets and clearances first.
Watch out for
- The positions are set in machine parameters. Check them before using G30 near a fixture.
- Use G91 with zero values, as with G28.
Related codes
G30 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Return to 2nd, 3rd or 4th reference position |
| Okuma OSP | Positioning to home position |
| Mitsubishi M70 M80 | Second to fourth reference return |
| Brother Speedio | Second reference point return |
| Heidenhain TNC (ISO) | Blank form min point |
| LinuxCNC Tormach | Go to stored position 2 |
| Mach3 Mach4 | Return to second home |
| Centroid CNC12 Acorn | Return to reference point 2 |
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 G30 in the app All Mazak G-codes