Home › G-codes › Okuma OSP › G13
G13 Turret A select
Okuma OSP G-code · Lathe
Selects turret A on a two turret lathe. Blocks after it are for turret A.
Format
G13
How it works
Modal until G14.
Example program
O2000 (TWO TURRET LATHE)
N1 G13 (TURRET A)
N2 G00 X3.2 Z.1 T010101 (TOOL 1 ON A)
N3 G14 (TURRET B)
…
N1 G13 (TURRET A)
N2 G00 X3.2 Z.1 T010101 (TOOL 1 ON A)
N3 G14 (TURRET B)
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Two turret programs need sync codes so the turrets do not collide.
Related codes
G13 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Haas NGC | Circular pocket milling counterclockwise |
| Heidenhain TNC (ISO) | Counterclockwise arc, polar |
| Mach3 Mach4 | Circle or pocket, counterclockwise |
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 G13 in the app All Okuma OSP G-codes