How to Program a CNC Drilling Dowel Insertion Machine
This guide is for engineers who need to write, prove out, and tune a program for a CNC drilling dowel insertion machine. It covers CAD prep, hole path rules, post-processing, calibration, and the parameters that decide whether a joint holds. Read it before you cut the first test block.

In this article
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
Key takeaways
Preparing CAD data for a cnc drilling dowel insertion program
Programming starts in the model, not at the control. Build every dowel hole as a separate feature with its own axis, and keep the hole axis normal to the mating face. If the face is angled even 2°, the drill walks and the dowel sits proud on one side.
Set hole diameter to the dowel nominal plus 0.05–0.10 mm for a press fit in hardwood, or plus 0.10–0.15 mm for a slip fit that still takes glue. Never scale the whole model to fix one hole; adjust the feature, not the part.
Keep hole depth at 1.5 × the dowel embedment plus 2 mm clearance for chips. A Ø8 × 30 mm dowel needs roughly 47 mm of drilled depth. Shallow holes bottom out, the dowel mushrooms, and the joint opens under load.
- 1Model holes as featuresOne feature per hole keeps CAM selection clean and lets you reorder without rebuilding.
- 2Check face normalityAny tilt over 1° needs a spot drill or a tilted work plane.
- 3Leave chip clearanceAdd 2 mm below the dowel tip so swarf does not stop insertion.
Planning hole paths and tool entry for dowel joints
Order holes by axis direction, not by the order they appear in the drawing. Grouping all +Z holes together lets the machine index once and drill without extra rotary moves. On a 16-station setup this alone can cut 15–25% of cycle time.
Use a stub or jobber drill with a 118–135° point for most dowel work. A 135° split point reduces walking on hard maple and aluminium. For deep holes past 4 × D, switch to a parabolic flute drill and peck at 0.5 × D per retract.
Define entry with a spot drill when the surface is curved or the material is abrasive. A 90° spot 2 mm deep holds the drill on center and gives you a chamfer for the dowel lead-in at the same time.
- 1Group by axisFewer rotary moves means less cumulative positioning error.
- 2Match point angle to material118° for softwood, 135° split point for hardwood and aluminium.
- 3Peck past 4 × D0.5 × D retract clears chips and keeps hole straightness inside 0.05 mm.
Turning CAM data into machine code for cnc drilling dowel insertion
Post-process the CAM file with a post that matches your control and your insertion head. Generic posts often output canned cycles your machine ignores, so the drill plunges at rapid. Check the first three blocks of G-code by hand before you load anything.
Set the drilling cycle to G81 for shallow holes under 3 × D and G83 for deeper work. Keep the retract plane at least 2 mm above the part, and set the initial level 5 mm above that. A retract that is too low drags chips across the finished face.
If the machine inserts dowels on the same program, add the insertion move after the last hole of each group. Trigger it with an M-code your PLC already watches. Confirm the dwell time at full seat depth: 0.3–0.5 s is usually enough for glue squeeze-out, longer wastes cycle time.
- 1Verify the postDry-run the first 20 lines in single block before cutting.
- 2Use G83 past 3 × DFull retract between pecks clears the flutes and controls heat.
- 3Dwell at seat depth0.3–0.5 s lets the dowel settle without slowing the cycle.
Calibrating the machine and tuning for production
Calibrate before every new fixture, not every new program. Indicate the fixture datums to within 0.02 mm, then set work offsets from those datums. If the fixture moves, every hole in the program moves with it.
Check the insertion head with a dial indicator on a seated dowel. Seating depth should sit within ±0.10 mm of nominal. If it drifts, inspect the feed roller pressure and the dowel magazine for debris before you touch the program.
For production runs, log the first 5 parts and the last 5 parts of the first batch. Compare hole position with a CMM or a pin gauge. If drift shows up after 50 parts, the issue is usually thermal growth in the spindle, not the code.
- 1Indicate datums first0.02 mm fixture error becomes 0.02 mm hole error everywhere.
- 2Measure seating depthDial indicator on the seated dowel, target ±0.10 mm.
- 3Watch thermal driftRe-check the first hole after 30 minutes of continuous running.
Common programming faults and how to catch them
The most frequent fault is a wrong work offset sign. The machine drills a mirror pattern, and the operator blames the CAM file. Check the offset direction against the fixture drawing before you cut.
The second is a retract plane set below the fixture clamp. The drill rapids into steel and snaps. Set the retract 5–10 mm above the tallest clamp, and run the first cycle in single block with feed override at 10%.
The third is a dowel magazine that runs empty mid-cycle. The insertion head fires into an empty hole and the PLC faults. Add a low-level sensor check in the program start block so the cycle stops before the first hole, not after the twentieth.
- 1Offset signMirror patterns almost always come from a reversed offset.
- 2Retract height5–10 mm above the tallest clamp prevents rapid collisions.
- 3Magazine checkSensor check at cycle start beats a mid-run fault.
Step by step: programming a cnc drilling dowel insertion cycle
Follow this order. Skipping a step usually shows up as a scrapped first part.
- 11. Validate the CAD modelCheck hole axes, diameters, and depths against the dowel spec. Confirm every hole axis is normal to its face within 1°. Fix features, not the whole model.
- 22. Set hole sizes and depthsPress fit: dowel nominal + 0.05–0.10 mm. Slip fit: +0.10–0.15 mm. Depth: 1.5 × embedment + 2 mm chip clearance. Write these numbers on the setup sheet.
- 33. Plan the tool pathGroup holes by axis direction. Spot drill curved or abrasive faces 2 mm deep at 90°. Select 118° or 135° drills by material. Peck at 0.5 × D past 4 × D depth.
- 44. Post and inspect the codeUse a post matched to your control. Confirm G81 under 3 × D and G83 beyond. Retract plane 2 mm above the part, initial level 5 mm above that. Read the first 20 lines by hand.
- 55. Add the insertion sequencePlace the insertion move after the last hole in each group. Use the M-code your PLC watches. Set dwell at seat depth to 0.3–0.5 s and confirm the magazine low-level check runs at cycle start.
- 66. Calibrate the fixture and headIndicate fixture datums to 0.02 mm. Set work offsets from those datums. Verify dowel seating depth with a dial indicator at ±0.10 mm.
- 77. Dry-run and first articleRun the full cycle 50 mm above the fixture at 10% feed override. Then cut one part and measure hole position with a pin gauge or CMM before releasing the batch.
Drilling and insertion parameters by material
Starting points for Ø8 mm dowels. Adjust after the first article.
| Material | Speed (rpm) | Feed (mm/rev) | Peck depth |
|---|---|---|---|
| Hardwood (maple, oak) | 2,000–2,800 | 0.10–0.15 | 0.5 × D past 4 × D |
| Softwood (pine, fir) | 3,000–4,000 | 0.15–0.25 | 0.5 × D past 4 × D |
| Aluminium 6061 | 3,000–4,500 | 0.08–0.12 | 1.0 × D |
| ABS / PC plastic | 2,500–3,500 | 0.10–0.18 | 1.0 × D |
| POM (acetal) | 2,000–3,000 | 0.08–0.15 | 1.0 × D |
| MDF / particleboard | 3,500–4,500 | 0.20–0.30 | 0.5 × D past 4 × D |
Program the joint, not just the hole
Hole position, seating depth, and chip clearance decide whether a dowel joint holds. Get those three right and the rest of the program is routine.
Frequently asked questions
Can one program handle several dowel sizes?
Yes, if the machine has a tool changer and the insertion head can switch magazines. Group holes by dowel size, drill each group with its own tool, then insert before the next group starts.
Keep the dowel size change as a separate subprogram. Editing one group then does not touch the rest of the cycle.
What materials work with cnc drilling dowel insertion?
Wood, MDF, particleboard, ABS, PC, POM, and aluminium are the common ones. Aluminium 6061 runs well with a 135° split-point drill and 1.0 × D pecks.
Very abrasive composites wear drill margins fast. Expect to change drills every 80–120 holes and check hole diameter every 20.
How long does it take to program a custom part?
A simple flat panel with 20–40 holes takes 2–4 hours from CAD to first article. A 3D fixture with angled faces and mixed dowel sizes takes 6–10 hours.
Most of that time is path planning and dry-run, not code writing. Rushing the dry-run is how fixtures get scrapped.
What is the largest part the process can handle?
At GreatLight, the maximum processing size is 4,000 mm. Large travels of 4,000 × 400 × 150 mm cover long rails and panels.
Standard work envelopes of 750 × 1,150 × 550 mm and 600 × 600 × 600 mm handle most cabinet and frame parts.
Do you train customer teams on this programming workflow?
Yes. We walk your programmers through CAD prep, post configuration, and first-article measurement on your own parts.
Training is scheduled around your production window so it does not block a running batch.
Send your dowel joint drawing
We quote and return a free DFM analysis within 12 hours. Production can start within 24 hours, and parts ship in 3–5 days.
12-hour quote100% inspectionNo minimum order