G01

Machining center, LatheModal, group 01

Linear interpolation (cutting feed)

Format and notes

G01 X_ Y_ Z_ F_ (lathe: G01 X(U)_ Z(W)_ F_)

Diagram: Rapid (G00) and cutting feed (G01) paths

RapidCutting feedWorkpieceNot always a straight lineG00 Rapid traverseAxes move together,each at its max speedG01 Cutting feedStraight to end point at FStartEnd
G01 cuts in a straight line from start to end at the feed set by F (combined speed of all axes). The dotted line in the figure is the G00 rapid move.

Try it in the simulator (machining center)

Compare G00 (red = rapid) and G01 (green = feed). Raise Z before a G00 so it travels above the stock.

    X—
    Y—
    Z—
    T—
    S0
    F0
    —0:00

      Frequently asked questions about G01

      What is G01 (Linear interpolation (cutting feed)) used for and how is it formatted in a CNC program?
      G01 commands "Linear interpolation (cutting feed)" on Machining center, Lathe. The standard program format is "G01 X_ Y_ Z_ F_ (lathe: G01 X(U)_ Z(W)_ F_)". Once commanded, F stays in effect until changed (modal)
      Is G01 a modal code or a one-shot (non-modal) code?
      G01 is a modal code (Group 01). Once commanded, it remains active across subsequent blocks until another code from the same modal group overrides it or the control is reset. Always state or cancel modal states explicitly in your safety block and at the end of a tool operation so residual modes do not cause unexpected motion when restarting mid-program.
      Does G01 work differently on machining centers (mills) versus CNC lathes?
      G01 is primarily used on Machining center, Lathe. Depending on the machine type and the lathe G-code system (System A, B, or C), this code may be unavailable or assigned to a different function, so verify against your machine tool manual.
      Are there differences in G01 across FANUC, Mitsubishi, Okuma, Haas, and Siemens controls?
      While the core behavior of G01 is shared across most ISO-compatible CNC controls (FANUC, Mitsubishi Electric, Haas), controls using native conversational or proprietary dialects (such as Okuma OSP, Siemens native mode, or Heidenhain) or machine-specific M-code tables may use different syntax. Always verify with single-block execution and distance-to-go display on a new machine.

      Sources

      The meaning of this code agrees in two or more sources from different publishers. Explanations are written in our own words.

      1. Mitsubishi Electric — The Basics of CNC Machining Programming (for Machining center) e-Learning material (PDF) mitsubishielectric.com
      2. Mitsubishi Electric — The Basics of CNC Machining Programming (for Lathe) e-Learning material (PDF, BNP-C8027-688) mitsubishielectric.com
      3. Siemens AG — SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D Programming Manual ISO Milling, 04.2007 Edition (6FC5398-7BP10-0BA0) cache.industry.siemens.com
      4. Haas Automation, Inc. — Mill Operator's Manual – 17 Mill G-Codes (online version) haascnc.com
      5. Haas Automation, Inc. — Lathe Operator's Manual – 16 Lathe G-Codes (online version) haascnc.com
      6. National Institute of Standards and Technology (NIST), USA — The NIST RS274NGC Interpreter – Version 3 (NISTIR 6556, 2000) nvlpubs.nist.gov
      7. Ministry of Health, Labour and Welfare (MHLW), Human Resources Development Bureau, Office of the Councillor for Skills Evaluation — Human resource development manual using the practical exam tasks of the Grade 3 Skilled Worker Test: CNC lathe work (March 2018) waza.mhlw.go.jp