Home › G-codes › Okuma OSP › G81
G81 Drill or spot cycle / Start of longitudinal LAP contour
Okuma OSP G-code · Mill, Lathe
On mills: Drill or spot cycle
Feeds to depth and rapids out. The basic drilling and spot drilling cycle.
Format
Addresses
| Address | What it does |
|---|---|
X Y | Hole position |
Z | Hole bottom |
R | R point where feed starts |
F | Feed rate |
How it works
Modal, fixed cycle group. Cancel with G80.
Example program
N1 G15 H1 (WORK COORDINATE SYSTEM 1)
N2 T2 M06 (.250 DRILL)
N3 G00 G90 X1. Y1. S2400 M03 (FIRST HOLE)
…
The full 8-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Return level comes from M52, M53 or M54, not G98 or G99.
- Every X Y move after this drills a hole until G80.
On lathes: Start of longitudinal LAP contour
Starts the finished part contour for OD or ID turning along Z. The block gets a sequence name that G85, G86 or G87 calls.
Format
Addresses
| Address | What it does |
|---|---|
Nname | Sequence name the cycle call points to |
How it works
Contour definition until G80.
Example program
N2 G00 X3.2 Z.1 T010101 (ROUGH TOOL)
N3 G96 S500 M03 (500 SFM)
N4 G85 NAT01 D.1 F.012 U.02 W.005 (LAP ROUGH TURN)
…
The full 10-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- The contour is the finished shape. The LAP cycle works out the roughing passes.
- On Okuma lathes G81 is not drilling.
Related codes
G80 · G82 · G83 · G71 · G85 · G87
G81 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Drilling cycle |
| Haas NGC | Drill canned cycle |
| Mazak (EIA) | Drilling cycle, spot drill |
| Mitsubishi M70 M80 | Drilling cycle |
| Brother Speedio | Drilling cycle |
| Fagor 8055 8065 | Drilling canned cycle |
| LinuxCNC Tormach | Drill cycle |
| Mach3 Mach4 | Drill cycle |
| Centroid CNC12 Acorn | Drilling cycle |
| Hurco WinMax (NC) | Drill or spot drill cycle |
| Fadal | Drill, spot drill |
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 G81 in the app All Okuma OSP G-codes