Home › G-codes › Okuma OSP › G30
G30 Positioning to home position
Okuma OSP G-code · Mill
Sends the named axes to a stored home position, picked by number with P. Okuma programs use it before tool change or at the end of the program.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
G30 P [X Y Z]
Addresses
| Address | What it does |
|---|---|
P | Home position number |
X Y Z | Axes to send home |
How it works
One shot. Active only in its own block.
Example program
O1000 (OKUMA MILL SAMPLE)
N1 G15 H1 (WORK COORDINATE SYSTEM 1)
N2 G00 G90 X1. Y1. (LAST HOLE)
N3 G00 Z5. M09 (CLEAR PART)
…
N1 G15 H1 (WORK COORDINATE SYSTEM 1)
N2 G00 G90 X1. Y1. (LAST HOLE)
N3 G00 Z5. M09 (CLEAR PART)
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Okuma does not use G28 for this. G30 with P picks which stored position.
- Clear the part with Z first if the home position is low.
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 |
| 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 Okuma OSP 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 Okuma OSP G-codes