G-code reference

G01: Linear interpolation (feed move)

G01 is linear interpolation (feed move). Cuts in a straight line at the programmed feed rate F. It is modal, so it stays active on the following lines until another code from the same group replaces it.

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.

TypeG-code
MachineMill and lathe
GroupMotion
ModalYes: 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.

WordWhat it means here
G01Linear 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

CodeWhat 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.

  • G00 Rapid positioning
  • G02 Circular interpolation, clockwise
  • G03 Circular interpolation, counterclockwise
  • G32 Thread cutting (single pass)

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

  1. What does G01 do? (Mill and lathe)

  2. Which code: Cuts in a straight line at the programmed feed rate F.(Mill and lathe)

  3. What does G00 do? (Mill and lathe)

Show the answers
  1. Cuts in a straight line at the programmed feed rate F.
  2. G01
  3. Moves to a point at full rapid speed, not cutting.

Drill this code with the rest of the core set

More practice hubs

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.

Free preview · no card Try G-Code Sprint