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.

By cnccode · Updated
PropertyValue
CodeG80
FunctionCancel Canned Cycle
Modal group09
TypeModal — stays active until replaced by another code of the same group
Used onMills and lathes
SyntaxG80

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

Format
G80

G80 example program

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

Frequently asked questions

Is G80 modal?
Yes. G80 belongs to modal group 09 and stays active until another code of that group is programmed.
What does G80 mean in CNC?
G80 means Cancel Canned Cycle. Cancels any active drilling/tapping/boring canned cycle. Without it, every following position move would drill another hole.
What is the difference between G80 and G81?
G80 is Cancel Canned Cycle, while G81 is Drilling Cycle (Spot Drill). See the G81 page for its syntax and examples.
Can I use G80 on a lathe?
Yes, G80 is used on both mills and lathes, although some parameters differ between them.