This is an educational explanation of the code mistakes behind a Z-axis plunge crash. It is not operating or safety instructions for your machine. Work under your instructor or employer and follow the machine manual.
Z-plunge crashes feel especially alarming because the tool drives straight down into the part, fast, with nowhere to go. The causes, though, are a small and understandable set of code mistakes.
The usual code mistakes
- A rapid down into the part. A
G00to a Z below the surface moves at full speed into the material. Cutting plunges should use a controlledG01feed. See G00 vs G01. - A wrong or missing tool length offset.
G43applies the tool’s length so Z stops at the right height. If the offset is wrong or not active, Z goes too deep. - No retract before a rapid. If Z is left low and the next line rapids in X or Y, the tool drags or slams into the part or a clamp.
- Absolute vs incremental confusion. A
G91left active turns an intended absolute Z into an incremental plunge. See G90 vs G91.
At a glance
| Mistake | What happens in Z | The concept to learn |
|---|---|---|
G00 plunge into stock | Rapid straight into the part | G00 vs G01 for plunges |
| Wrong tool length offset | Z stops too low | G43 tool length compensation |
| No retract before rapid | Tool drags across the part | Safe-Z and clearance moves |
G91 left active | Z move stacks incrementally | G90 vs G91 modal state |
Why recall helps here too
Every mistake above is a code or concept you can know cold: when to feed instead of rapid, what G43 does, and how modal state carries forward. A beginner fluent in the common G-codes and the modal behavior is far less likely to misread a Z move, which is part of why how to safely test a program starts with reading it. Recall does not replace careful checking on the machine, but it removes the confusion that causes the mistake. Build it with beginner CNC code practice.
Bottom line
A Z-plunge crash is usually a rapid where a feed belonged, a wrong tool length offset, or a missing retract. Learn the codes behind each, verify offsets, retract Z before rapids, and always work under supervision and your machine manual.
Sources
- LinuxCNC G-code reference (G0, G1, G43)
- Wikipedia: G-code
- CNCCookbook: G-code and M-code cheat sheet
Frequently asked questions
Why do Z-axis plunge crashes happen?
Usually a rapid (G00) commanded downward into the part instead of a controlled feed, a wrong or missing tool length offset so Z goes deeper than intended, or a move that did not retract Z to a safe height first. Z drives straight into the work, so these mistakes are unforgiving.
Should you ever plunge in Z with G00?
Rapiding down to a safe clearance height above the part is normal; rapiding down into or near the material is where crashes happen. Cutting plunges use a controlled feed (G01), not a rapid. Always follow your machine manual and shop procedure.
How do I avoid Z plunge mistakes as a beginner?
Understand the codes (G00 vs G01, tool length offset G43), verify offsets, and retract Z before rapids, under supervision. A practice tool like G-Code Sprint helps you recall what these codes do, but it is not a controller or a safety system.
G-Code Sprint is a study and practice tool only. It is not a CNC simulator, machine controller, or safety authority. Always follow your instructor, employer, machine manual, and shop safety procedures.