Home › G-codes › Okuma OSP › G181
G181 Live tool drilling cycle
Okuma OSP G-code · Lathe
Drills with a rotating tool on the face or the side of the part at a C axis angle.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
G181 X Z C R F [E] [Q]
Addresses
| Address | What it does |
|---|---|
X Z | Cycle start point |
C | C axis indexing angle |
R | Infeed from the start point, sign gives the direction |
F | Cutting feed |
E | Dwell at the bottom |
Q | Number of equally spaced holes |
How it works
Modal compound fixed cycle. Cancel with G180.
Example program
O2000 (OKUMA LATHE SAMPLE)
N1 G50 S3000 (MAX SPINDLE 3000 RPM)
N2 G00 X3.5 Z-.5 T121212 (.250 LIVE DRILL)
N3 G181 X3.2 Z-.5 C0 R-1. F5. Q4 (4 CROSS HOLES, FORMAT TO VERIFY)
…
N1 G50 S3000 (MAX SPINDLE 3000 RPM)
N2 G00 X3.5 Z-.5 T121212 (.250 LIVE DRILL)
N3 G181 X3.2 Z-.5 C0 R-1. F5. Q4 (4 CROSS HOLES, FORMAT TO VERIFY)
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- R in the X direction is a diameter value.
- Q repeats the hole around the part at equal spacing.
Related codes
G181 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Centroid CNC12 Acorn | Compound 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 G181 in the app All Okuma OSP G-codes