CNC mill · G-code
G00 / G01: rapid and linear feed moves
G00 moves at rapid to position the tool; G01 cuts in a straight line at the programmed feedrate F. Both are modal: they stay in effect until another motion code replaces them. Haas lists it in modal group 01. Formats below from Haas and LinuxCNC, each from its maker.
Worked example
Face a 0.5" step in two moves. Written for this page in the Haas format.
G00 G90 G54 X-0.6 Y0 (rapid clear of the part)G00 Z-0.05G01 X3.6 F20. (cut at 20 in/min)G00 Z1.How each control writes it
Haas G00 X- Y- Z- / G01 X- Y- Z- F-
One source: Haas Automation, the control's maker
- X, Y, Z, A, B, C
- Axis end points (optional)
- F
- Feedrate (G01); the last F stays in effect
- E
- G00 only: rapid rate of the block, as a percent (optional)
- ,R
- G01 only: corner radius inserted at the end of the move (optional)
- ,C
- G01 only: chamfer inserted at the end of the move (optional)
- A G00 move is not always one straight line: each axis runs at its own maximum and they may finish at different times.
- A rapid also cancels an active canned cycle, like G80.
- G01 alarms if an axis cannot reach the programmed feedrate.
Source: Haas Automation, mill G01
LinuxCNC G0 axes / G1 axes F-
One source: the LinuxCNC project, the control's maker
- X, Y, Z, A, B, C, U, V, W
- Axis end points (optional)
- F
- Feed rate (G1); it is an error if none has been set
- G0 is coordinated motion to the end point at the maximum rapid rate (or slower).
- The path of a G0 can be rounded at direction changes, depending on trajectory settings.
Source: LinuxCNC documentation, "G0 Rapid Move / G1 Linear Move" (archived Oct 29, 2026)
How the controls differ
- Only Haas takes ,C, ,R, E.
- Only LinuxCNC takes U, V, W.
- A word two controls share can still mean different things: read each control's list above.
No Fanuc row yet: that chapter of the 0i manual has not been read.
Haas follows Fanuc's numbering, but options and parameters differ between controls: check your control's manual.