Home › G-codes › Okuma OSP › G71
G71 Return level for fixed cycles / Compound thread cycle, longitudinal
Okuma OSP G-code · Mill, Lathe
On mills: Return level for fixed cycles
Sets the Z level the tool returns to between holes when M53 is active. Okuma uses M52, M53 and M54 to pick the return level instead of G98 and G99.
Format
Addresses
| Address | What it does |
|---|---|
Z | Return level used with M53 |
How it works
Modal. Stays until another G71.
Example program
N1 G15 H1 (WORK COORDINATE SYSTEM 1)
N2 G00 G90 X1. Y1. S2000 M03 (FIRST HOLE)
N3 G56 Z1. H1 M08 (LENGTH OFFSET)
…
The full 8-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- M53 returns to the G71 level. M54 returns to the R point. M52 returns to the upper limit.
- On an Okuma lathe G71 is a threading cycle. Same number, different job.
On lathes: Compound thread cycle, longitudinal
Cuts a full OD or ID thread along Z in many passes from one block. On Okuma G71 is threading, not rough turning like Fanuc G71.
Format
Addresses
| Address | What it does |
|---|---|
X | Final thread diameter |
Z | Thread end point in Z |
D | First pass depth of cut, diameter |
H | Thread height, diameter |
F | Thread lead |
B | Infeed angle, usually the tool tip angle |
U | Finish allowance, diameter |
A I | Taper angle or taper radius difference |
L | Chamfer distance on the last pass |
J | Threads within F |
M | Infeed pattern and mode |
Q | Number of starts |
How it works
Compound fixed cycle. One shot.
Example program
N1 G50 S3000 (MAX SPINDLE 3000 RPM)
N2 G00 X1. Z.3 T070707 (.750-10 THREAD TOOL)
N3 G97 S600 M03 (600 RPM)
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- H and D are diameter values. Thread height H for .750-10 is about .1227 on diameter.
- Without U there is no finish pass.
- Run in G97. G96 threading gives an alarm.
Related codes
G71 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Stock removal in turning, rough cycle |
| Haas NGC | Bolt hole arc |
| Mazak (EIA) | OD and ID roughing cycle, Z direction |
| Mitsubishi M70 M80 | Longitudinal rough cutting cycle |
| Siemens 840D 828D | Metric input for geometry |
| Heidenhain TNC (ISO) | Millimeter units |
| Fagor 8055 8065 | Millimeter programming |
| LinuxCNC Tormach | Lathe roughing cycle, along Z |
| Mach3 Mach4 | Metric units, Mach3 |
| Centroid CNC12 Acorn | Rough turning cycle |
| Hurco WinMax (NC) | Metric input (Basic NC) |
| Fadal | Check for metric setting, older code |
| Swiss (Citizen Star) | Rough turning cycle |
Every G-code for Okuma OSP 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 G71 in the app All Okuma OSP G-codes