Okuma OSP G71 thread cycle, explained with an M30 × 2 example
On an Okuma OSP lathe, one G71 block cuts a whole thread: the control plans every pass and the finish pass for you. If you come from Fanuc, the trap is that Fanuc G71 is a roughing cycle. Here is the OSP version, step by step.
The block
G71 X__ Z__ B__ D__ U__ H__ F__ M32 M74
| Word | Meaning |
|---|---|
X | Root diameter, where the last pass ends |
Z | Thread end |
B | Tool (thread) angle, 60 for a metric thread |
D | First depth of cut, as a diameter |
U | Finish allowance, as a diameter |
H | Thread height, as a diameter |
F | Lead (pitch for a single-start thread) |
M32 / M33 / M34 | Infeed: along the left flank / zigzag / along the right flank. With none of them, M32 is used. |
M73 / M74 / M75 | Depth pattern 1 / 2 / 3: how the depth of each pass is planned |
Other words exist for taper threads (I or A), run-out (L), multi-start threads (Q) and more. Your OSP programming manual has the full list.
Example: M30 × 2 outside thread, 30 mm long
1. Work out H and X
A common shop value for the depth of an outside metric thread is 0.6134 × pitch:
height = 0.6134 × 2 = 1.227 mm (per side) H = 1.227 × 2 = 2.454 (OSP wants a diameter) root X = 30 − 2.454 = 27.546
2. The program
(M30 X 2 THREAD)
G97 S800 M03
G00 X34. Z5. M23
G71 X27.546 Z-30. B60 D0.7 U0.1 H2.454 F2. M32 M74
G00 X60. M22
G97 S800: constant spindle speed. Thread cycles are not used in G96.G00 X34. Z5.: start above the 30 mm diameter and 5 mm in front of the part, so the axis is up to speed before the thread starts.M23/M22: switch the thread chamfer (the run-out at the end of the thread) on and off. Check which one your machine uses as its default.D0.7: the first pass goes 0.7 on the diameter, which is 0.35 mm a side.U0.1: 0.1 on the diameter is left for the finish pass.
3. What the control does

With M74, each rough pass goes D deeper, down to H − U. Then the finish pass takes the last U. With M32, the tool goes in along the left flank of the thread, which keeps the cutting load on one edge of the insert.
Same thread on Fanuc (G76)
Fanuc does the same job with a two-block G76. Its values are radius values in microns, while OSP uses diameters in millimetres:
G76 P020060 Q50 R0.05 G76 X27.546 Z-30. P1227 Q350 F2.

| Fanuc G76 | Okuma OSP G71 | |
|---|---|---|
| Thread height | P1227 (µm, radius) | H2.454 (mm, diameter) |
| First cut | Q350 (µm, radius) | D0.7 (mm, diameter) |
| Finish allowance | R0.05 in block 1 (radius) | U0.1 (diameter) |
| Thread angle | last two digits of P020060 | B60 |
Check before you cut. Thread height depends on the thread standard and your insert. Prove the program with a dry run, and take a first part with the override low.
Calculators, process sheet to program, simulation, codes and lessons. Free to start, no sign-in, on phone and laptop.
Open the app

