CNC Machinist Calculator Ultra

Home › G-codes › Centroid CNC12 Acorn › G30

G30 Return to reference point 2 / Return to reference point 2 to 4

Centroid CNC12 Acorn G-code · Mill, Lathe

On mills: Return to reference point 2

Works like G28 but goes to the Return 2 point. G30 P1 goes to Return 1, the same as G28.

Format

G30 [X] [Y] [Z] [P] [L]

Addresses

AddressWhat it does
X Y ZMiddle point
PReference point number
LFeed rate instead of rapid

How it works

One shot.

Example program

G0 Z1. ; CLEAR
G30 G91 Z0 ; Z TO RETURN 2
G90 ; ABSOLUTE

Example is in inch. Check offsets and clearances first.

Watch out for

On lathes: Return to reference point 2 to 4

Goes to a return point through an optional middle point. P2 or no P is Return 2. P3 and P4 select Return 3 and 4. P1 is the same as G28.

Format

G30 [X] [Z] [P] [L]

Addresses

AddressWhat it does
X ZMiddle point
PReturn point 1 to 4
LFeed rate instead of rapid

How it works

One shot.

Example program

G0 X2. Z.5 ; CLEAR THE PART
G30 P3 ; GO TO RETURN 3
T0202 ; NEXT TOOL

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G28 · G29

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

Every G-code for Centroid CNC12 Acorn 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 Centroid CNC12 Acorn G-codes

App Store Google Play