G-code reference
G00 G-Code: Rapid Positioning
Rapid Positioning — Moves the axes at the machine's maximum traverse rate to the commanded position. It is used for non-cutting moves only. Depending on the control parameter…
| Property | Value |
|---|---|
| Code | G00 |
| Function | Rapid Positioning |
| Modal group | 01 |
| Type | Modal — stays active until replaced by another code of the same group |
| Used on | Mills and lathes |
| Syntax | G00 X_ Y_ Z_ |
What does G00 do?
Moves the axes at the machine's maximum traverse rate to the commanded position. It is used for non-cutting moves only. Depending on the control parameter, the path is either a straight line (interpolated) or a "dog-leg" where each axis moves at its own maximum speed.
G00 is modal: once programmed it remains in effect for the following blocks until another code from modal group 01 replaces it or the control is reset.
Syntax and parameters
G00 X_ Y_ Z_| Address | Meaning |
|---|---|
X Y Z | Target position (absolute in G90, incremental in G91) |
G00 example program
G90 G54 G00 X0 Y0
G43 H01 Z50.0
G00 Z5.0 (rapid to clearance plane)▶ Open this example in the G-code viewer
Tips and common mistakes
- Never rapid into the stock: always position to a safe clearance height first.
- On many machines G00 is not a straight line — check the path when moving near clamps.
- Rapid override (25/50/100 %) only slows G00 moves, not G01.
Controller compatibility
G00 follows the ISO/Fanuc dialect used by Fanuc, Haas, Brother, Doosan, Hurco (ISO mode), Mazak (EIA/ISO mode), Okuma (G-code mode) and Siemens in ISO dialect mode. Parameters, option packages and builder-specific behaviour can differ, so confirm the details in your machine's programming manual before running a new program.
Related codes
- G01 — Linear Interpolation (Feed Move)
- G28 — Return to Reference Point (Machine Home)
- G53 — Machine Coordinate System (One Block)