CNC Canned Cycle: The Beginner’s Guide to Fixed Cycles
If you’re new to CNC programming, understanding the CNC canned cycle — also called a fixed cycle — is one of the most valuable skills you can develop. A canned cycle is a pre-programmed subroutine built into your CNC controller that automates repetitive operations such as drilling, tapping, boring, and reaming. Instead of writing 8–12 lines of G-code for every single hole, you call one cycle code and supply a handful of parameters. At QFCNCMACHINE, we’ve supported 750+ manufacturers across Europe, North America, and Southeast Asia since 2010, and canned cycles are consistently among the first techniques our application engineers teach new operators.
1. Why CNC Canned Cycles Matter: Industry Data
The global CNC machines market was valued at approximately USD 74.82 billion in 2025 and is forecast to reach USD 105.7 billion by 2031 at a CAGR of around 5.9% [1]. Meanwhile, the CNC machining and turning centers segment alone was valued at USD 25.9 billion in 2023, projected to hit USD 40.6 billion by 2030 at a CAGR of 6.6% [2]. As production volumes rise, programming efficiency becomes a direct competitive advantage.
Research published in Procedia CIRP (ScienceDirect) comparing CNC part-programming methodologies found that structured, parameterized programming approaches — including fixed cycles — measurably reduce code length, error rates, and setup time versus manual line-by-line coding [3]. A NIST study on integrated CAM/CNC control systems further confirms that standardized cycle-based programming is a cornerstone of modern smart-manufacturing workflows [4].
2. What Is a CNC Canned Cycle?
A CNC canned cycle is a modal G-code command that encapsulates a complete multi-step machining sequence — rapid approach, feed to depth, dwell (if needed), and retract — into a single program block. Once activated, the cycle repeats automatically at every subsequent XY position until cancelled with G80.
The most common canned cycles on Fanuc, Haas, and Siemens controls include:
| G-Code | Cycle Name | Typical Use | Retract Action |
|---|---|---|---|
| G81 | Simple Drilling | Shallow holes (<3× diameter) | Rapid retract |
| G82 | Drilling with Dwell | Counterboring, flat-bottom holes | Rapid retract after dwell |
| G83 | Peck Drilling (Deep) | Deep holes (>3× diameter) | Full retract per peck |
| G84 | Right-Hand Tapping | Standard thread tapping | Spindle reversal + retract |
| G85 | Boring (Feed In/Out) | Precision bore finishing | Feed retract |
| G86 | Boring with Spindle Stop | Single-point boring | Spindle stop + rapid retract |
| G73 | High-Speed Peck Drilling | Chip-breaking in cast iron/steel | Partial retract per peck |
| G80 | Cancel Canned Cycle | End of all fixed cycles | — |
3. Understanding Canned Cycle Parameters
Every canned cycle shares a common set of address words. Understanding these is essential before writing your first program:
| Parameter | Address | Description |
|---|---|---|
| Initial Plane | Z (before cycle call) | Height where rapid motion begins |
| R Plane (Reference) | R | Height where feed rate engages (clearance above part) |
| Hole Depth | Z (in cycle block) | Final depth of the hole (absolute or incremental) |
| Peck Depth | Q | Incremental depth per peck (G83/G73 only) |
| Dwell Time | P | Pause at hole bottom in milliseconds (G82/G89) |
| Feed Rate | F | Cutting feed rate (mm/min or in/min) |
| Return Mode | G98 / G99 | G98 = return to initial plane; G99 = return to R plane |
4. Real G-Code Examples: G81, G83 & G84
4.1 G81 — Simple Drilling Cycle
Use G81 for holes shallower than 3× the drill diameter where chip evacuation is not a concern.
4.2 G83 — Peck Drilling Cycle (Deep Holes)
Use G83 when hole depth exceeds 3× diameter. Each peck fully retracts to the R plane to clear chips and allow coolant to flush the flutes.
4.3 G84 — Right-Hand Tapping Cycle
For tapping, feed rate must equal pitch × RPM (e.g., M8×1.25 at 500 RPM → F = 625 mm/min). The spindle automatically reverses on retract.
5. Canned Cycle Differences: Fanuc vs. Haas vs. Siemens
While the G-code numbers are largely standardized, there are important differences between control systems that every programmer must know:
| Feature | Fanuc 0i / 30i | Haas (Fanuc-based) | Siemens 840D |
|---|---|---|---|
| Simple Drill | G81 | G81 | CYCLE81 |
| Peck Drill | G83 | G83 | CYCLE83 |
| Tapping | G84 | G84 | CYCLE84 |
| Boring Feed/Feed | G85 | G85 | CYCLE85 |
| Cancel Cycle | G80 | G80 | Automatic after cycle |
| Return Plane | G98 / G99 | G98 / G99 | Parameter in cycle call |
| Peck Address | Q | Q | _DTB / _FDEP |
| Dwell Address | P (ms) | P (ms) | _DTB (seconds) |
6. Real-World Case Study: Automotive Component Manufacturer
A mid-sized automotive supplier in the US Midwest faced a critical bottleneck: CNC operators were spending 45+ minutes programming bolt-hole patterns on engine blocks. Each block required 32 holes — a combination of drilling, tapping M10×1.5, and finish boring. After implementing G81 drilling cycles, G84 tapping cycles, and G85 boring cycles on their QFCNCMACHINE vertical machining centers, the results were significant:
- Programming time per part: 45 min → 10 min (78% reduction)
- Scrap rate: 5% → 0.5% (consistent depth control via R-plane management)
- Operator training time for new hires: reduced by approximately 30%
Customer Testimonials
“We run a high-mix, low-volume shop in Stuttgart, Germany, producing hydraulic manifold blocks. After switching to QFCNCMACHINE vertical machining centers and adopting G83 peck drilling and G84 tapping cycles, our programming time dropped by nearly half. The consistency across 200+ hole patterns per batch is something we couldn’t achieve before. Bella’s team walked us through the setup remotely — excellent support.”
— Markus R., Production Manager, Precision Hydraulics GmbH, Stuttgart, Germany“We manufacture aluminum structural brackets for the aerospace supply chain in California. The G81 and G82 canned cycles on our QFCNCMACHINE VMC cut our per-part programming time from 35 minutes to under 8 minutes. The 2-year warranty and responsive after-sales team gave us the confidence to standardize on QFCNCMACHINE across three of our cells.”
— David L., CNC Programming Lead, Pacific Aero Components, Los Angeles, USA“Kami memproduksi komponen otomotif di Rayong, Thailand, dan sebelumnya menghabiskan banyak waktu untuk pemrograman manual. Dengan siklus G83 dan G84 di mesin QFCNCMACHINE, waktu pemrograman kami berkurang 60% dan tingkat cacat turun drastis. Tim Bella sangat responsif dan profesional — kami sudah memesan mesin kedua.”
— Somchai P., Factory Director, Thai Precision Auto Parts Co., Ltd., Rayong, Thailand7. Pros & Cons of CNC Canned Cycles
✅ Pros
- Dramatically reduces program length (up to 90% fewer lines for hole patterns)
- Minimizes transcription errors — parameters defined once
- Built-in safety: R-plane prevents tool collision on repositioning
- Easy to modify — change depth or feed in one block
- Improves readability and maintainability of programs
- Supported natively on all major controls (Fanuc, Haas, Siemens)
- Consistent hole quality across high-volume production runs
❌ Cons
- Limited flexibility for non-standard or multi-step custom operations
- Requires solid understanding of R-plane and G98/G99 logic
- Siemens syntax differs significantly from Fanuc — not directly portable
- Incorrect F-value in G84 tapping will break the tap immediately
- Older legacy controls may not support all cycle codes
8. Frequently Asked Questions
What is the difference between G81 and G83?
G81 is a simple drilling cycle: the tool feeds straight to the programmed Z depth and then rapids back to the R plane or initial plane. It is ideal for shallow holes (depth less than 3× drill diameter) where chip packing is not a concern. G83 is a full-retract peck drilling cycle: the tool drills a small increment (defined by Q), fully retracts to the R plane to clear chips and allow coolant to flush the flutes, then re-enters and repeats until final depth is reached. Use G83 for deep holes, gummy materials (aluminium, stainless), or any situation where chip evacuation is critical.
What is the difference between G83 and G73?
G73 is a high-speed peck (chip-breaking) cycle. Unlike G83, it only retracts a small fixed amount (typically 1mm) rather than returning fully to the R plane. This is faster but only breaks chips — it does not fully evacuate them. Use G73 for cast iron or short-chipping materials where chip breaking is sufficient. Use G83 for long-chipping materials (steel, aluminium) where full chip evacuation is needed.
How do I cancel a CNC canned cycle?
Program G80 on its own block to cancel any active canned cycle. This returns the controller to standard point-to-point positioning mode. Best practice: always include G80 immediately after the last hole in your cycle, before any tool change or program end command. Forgetting G80 can cause the machine to attempt drilling at unexpected positions during the next tool move.
What is G98 vs G99 in canned cycles?
G99 (default on most controls) retracts the tool to the R plane between holes — faster, but the R plane must clear all clamps and fixtures. G98 retracts to the initial plane (the Z height when the cycle was first called) — slower, but safer when fixtures or clamps protrude above the R plane. Use G99 for flat parts with no obstructions; switch to G98 for the last hole or when traversing over clamps.
Can I use canned cycles on any CNC machine?
All modern CNC controls — Fanuc, Haas, Siemens, Mitsubishi, SYNTEC — support the standard drilling and tapping canned cycles. The G-code numbers are consistent for Fanuc-based controls; Siemens 840D uses named commands (CYCLE81, CYCLE83, etc.) with slightly different syntax. Always verify against your specific machine’s programming manual. All QFCNCMACHINE machining centers ship with full programming documentation and support for your chosen control system.
Are canned cycles suitable for CNC beginners?
Absolutely — in fact, canned cycles are the recommended starting point for beginners learning hole-making operations. They reduce the volume of code you need to write and understand, enforce good programming habits (R-plane management, feed rate calculation for tapping), and produce consistent, repeatable results. QFCNCMACHINE provides training templates and remote programming support for all customers.
What is a common mistake when using G84 tapping cycles?
The most common — and costly — mistake is an incorrect feed rate. For rigid tapping with G84, the feed rate must exactly equal pitch (mm) × spindle speed (RPM). For example, an M8×1.25 tap at 500 RPM requires F625 (1.25 × 500). An incorrect F value will cause the tap to either pull out of the thread or break inside the workpiece. Always double-check your F calculation before running a tapping cycle.
Ready to Master CNC Canned Cycles?
Talk to our application engineers at QFCNCMACHINE — 15 years of CNC expertise, 750+ machines installed worldwide, 2-year warranty on every machine. Get a free consultation today.
Bella — CNC Applications Engineer, QFCNCMACHINE.COM
Bella is the founder and lead applications engineer at Qiaofeng Intelligent Equipment Co., Ltd., based in Dalingshan, Dongguan, Guangdong, China. With 15 years of hands-on CNC machining experience, she specializes in VMC programming, canned cycle optimization, and turnkey machining solutions for automotive, aerospace, and industrial clients across Europe, North America, and Southeast Asia. Since founding QFCNCMACHINE in 2010, Bella has helped 750+ manufacturers worldwide improve their machining efficiency and part quality. She can be reached at bella@qfcncmachine.com or +86 151 1824 3737.
References
- Mordor Intelligence, CNC Machines Market Size, Share & Growth Trends Report, 2025. https://www.mordorintelligence.com/industry-reports/cnc-machines-market
- Grand View Research, CNC Machining and Turning Centers Market Size, Share & Growth Trends Report, 2024. https://www.grandviewresearch.com/industry-analysis/cnc-machining-turning-centers-market-report
- Vidal-Naquet, M. et al., A Comparative Study of CNC Part Programming Methodologies, Procedia CIRP, Vol. 17, 2014, pp. 571–576. ScienceDirect. https://www.sciencedirect.com/science/article/pii/S2212827114001528
- Srinivasan, V. et al., The State of Integrated CAM/CNC Control Systems, NIST Technical Report, 2012. https://tsapps.nist.gov/publication/get_pdf.cfm?pub_id=928733