Master CNC
Blog · 6 min read · 26 Oct 2026

Okuma OSP LAP4 roughing cycles explained

On an Okuma lathe with OSP control, the roughing and finishing cycles are part of LAP (Lathe Auto-Programming, LAP4 on current controls). The idea is the same as Fanuc G71 and G70: describe the finished contour once, then let the control rough it and finish it. The way you write it is different.

The pieces

CodeMeaning
G81Start of a longitudinal (OD/ID) contour definition
G82Start of a transverse (facing) contour definition
G80End of the contour definition
G85Roughing cycle (bar turning) along the contour
G86Copy turning cycle (for castings and forgings)
G87Finishing cycle along the contour
G88Continuous thread cutting
Okuma LAP: G85 roughing with contour between G81 and G80, then G87 finishing
Describe the contour once; rough and finish it.

A typical structure

N100 G00 X62 Z5
G85 NLAP1 D3 F0.3 U0.4 W0.1
NLAP1 G81
G00 X30
G01 Z0 F0.15
X40 Z-5
Z-30
X60
G80
G87 NLAP1
  • G85 NLAP1 calls roughing for the contour labelled LAP1.
  • D is the depth of cut, F the roughing feed, U and W the finishing allowances.
  • The contour starts at the block with the label and G81, and ends at G80.
  • G87 NLAP1 finishes along the same contour, using the feeds written inside it.

The label name, the exact address letters and extra options (for example changing cutting conditions part way) depend on the OSP model and LAP version. Treat this as a map of the structure and take the exact format from your Okuma programming manual.

Compared with Fanuc

JobFanucOkuma LAP
Rough a bar along ZG71G85 with a G81 contour
Rough by facingG72G85 with a G82 contour
Rough a castingG73G86
FinishG70G87

More code differences are in Fanuc vs Okuma OSP codes, and the Okuma thread cycle in Okuma OSP G71 threading (on Okuma, G71 is a thread cycle, not roughing).

Common mistakes

  1. Copying a Fanuc G71 program to an Okuma: on OSP, G71 cuts a thread.
  2. Forgetting G80 at the end of the contour.
  3. Label in G85 not matching the label on the contour.

LAP4 is an option on OSP controls. The Master CNC app Learn tab covers Okuma OSP lathe programming topics for reference; your machine's manual is the final word.

Try it in Master CNC

Calculators, process sheet to program, simulation, codes and lessons. Free to start, no sign-in, on phone and laptop.

Open the app