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
| Address | What it does |
|---|---|
X Y Z | Middle point |
P | Reference point number |
L | Feed rate instead of rapid |
How it works
One shot.
Example program
G0 Z1. ; CLEAR
G30 G91 Z0 ; Z TO RETURN 2
G90 ; ABSOLUTE
G30 G91 Z0 ; Z TO RETURN 2
G90 ; ABSOLUTE
Example is in inch. Check offsets and clearances first.
Watch out for
- Return 2 is also used by the tool touch off routines on many setups. Check its value before using G30 in a program.
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
| Address | What it does |
|---|---|
X Z | Middle point |
P | Return point 1 to 4 |
L | Feed 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
G30 P3 ; GO TO RETURN 3
T0202 ; NEXT TOOL
Example is in inch. Check offsets and clearances first.
Watch out for
- The four return points are set in the Work Coordinate System Configuration menu.
- Use U and W words for an incremental middle point.
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 |
| Okuma OSP | Positioning to home position |
| 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 |
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