Home › G-codes › Okuma OSP › G01
G01 Linear interpolation
Okuma OSP G-code · Mill, Lathe
On mills: Linear interpolation
Moves the tool in a straight line at the programmed feed rate. This is the basic cutting move.
Format
G01 X Y Z F
Addresses
| Address | What it does |
|---|---|
X Y Z | End point of the cut |
F | Feed rate |
How it works
Modal, motion group. Stays on until G00, G02 or G03.
Example program
O1000 (OKUMA MILL SAMPLE)
N1 G15 H1 (WORK COORDINATE SYSTEM 1)
N2 G00 G90 X-.6 Y0 S3000 M03 (START OFF THE PART)
N3 G56 Z.1 H1 (LENGTH OFFSET)
…
N1 G15 H1 (WORK COORDINATE SYSTEM 1)
N2 G00 G90 X-.6 Y0 S3000 M03 (START OFF THE PART)
N3 G56 Z.1 H1 (LENGTH OFFSET)
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- An F word is needed on the first G01 if no feed is active yet.
- Feed units follow G94 or G95. G94 per minute is normal on a mill.
On lathes: Linear interpolation
Cuts in a straight line at the feed rate. Feed is per revolution in the normal G95 mode.
Format
G01 X Z F
Addresses
| Address | What it does |
|---|---|
X | End point diameter |
Z | End point in Z |
F | Feed rate |
How it works
Modal, motion group.
Example program
O2000 (OKUMA LATHE SAMPLE)
N1 G50 S3000 (MAX SPINDLE 3000 RPM)
N2 G00 X2.1 Z.1 T010101 (START)
N3 G96 S500 M03 (500 SFM)
…
N1 G50 S3000 (MAX SPINDLE 3000 RPM)
N2 G00 X2.1 Z.1 T010101 (START)
N3 G96 S500 M03 (500 SFM)
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Okuma lathes default to feed per rev. F.01 means .01 inch per rev.
Related codes
G01 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Linear interpolation at feed rate |
| Haas NGC | Linear interpolation feed motion |
| Mazak (EIA) | Linear interpolation, feed move |
| Mitsubishi M70 M80 | Linear feed move |
| Brother Speedio | Linear interpolation |
| Siemens 840D 828D | Linear interpolation at feed rate |
| Heidenhain TNC (ISO) | Straight line at feed rate, Cartesian |
| Fagor 8055 8065 | Linear interpolation |
| LinuxCNC Tormach | Linear feed move |
| Mach3 Mach4 | Linear feed move |
| Centroid CNC12 Acorn | Linear feed move |
| Hurco WinMax (NC) | Linear feed move |
| Fadal | Linear interpolation at feed |
| Swiss (Citizen Star) | Linear feed move |
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 G01 in the app All Okuma OSP G-codes