MFG-CNC14-05 · Lesson 4 · 13 clock hours · demo
Drilling, Boring, and Hole-Making Toolpaths
Objective. Students will apply Mastercam hole-making cycles—spot drill, drill, peck drill, tap, and bore—to a multi-hole pattern, selecting the correct canned cycle and peck increment for each operation.
⚠ Pending professional review
This lesson, its worked examples and its practice questions has not yet been verified by a licensed engineer or certified journey-level tradesperson or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.
VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.
Hole-Making Toolpaths in Mastercam
Hole-making is one of the most common operations in machined parts. Mastercam groups all hole-making operations under its Drill toolpath category, which calls on canned cycles that your CNC control executes in a single block of G-code. Understanding how to choose the right cycle, set the correct parameters, and sort holes efficiently is essential for productive, accurate work.
The Canned Cycle Toolbox
Each operation below maps to a standard G-code canned cycle supported by Haas and most FANUC-compatible controls.
Spot Drill (G81 or short G82 dwell): The first operation in almost every hole sequence. A spot drill creates a shallow conical indent that guides the following drill and prevents it from walking. Without a spot, a twist drill can drift and produce an off-location hole. Set depth just deep enough to chamfer the full drill diameter—typically one-half the spot drill's included angle depth. Never skip this step on critical bolt-circle or dowel-pin locations.
Drill (G81): A standard drill cycle feeds to depth, then rapids out. Use it for shallow holes (depth ≤ 3× drill diameter) where chip evacuation is not a concern.
Peck Drill (G83 – full retract): The drill feeds to a peck increment, retracts fully to the R-plane to clear chips, then re-enters with a small clearance before the next peck. Use G83 for deep holes (depth > 3× diameter) and gummy materials such as aluminum or stainless. Full retract ensures chip evacuation but adds cycle time.
Chip-Break (G73 – partial retract): The drill feeds to a peck increment, then retracts a small fixed amount (often 0.010–0.020 in) to break the chip without fully clearing the hole. Faster than G83 but relies on chip fragmentation; not appropriate when chip packing is a risk.
Tap (G84 – right-hand rigid tapping): The spindle feeds in at a synchronized feed rate (feed per rev = pitch), then reverses RPM and retracts. Rigid tapping requires a control that supports spindle-encoder feedback. Feed rate must exactly equal RPM × pitch; Mastercam calculates this automatically when you enter the tap's pitch and desired RPM.
Bore (G76 or G85): Used when hole size and finish must be held tightly. A boring bar feeds to depth at a precise diameter; G76 uses an oriented spindle stop for a clean retract without marking the wall.
Selecting Peck Increment
For deep-hole drilling, a starting rule is peck increment = 3× drill diameter, then adjust based on material and observed chip character. Smaller pecks help in hard or stringy materials; larger pecks reduce cycle time in free-machining steel or plastics. In Mastercam's Drill parameters page, enter this value in the Peck field. You must also choose between G83 (full retract) and G73 (chip-break) using the Cycle drop-down.
Point Sorting: Why It Matters
When a pattern has many holes, the order in which the machine visits them affects non-cutting (rapid) travel time. Mastercam offers several sort methods:
- Shortest path (2D optimization): The control visits holes in an order that minimizes total rapid distance—similar to a traveling-salesman solution. This typically yields the fastest cycle time for large random patterns.
- By-diameter grouping: All holes of one size are drilled before moving to the next size, reducing tool changes on multi-diameter patterns.
- Rotary sort, bounding-box sort, and others are available for specific part geometries.
Always run a Backplot after changing sort order to confirm the tool path looks correct and no collision with clamps or fixtures is possible.
Tap Drill Sizing
Before programming a tap cycle, you must drill the correct tap drill size. Use a tap drill size chart or Machinery's Handbook to find the recommended tap drill diameter for your thread specification (e.g., ¼-20 UNC, M6×1.0). Drilling undersized will break the tap; oversized reduces thread engagement below the minimum required for strength.
Setting Up the Tap Cycle in Mastercam
1. Select Drill toolpath and choose the tap tool from the library.
2. In the Cycle drop-down, choose Tap (maps to G84).
3. Enter pitch (e.g., 0.050 in for ¼-20; this is 1÷20).
4. Enter desired RPM (follow tap manufacturer recommendation; carbide spiral-flute taps can run faster than HSS hand taps).
5. Mastercam automatically computes feed rate = RPM × pitch. Verify this value before posting.
6. Set depth to full thread depth plus approximately 2–3 thread pitches for lead-in.
Safety in the Lab
Even though this lesson is simulation-based, establish safe habits now:
- Backplot and Verify every toolpath before posting G-code. Collisions identified in simulation cost nothing; collisions on the machine can injure operators and destroy tooling.
- When the resulting G-code is later run on a machine, apply lockout/tagout (LOTO) procedures before any setup or tool change, per OSHA standards.
- Wear safety glasses whenever you are near an operating machine.
- Never override a tap cycle mid-program on the machine without understanding spindle-reversal logic; an interrupted rigid tap cycle can break the tap in the hole.
Backplot and Verification
After building your toolpath sequence, run Backplot to animate tool motion and check point order, rapid moves, and cycle depth. Run Verify (solid simulation) to check for gouges. If Mastercam flags a warning—such as a peck depth that exceeds the hole depth—read the message carefully, identify the parameter in error, correct it, and re-verify before posting.
Key terms10
Canned cycleA pre-defined G-code subroutine (such as G81, G83, G84) that executes a complete hole-making motion—feed in, dwell or peck, retract—in a single program block.
Peck incrementThe axial depth the drill advances on each plunge before retracting to clear chips; a common starting value for deep holes is 3× the drill diameter.
G83 (full-retract peck drill)A canned cycle in which the drill retracts fully to the R-plane after each peck, ensuring complete chip evacuation; preferred for deep or gummy-material holes.
G73 (chip-break cycle)A canned cycle in which the drill retracts only a short fixed amount after each peck to break the chip without fully clearing the hole; faster than G83 but less effective at evacuation.
Rigid tapping (G84)A canned tapping cycle that synchronizes spindle speed and feed rate so feed per revolution exactly equals the thread pitch, then reverses the spindle to retract without a floating tap holder.
Point sortingThe method Mastercam uses to sequence visits to multiple hole locations; options include shortest-path optimization and by-diameter grouping, each affecting total rapid travel and cycle time.
Spot drillA short, stiff drill used as the first operation on a hole location to create a conical guide mark that prevents subsequent drills from walking off position.
Tap drill sizeThe drill diameter required before tapping, chosen so the resulting hole leaves enough material for full thread engagement without overstressing the tap; found in a tap drill chart or Machinery's Handbook.
BackplotMastercam's tool-path animation that displays the programmed tool motion before posting G-code, used to verify cycle order, depths, and rapid moves.
Thread pitchThe distance from one thread crest to the next, measured in inches (for UN threads, pitch = 1 ÷ threads-per-inch) or millimeters; used to calculate tapping feed rate.
Worked examples4
1. Calculate the tapping feed rate for a ¼-20 UNC tap running at 300 RPM in rigid tapping mode.
- Step 1 – Find the pitch. For ¼-20 UNC, there are 20 threads per inch, so pitch = 1 ÷ 20 = 0.050 in/rev.
- Step 2 – Apply the rigid-tapping feed rate formula: Feed rate (in/min) = RPM × pitch = 300 × 0.050.
- Step 3 – Multiply: 300 × 0.050 = 15.0 in/min.
Answer: Feed rate = 15.0 in/min. Enter 15.0 in the Feed Rate field in Mastercam's Drill parameters; the value Mastercam auto-calculates should match this.
2. A hole is 1.500 in deep and is drilled with a 0.250 in diameter drill. Determine whether a peck cycle is needed and calculate the recommended starting peck increment.
- Step 1 – Evaluate hole depth relative to diameter: depth-to-diameter ratio = 1.500 ÷ 0.250 = 6.0.
- Step 2 – A ratio > 3 requires a peck drill cycle (G83 or G73); 6.0 > 3, so a peck cycle is required.
- Step 3 – Calculate starting peck increment using the 3× rule: peck increment = 3 × 0.250 = 0.750 in.
- Step 4 – Confirm: 0.750 in peck into a 1.500 in hole means 2 full pecks plus a finish pass, which is reasonable.
Answer: Use G83 (full-retract peck drill) with a starting peck increment of 0.750 in. Adjust downward for difficult materials or chip-packing problems.
3. A 20-hole bolt circle is programmed. Shortest-path sort results in 48 in of total rapid travel; by-diameter sort results in 74 in. The machine rapids at 400 in/min. How many seconds does each sort method save or cost compared to the other?
- Step 1 – Find the difference in rapid travel: 74 − 48 = 26 in of additional rapid travel with by-diameter sort.
- Step 2 – Convert to time: time = distance ÷ rapid rate = 26 ÷ 400 = 0.065 min.
- Step 3 – Convert to seconds: 0.065 × 60 = 3.9 seconds.
Answer: Shortest-path sort saves approximately 3.9 seconds of rapid time per cycle compared to by-diameter sort for this pattern. Over a production run the savings accumulate.
4. Find the correct tap drill diameter for an M8×1.25 thread using the formula: tap drill diameter = major diameter − pitch.
- Step 1 – Identify values: major diameter = 8 mm, pitch = 1.25 mm.
- Step 2 – Apply formula: tap drill diameter = 8.00 − 1.25 = 6.75 mm.
- Step 3 – Confirm against a standard tap drill chart: 6.75 mm (or the nearest standard drill, often 6.8 mm) is the commonly listed tap drill for M8×1.25. Always verify with the chart or Machinery's Handbook before programming.
Answer: Tap drill diameter ≈ 6.75 mm (commonly listed as 6.8 mm in standard charts). Program this drill before the G84 tap cycle.
The math in this lesson2
Learners compute tapping feed as RPM ÷ TPI and rapid time saved from travel distance and rapid rate.
6.RP.37.NS.1
In class: Instructor demonstrates point sorting (shortest path vs. by-diameter grouping) and its effect on cycle time using a 20-hole pattern; students measure and record estimated cycle time for each sort method · Students create a complete hole-making sequence (spot, peck-drill, and tap) on a provided flange drawing: they must select peck increment = 3× drill diameter for deep holes, set proper chip-break vs. full-retract logic, and assign correct tap pitch · Students intentionally set an incorrect peck depth, Backplot, observe the warning, correct the value, and document the error and fix in their lab log as a troubleshooting entry
Materials: Mastercam (current release), provided flange .MCX file, tap drill size chart, Machinery's Handbook, lab computers
Check: Instructor reviews posted G-code for the tap cycle: correct G84 (or equivalent Haas cycle), RPM calculated from tap manufacturer recommendation, peck logic appropriate for hole depth; pass = all three hole types present, no missing parameters, documented troubleshooting entry in lab log
Practice check8
Answer each question, then check it. Nothing is recorded; this is your own practice.
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.