G-code reference

G80: Canned cycle cancel

G80 is canned cycle cancel. Cancels the active drilling or tapping cycle. It is modal, so it stays active on the following lines until another code from the same group replaces it.

What G80 does

G80 ends a canned cycle such as G81 or G83. Until it is cancelled, every X/Y position on a later line drills another hole, so G80 belongs straight after the last hole and in the safety line.

TypeG-code
MachineMill
GroupCanned cycle
ModalYes: stays active until replaced by another code from the same group

G80 example

G80

Stop drilling at each new position.

WordWhat it means here
G80Canned cycle cancel

Codes people confuse with G80

CodeWhat it does instead
G40 Cutter compensation cancel. Turns off cutter radius (or tool nose) compensation.
G49 Tool length compensation cancel. Cancels G43 or G44.

Other codes in the canned cycle group

Only one code from a modal group is active at a time. Programming any of these replaces G80.

  • G73 High-speed peck drilling
  • G74 Left-hand tapping cycle
  • G76 Fine boring cycle
  • G81 Drilling cycle (spot drill)
  • G82 Drilling cycle with dwell
  • G83 Deep hole peck drilling
  • G84 Tapping cycle (right hand)
  • G85 Boring cycle (feed out)
  • G86 Boring cycle (spindle stop, rapid out)
  • G89 Boring cycle with dwell (feed out)

Meanings follow the common Fanuc-style standard that Haas, Okuma (EIA mode), Mitsubishi, LinuxCNC and most other controls share for this code. Options and parameters change details from machine to machine, so check the manual for your control.

Quick check: G80

  1. What does G80 do? (Mill)

  2. Which code: Cancels the active drilling or tapping cycle.(Mill)

  3. What does G40 do? (Mill and lathe)

Show the answers
  1. Cancels the active drilling or tapping cycle.
  2. G80
  3. Turns off cutter radius (or tool nose) compensation.

Drill this code with the rest of the core set

More practice hubs

Frequently asked questions

What does G80 mean in CNC programming?
Canned cycle cancel. Cancels the active drilling or tapping cycle.
Is G80 modal?
Yes. G80 belongs to the canned cycle group and stays active until another code from that group is programmed.
What is the difference between G80 and G40?
G80 (canned cycle cancel): cancels the active drilling or tapping cycle. G40 (cutter compensation cancel): turns off cutter radius (or tool nose) compensation.
What is the difference between G80 and G49?
G80 (canned cycle cancel): cancels the active drilling or tapping cycle. G49 (tool length compensation cancel): cancels G43 or G44.

G-Code Sprint is an educational practice tool only. It is not a CNC simulator, machine controller, safety manual, or replacement for instruction. Always follow your instructor, employer, machine manual, and shop procedures.

Free preview · no card Try G-Code Sprint