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
Addresses
| Address | What it does |
|---|---|
P | Reference point 2, 3 or 4. Default 2 |
X Y Z | Intermediate point |
How it works
Non-modal, group 18.
Example program
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
- Reference points 2 to 4 are set in MD34100 REFP_SET_POS[1] to [3].
- Same rules as G28: runs as CYCLE328, cancel radius comp and cycles first.
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
Addresses
| Address | What it does |
|---|---|
P | Reference point 2, 3 or 4. Left out means 2 |
X Z | Intermediate point, absolute |
U W | Intermediate point, incremental |
How it works
Non-modal, G group 18.
Example program
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
- The points are set in MD34100 REFP_SET_POS[1] to [3], measured from the 1st reference point.
- Runs through CYCLE328 like G28. Only the axes in the block move.
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 |
| Centroid CNC12 Acorn | Return 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