Home › G-codes › Okuma OSP › G34
G34 Variable lead thread, increasing
Okuma OSP G-code · Lathe
Cuts a thread where the lead grows by a set amount each turn.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
G34 X Z F E
Addresses
| Address | What it does |
|---|---|
X Z | Thread end point |
F | Starting lead |
E | Lead change per lead |
How it works
Thread cutting command.
Example program
O2000 (OKUMA LATHE SAMPLE)
N1 G50 S3000 (MAX SPINDLE 3000 RPM)
N2 G00 X2.1 Z.3 T070707 (THREAD TOOL)
N3 G97 S200 M03 (200 RPM)
…
N1 G50 S3000 (MAX SPINDLE 3000 RPM)
N2 G00 X2.1 Z.3 T070707 (THREAD TOOL)
N3 G97 S200 M03 (200 RPM)
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Rare work such as screw conveyors. Prove it in the graphics first.
- G35 is the same with a decreasing lead.
Related codes
G34 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Variable lead thread cutting |
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 G34 in the app All Okuma OSP G-codes