G01: Linear interpolation (feed move)
What G01 does
G01 moves in a straight line to the commanded point at the feed rate set by F. It is the main cutting move. Because motion codes are modal, every following line keeps cutting at feed until another motion code such as G00, G02 or G03 replaces it.
| Type | G-code |
|---|---|
| Machine | Mill and lathe |
| Group | Motion |
| Modal | Yes: stays active until replaced by another code from the same group |
G01 example
G01 X80. F300. Feed in a straight line to X80 at 300 mm/min.
| Word | What it means here |
|---|---|
G01 | Linear interpolation (feed move) |
X80. | X axis target (on a lathe, the diameter) |
F300. | feed rate (on threading codes, the lead) |
Codes people confuse with G01
| Code | What it does instead |
|---|---|
G00 | Rapid positioning. Moves to a point at full rapid speed, not cutting. |
G02 | Circular interpolation, clockwise. Cuts an arc clockwise, seen from the positive end of the axis normal to the plane. |
Memory hook: One straight line, one feed rate.
Other codes in the motion group
Only one code from a modal group is active at a time. Programming any of these replaces G01.
Meanings follow the common Fanuc-style standard that Haas, Okuma (EIA mode), Mitsubishi, LinuxCNC and most other controls share for this code. Options and parameters change details from machine to machine, so check the manual for your control.
Quick check: G01
-
What does
G01do? (Mill and lathe) -
Which code: Cuts in a straight line at the programmed feed rate F.(Mill and lathe)
-
What does
G00do? (Mill and lathe)
Show the answers
- Cuts in a straight line at the programmed feed rate F.
- G01
- Moves to a point at full rapid speed, not cutting.
Frequently asked questions
- What does G01 mean in CNC programming?
- Linear interpolation (feed move). Cuts in a straight line at the programmed feed rate F.
- Is G01 modal?
- Yes. G01 belongs to the motion group and stays active until another code from that group is programmed.
- What is the difference between G01 and G00?
- G01 (linear interpolation (feed move)): cuts in a straight line at the programmed feed rate F. G00 (rapid positioning): moves to a point at full rapid speed, not cutting. A way to remember it: one straight line, one feed rate.
- What is the difference between G01 and G02?
- G01 (linear interpolation (feed move)): cuts in a straight line at the programmed feed rate F. G02 (circular interpolation, clockwise): cuts an arc clockwise, seen from the positive end of the axis normal to the plane. A way to remember it: one straight line, one feed rate.
G-Code Sprint is an educational practice tool only. It is not a CNC simulator, machine controller, safety manual, or replacement for instruction. Always follow your instructor, employer, machine manual, and shop procedures.