CNC Machinist Calculator Ultra

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

AddressWhat it does
PHome position number
X Y ZAxes 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)
…

The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G00

G30 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucReturn to 2nd, 3rd or 4th reference position
Mazak (EIA)Second, third or fourth reference point
Mitsubishi M70 M80Second to fourth reference return
Brother SpeedioSecond reference point return
Heidenhain TNC (ISO)Blank form min point
LinuxCNC TormachGo to stored position 2
Mach3 Mach4Return to second home
Centroid CNC12 AcornReturn 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

App Store Google Play