Home › G-codes › Okuma OSP › G87
G87 Back boring cycle / LAP finish turning cycle
Okuma OSP G-code · Mill, Lathe
On mills: Back boring cycle
Bores from the back side of the part, pulling the tool up toward the spindle.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
Addresses
| Address | What it does |
|---|---|
X Y | Hole position |
Z | Back bore depth |
R | Start point below the part |
F | Feed rate |
How it works
Modal, fixed cycle group. Cancel with G80.
Example program
N1 G15 H1 (WORK COORDINATE SYSTEM 1)
N2 T10 M06 (BACK BORE BAR)
N3 G00 G90 X2. Y1. S600 M03 (BORE CENTER)
…
The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Needs spindle orient and shift to pass through the hole. Prove it slowly.
- Shift words differ by control. Check the manual.
On lathes: LAP finish turning cycle
Runs the finish pass along the named contour. Feed comes from the F words in the contour blocks.
Format
Addresses
| Address | What it does |
|---|---|
Nname | Sequence name of the first contour block |
How it works
Cycle call. One shot.
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
- Do not put S, T or M codes in the G87 block.
- Put the finish feed in the contour blocks. Otherwise the last active feed is used.
Related codes
G87 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Back boring cycle |
| Haas NGC | Boring cycle, stop and manual retract |
| Mazak (EIA) | Side drilling cycle, live tool |
| Mitsubishi M70 M80 | Back boring cycle |
| Brother Speedio | Back boring cycle |
| Fagor 8055 8065 | Rectangular pocket canned cycle |
| LinuxCNC Tormach | Back boring cycle, not implemented |
| Mach3 Mach4 | Back boring |
| Hurco WinMax (NC) | Back bore (ISNC) or chip breaker (BNC) |
| Fadal | Bore in and out, Fadal G87 |
| Swiss (Citizen Star) | Side drilling 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 G87 in the app All Okuma OSP G-codes