Home › G-codes › LinuxCNC Tormach › G30
G30 Go to stored position 2
LinuxCNC Tormach G-code · Mill and lathe
Rapids to the position stored by G30.1. Often used as a tool change spot. Axis words give an intermediate point.
Format
G30 [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 G30 Z0 (Z UP TO TOOL CHANGE HEIGHT)
G90
G30 (TO TOOL CHANGE POSITION)
…
G91 G30 Z0 (Z UP TO TOOL CHANGE HEIGHT)
G90
G30 (TO TOOL CHANGE POSITION)
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- With TOOL_CHANGE_AT_G30 set to 1 in the INI file, M6 moves to this position first.
- Same 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 |
| Mitsubishi M70 M80 | Second to fourth reference return |
| Brother Speedio | Second reference point return |
| Heidenhain TNC (ISO) | Blank form min point |
| Mach3 Mach4 | Return to second home |
| Centroid CNC12 Acorn | Return to reference point 2 |
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 G30 in the app All LinuxCNC Tormach G-codes