Home › G-codes › Mitsubishi M70 M80 › G30
G30 Second to fourth reference return
Mitsubishi M70 M80 G-code · Mill
Moves through an intermediate point to the second, third or fourth reference position. Often used as a tool change position.
Format
G30 P X Y Z
Addresses
| Address | What it does |
|---|---|
P | P2, P3 or P4. No P means second reference |
X Y Z | Intermediate point |
How it works
Non-modal, group 00.
Example program
G91 G30 P2 Z0. (Z TO SECOND REFERENCE)
G90 (BACK TO ABSOLUTE)
T2 M06 (TOOL CHANGE)
G90 (BACK TO ABSOLUTE)
T2 M06 (TOOL CHANGE)
Example is in inch. Check offsets and clearances first.
Watch out for
- Same G90 trap as G28. Use G91 G30 Z0. to go straight up.
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 |
| Mazak (EIA) | Second, third or fourth reference point |
| Okuma OSP | Positioning to home position |
| 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 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 G30 in the app All Mitsubishi M70 M80 G-codes