Printed from Kezuriba (kezuriba.net/en/nc/g00/)
G00
Machining center, LatheModal, group 01Rapid positioning (rapid traverse)
Format and notes
G00 X_ Y_ Z_ (lathe: G00 X(U)_ Z(W)_)
- The rapid traverse rate itself is set on the machine side and is not specified with F
- A non-cutting move. You must make sure the path does not hit the workpiece or fixture
- The rapid traverse path is not necessarily a straight line. Each axis moves at its own rapid rate and stops when it arrives, so the path is often a polyline (Haas). Some controls move in a straight line (interpolated rapid), and which one applies depends on the control type and settings. Near fixtures and workpieces, move the axes separately, for example by retracting Z first and then moving X and Y
- On lathes, X is a diameter value and U/W are incremental (FANUC-type G-code system A)
Diagram: Rapid (G00) and cutting feed (G01) paths
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
Simulator with exercises: Machining center page
Differences between controls and machines
The same code can be written or assigned differently depending on the CNC control and the machine builder. Always check your machine’s manual.
| Source | Machine | Item | Detail |
|---|---|---|---|
| NIST | Machining center | Group | 1NIST labels this motion group as 1 (only the numbering differs; the meaning is the same) |
| Haas | Machining center | Notes | Each axis moves at its maximum speed, and the axes do not necessarily all stop at the same time. The path is usually not a single straight line |
| Beckhoff | Machining center | Notes | G00 is linear interpolation at rapid traverse (the path is a straight line) |
Frequently asked questions about G00
- What is G00 (Rapid positioning (rapid traverse)) used for and how is it formatted in a CNC program?
- G00 commands "Rapid positioning (rapid traverse)" on Machining center, Lathe. The standard program format is "G00 X_ Y_ Z_ (lathe: G00 X(U)_ Z(W)_)". The rapid traverse rate itself is set on the machine side and is not specified with F
- Is G00 a modal code or a one-shot (non-modal) code?
- G00 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 G00 work differently on machining centers (mills) versus CNC lathes?
- G00 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 G00 across FANUC, Mitsubishi, Okuma, Haas, and Siemens controls?
- Yes. Control builders such as FANUC, Mitsubishi Electric (M80/M800), Okuma (OSP), Haas, Mazak, Siemens (SINUMERIK ISO dialect), and Heidenhain can differ in argument letters, decimal-point rules, and optional parameters for G00. Review the control comparison table above and verify the exact syntax in your machine’s programming manual before proving out the program.
Sources
The meaning of this code agrees in two or more sources from different publishers. Explanations are written in our own words.
- Mitsubishi Electric — The Basics of CNC Machining Programming (for Machining center) e-Learning material (PDF) mitsubishielectric.com
- Mitsubishi Electric — The Basics of CNC Machining Programming (for Lathe) e-Learning material (PDF, BNP-C8027-688) mitsubishielectric.com
- 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
- Haas Automation, Inc. — Mill Operator's Manual – 17 Mill G-Codes (online version) haascnc.com
- Haas Automation, Inc. — Lathe Operator's Manual – 16 Lathe G-Codes (online version) haascnc.com
- National Institute of Standards and Technology (NIST), USA — The NIST RS274NGC Interpreter – Version 3 (NISTIR 6556, 2000) nvlpubs.nist.gov
- 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
- Haas Automation, Inc. — G-code, M-code, and Setting (per-code explanation pages) haascnc.com
- Beckhoff Automation — TwinCAT CNC Programmierung: Eilgang G00 (in German) infosys.beckhoff.com