CNC Machinist Calculator Ultra

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

AddressWhat it does
PP2, P3 or P4. P2 if left out
X Y ZIntermediate 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)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G28

G30 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucReturn to 2nd, 3rd or 4th reference position
Okuma OSPPositioning to home position
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 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

App Store Google Play