CNC Machinist Calculator Ultra

Home › G-codes › Siemens 808D ISO › G30

G30 2nd, 3rd or 4th reference point return

Siemens 808D ISO G-code · Mill, Lathe

On mills: 2nd, 3rd or 4th reference point return

Moves the axes to an intermediate point, then to reference point 2, 3 or 4 picked with P. Without P it goes to the 2nd reference point.

Format

G30 [P] X Y Z

Addresses

AddressWhat it does
PReference point 2, 3 or 4. Default 2
X Y ZIntermediate point

How it works

Non-modal, group 18.

Example program

G00 Z50. M09 (RETRACT, COOLANT OFF)
G91 G30 Z0 (Z TO 2ND REFERENCE POINT)
G30 P3 X0 Y0 (X Y TO 3RD REFERENCE POINT)
G90 (ABSOLUTE AGAIN)

Example is in inch. Check offsets and clearances first.

Watch out for

On lathes: 2nd, 3rd or 4th reference point return

Moves through the intermediate point to the 2nd, 3rd or 4th reference point chosen with P2 to P4, for example a tool change position. P left out means the 2nd point.

Format

G30 [P2 to P4] X(U) Z(W)

Addresses

AddressWhat it does
PReference point 2, 3 or 4. Left out means 2
X ZIntermediate point, absolute
U WIntermediate point, incremental

How it works

Non-modal, G group 18.

Example program

G00 X150.0 Z5.0 (CLEAR OF PART)
G30 U0.0 W0.0 (TO 2ND REFERENCE POINT)
G30 P3 U0.0 (X ONLY TO 3RD REFERENCE POINT)
T0202 (NEXT TOOL)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G28 · G27

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
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 Siemens 808D ISO 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 Siemens 808D ISO G-codes

App Store Google Play