G00 rapid crash: why it happens and how a G-code checker finds it
Spot the mistake on a Haas mill: one G00 line plunges into the part. Press play to watch.
A G-code checker finds a G00 rapid crash before the machine does, and it is the most common way a new program breaks a tool: one line still says G00 where it should say G01, and the axis moves into the material at full rapid speed. Here is how it happens, and how to fix it.


Why G00 crashes happen
- G00 where G01 was meant. G00 is modal, so the line
Z-0.25after aG00 Z0.1is a rapid too, unless G01 comes first. - An approach point that is not clear of the part. A rapid to X Y at a Z below the top of the stock, or a lathe approach to a Z inside the bar.
- Retracting in the wrong axis. On a lathe, moving out in X while the boring bar is still at the bottom of the bore.
- G00 does not always move in a straight line. On Haas and on many Fanuc controls each axis rapids at its own rate, so a diagonal rapid can clip a corner that a straight line would miss.
The mill: G00 into the part
The wrong line and the right one:
G00 Z-0.25 (wrong: rapid a quarter inch into the part)
G01 Z-0.25 F10. (right: feed down)
The full program, after the fix:
%
O01090 (G00 RAPID CHECK - HAAS MILL)
(STOCK 4.0 X 3.0 X 1.0 - X0 Y0 TOP LEFT FRONT CORNER)
(T1 1/2 FLAT END MILL - FLUTE 1.0 - STICK OUT 1.5)
G20 G17 G40 G49 G80 G90
T1 M06
G54 G00 X0.75 Y1.5 S3000 M03
G43 H01 Z1. M08
Z0.1
G01 Z-0.25 F10.
G01 X3.25 F20.
G00 Z1. M09
M05
G28 G91 Z0.
G90
M30
%

Spot the mistake on a Fanuc lathe: the boring bar rapids out in X from the bottom of the bore. Press play to watch.
The lathe: rapid out through the bore wall
The boring bar finishes the bore at Z-1.0, then G00 X3. takes it straight out through the wall. Back off in X first, rapid out in Z, then move away:


G01 Z-1. F0.004
G00 X3. (wrong: the bar is still inside the bore)
G01 Z-1. F0.004
X1.15 (right: back off the wall)
G00 Z0.1 (out of the bore)
X3. Z2.

How the G-code checker finds it
NC Proof runs every move against the 3D stock. A G00 that touches material is an error on its line, with how deep it goes. Click the message and the 3D view jumps to that moment. Both programs above run with no messages after the fix.
G00 rapid crash FAQ
Why did my G00 move crash? Usually a line that should be G01 is still in G00 (G00 is modal), the approach point is not clear of the part, or the tool retracts in the wrong axis first.
Does G00 move in a straight line? Not always. On Haas and on many Fanuc controls each axis moves at its own rapid rate, so a diagonal G00 can take a dog-leg path. Keep rapids clear of the part in every axis.
How do I check rapids before running a program? Run it in a G-code checker such as NC Proof, which flags any G00 that touches the stock on its line, or single-block the first run with the rapid override low.
See every error the app checks on Errors & warnings. Paste your own program into NC Proof Turn or NC Proof Mill during the 4-day free trial (no card needed).