CNC Machinist Calculator Ultra

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

G71 Z

Addresses

AddressWhat it does
ZReturn level used with M53

How it works

Modal. Stays until another G71.

Example program

O1000 (OKUMA MILL SAMPLE)
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

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

G71 X Z D H F [B] [U] [A or I] [L] [J] [M] [Q]

Addresses

AddressWhat it does
XFinal thread diameter
ZThread end point in Z
DFirst pass depth of cut, diameter
HThread height, diameter
FThread lead
BInfeed angle, usually the tool tip angle
UFinish allowance, diameter
A ITaper angle or taper radius difference
LChamfer distance on the last pass
JThreads within F
MInfeed pattern and mode
QNumber of starts

How it works

Compound fixed cycle. One shot.

Example program

O2000 (OKUMA LATHE SAMPLE)
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

Related codes

G81 · G80 · G72 · G33 · G88

G71 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucStock removal in turning, rough cycle
Haas NGCBolt hole arc
Mazak (EIA)OD and ID roughing cycle, Z direction
Mitsubishi M70 M80Longitudinal rough cutting cycle
Siemens 840D 828DMetric input for geometry
Heidenhain TNC (ISO)Millimeter units
Fagor 8055 8065Millimeter programming
LinuxCNC TormachLathe roughing cycle, along Z
Mach3 Mach4Metric units, Mach3
Centroid CNC12 AcornRough turning cycle
Hurco WinMax (NC)Metric input (Basic NC)
FadalCheck 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

App Store Google Play