G-code reference
G80 G-Code: Cancel Canned Cycle
Cancel Canned Cycle — Cancels any active drilling/tapping/boring canned cycle. Without it, every following position move would drill another hole.
| Property | Value |
|---|---|
| Code | G80 |
| Function | Cancel Canned Cycle |
| Modal group | 09 |
| Type | Modal — stays active until replaced by another code of the same group |
| Used on | Mills and lathes |
| Syntax | G80 |
What does G80 do?
Cancels any active drilling/tapping/boring canned cycle. Without it, every following position move would drill another hole.
G80 is modal: once programmed it remains in effect for the following blocks until another code from modal group 09 replaces it or the control is reset.
Syntax and parameters
G80G80 example program
G81 X10.0 Y10.0 Z-5.0 R2.0 F200.
X20.0
G80
G00 Z50.0▶ Open this example in the G-code viewer
Tips and common mistakes
- Put G80 in safe start lines and after every cycle group.
- G01/G00 do not reliably cancel cycles on every control.
Controller compatibility
G80 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.