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…

By cnccode · Updated
PropertyValue
CodeG00
FunctionRapid Positioning
Modal group01
TypeModal — stays active until replaced by another code of the same group
Used onMills and lathes
SyntaxG00 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

Format
G00 X_ Y_ Z_
AddressMeaning
X Y ZTarget position (absolute in G90, incremental in G91)

G00 example program

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

Frequently asked questions

Is G00 modal?
Yes. G00 belongs to modal group 01 and stays active until another code of that group is programmed.
What does G00 mean in CNC?
G00 means 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, the path is either a straight line (interpolated) or a…
What is the difference between G00 and G01?
G00 is Rapid Positioning, while G01 is Linear Interpolation (Feed Move). See the G01 page for its syntax and examples.
Can I use G00 on a lathe?
Yes, G00 is used on both mills and lathes, although some parameters differ between them.