Home › G-codes › Heidenhain TNC (ISO) › G01
G01 Straight line at feed rate, Cartesian
Heidenhain TNC (ISO) G-code · Mill
Cuts a straight line at feed rate F to the Cartesian target point. Klartext: L X Y Z RL RR R0 F.
Format
G01 [G40 G41 G42] X Y Z F [M]
Addresses
| Address | What it does |
|---|---|
X Y Z | End point of the line |
G40 G41 G42 | Radius compensation |
F | Feed rate in mm per min |
How it works
Modal path function. F is modal too.
Example program
N60 G01 Z-5 F1000 M3 *
N70 G01 G41 X+5 Y+5 F300 *
N80 G26 R5 F150 *
N90 Y+95 *
…
N70 G01 G41 X+5 Y+5 F300 *
N80 G26 R5 F150 *
N90 Y+95 *
…
The full 9-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- A block with only coordinates repeats the last path function, so check what was active before.
- Start radius compensation G41 or G42 in a G01 block, not in an arc.
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 |
| Okuma OSP | Linear interpolation |
| Mitsubishi M70 M80 | Linear feed move |
| Brother Speedio | Linear interpolation |
| Siemens 840D 828D | Linear interpolation at feed rate |
| 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 Heidenhain TNC (ISO) 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 Heidenhain TNC G-codes