Drilling cycles and shaft & holder
How the tool goes into each hole and back out, in which order, what your control receives - and how the shaft and holder are kept clear of the part.
What a drilling cycle is
A drill operation machines the selected holes one after the other. Its Motion tab decides how the tool goes into each hole and back out: straight in and out, in pecks to break or clear the chips, with a dwell, at a reduced feed where it breaks through, synchronised with the spindle for tapping, or milled with an end mill or thread mill.
Canned cycles are written as your control's own cycle (G81, G83, G84 ...). Where a control has no such cycle, WindFire writes the same motion as plain moves when that is safe, and refuses the cycle with a clear message when it is not (fine boring, back boring and tapping are never approximated).

- Motion tab
- Cycle type
- Pecking depth
- "?" opens this guide
Drill holes step by step
The demo plate is used for the pictures.
- Add or select a drill operation. Drilling, Drill in the ribbon, or click it in the CAM tree.

Figure 2. Step 1: the drill operation is selected - The operation in the CAM tree
- Its name and type
- The holes in the view
- Choose the holes. Geometry tab: holes are found automatically; click a hole wall to add or remove it, or use All holes / Through holes / Same size as first.

Figure 3. Step 2: the holes on the Geometry tab - Geometry tab
- Selected holes
- All holes
- Choose the hole order. Nearest next is the order of before; shortest path, by depth, as selected and the others are below. Reverse order turns any of them round.

Figure 4. Step 3: the hole order - Order
- Reverse order
- The path between the holes
- Check the heights. Heights tab: the retract height is the R plane of the cycle; From "Hole top" gives every hole its own R plane.

Figure 5. Step 4: the heights - Heights tab
- Retract height (R plane)
- Bottom height
- Choose the cycle. Motion tab, Cycle type. A note says when the tool does not suit the cycle.

Figure 6. Step 5: choose the cycle - Motion tab
- Cycle type
- Set the cycle parameters. Only the parameters of the chosen cycle are shown, with sensible defaults.

Figure 7. Step 6: the pecking parameters - Pecking depth
- Pecking depth reduction
- Chip breaking distance
- Turn on the shaft and holder check if the part is deep. Tool tab, Shaft & holder: choose what happens when the shaft or holder would come too close.

Figure 8. Step 7: shaft and holder - Tool tab
- Check the shaft and holder
- Shaft and holder mode
- Post. The post dialog shows the program, with every cycle in your control's own form or as moves.

Figure 9. Step 8: the posted program - Post dialog
- The cycles in the program
Every cycle type
The list follows the reference order. The code in brackets is what Fanuc-style controls receive; the table further down shows every control.
| Cycle | What it does and when to use it |
|---|---|
| Drilling - rapid out | Feed to depth, rapid out (G81). Spot and centre drilling, holes up to about 3 x the diameter. |
| Counterboring - dwell and rapid out | Feed to depth, dwell, rapid out (G82). Flat-bottomed counterbores and spot faces. |
| Chip breaking - partial retract | Pecks with a short retract to break the chip (G73). Deeper holes in long-chipping material. |
| Deep drilling - full retract | Pecks with a full retract out of the hole to clear the chips (G83). Deep holes. |
| Break through - reduced feed at the exit | Drills at the normal feed, then the last part at a reduced feed and spindle speed so the drill does not grab or push a burr when it breaks through. Written as moves on every control. |
| Guided deep drilling (gun drill) | Gun drilling: enters a pilot hole at the positioning feed and speed, runs up to full speed, drills to depth, dwells, slows down and feeds out. Written as moves. |
| Tapping (right hand) | Right-hand tapping (G84), feed = speed x pitch. Rigid (synchronised) or with a floating holder; a floating holder writes no rigid tapping code (no M29). A tap whose hand does not match the cycle blocks Post. |
| Left tapping | Left-hand tapping (G74): the spindle runs M4. |
| Tapping with chip breaking | Tapping in steps that go deeper each time (G84 with Q) where the control can. |
| Reaming - feed out | Feed in and feed out (G85). Precision holes with a reamer. |
| Boring - dwell and feed out | Feed in, dwell, feed out (G89). |
| Stop boring - spindle stop, rapid out | Feed in, stop the spindle, rapid out (G86). The insert drags along the wall on the way out. |
| Fine boring - shift away from the wall | Oriented stop and a shift away from the wall before the retract (G76). |
| Back boring | Back boring from below the part (G87): the tool passes through the hole shifted, then cuts upwards. |
| Circular pocket milling | Mills a round pocket with an end mill: a helix at the centre, then circles out to the wall, level by level. |
| Bore milling (helical) | Helical interpolation of the hole wall with an end mill, then a clean-up circle. |
| Thread milling | Mills an internal thread with a thread mill: one helix per start, the lead is the number of starts x the pitch. |
| Custom cycle (your own text) | Your own text at each hole, for a probing macro or a control cycle WindFire does not write. The text is posted as typed, with the hole values filled in. |

- Cycle type
- Tap holder

- The helices in the hole
- Number of threads
- Thread pitch
Cycle parameters
Lengths are in the project's units. A value of 0 for a feed or speed means "the operation's own".
- Dwelling period
- Time the tool waits at the bottom (seconds).
- Pecking depth
- How deep each peck goes.
- Pecking depth reduction
- Each peck is this much shorter than the one before.
- Minimum pecking depth
- Pecks never get shorter than this.
- Accumulated depth before a full retract
- Chip breaking: after this much depth the tool retracts fully once.
- Chip breaking distance
- How far the tool lifts between pecks.
- Dwell before retract
- Time the tool waits at the bottom of every peck.
- Break-through depth
- The last part of the hole drilled at the reduced feed.
- Break-through feedrate
- Feed for that last part.
- Break-through spindle speed
- Spindle speed for that last part.
- Guided depth (pilot hole)
- Depth of the pilot hole the gun drill enters slowly.
- Positioning feedrate
- Feed while entering the pilot (and for trimmed holes).
- Positioning spindle speed
- Spindle speed while entering the pilot.
- Tap holder
- Rigid: the control synchronises spindle and feed (M29 on Fanuc). Floating: no rigid tapping code, for a tension / compression holder.
- Shift (oriented stop)
- How far the boring bar moves away from the wall at the oriented stop.
- Back bore depth
- Height of the back counterbore above the bottom of the hole.
- Bar (neck) diameter
- Diameter of the bar above the cutter.
- Head height (cutter top to bar)
- From the top of the cutter to the bar.
- Stepover (fraction of the diameter)
- Circle spacing as a fraction of the tool diameter.
- Maximum stepdown
- Depth of each level.
- Helix pitch (per turn)
- Z per turn of the helix.
- Thread pitch (0 = from the tool)
- Thread pitch; 0 takes it from the tool.
- Thread diameter (0 = from the hole and pitch)
- Major diameter of the thread; 0 works it out from the drilled hole and the pitch.
- Number of threads (starts)
- Number of thread starts.
- Thread hand
- Right- or left-hand thread.
- Radial passes
- Number of radial passes to the full thread depth.
- Cycle text ({x} {y} {z} {r} {top} {q} {p} {feed} {rpm})
- Custom cycle text; {x} {y} {z} {r} {top} {q} {p} {feed} {rpm} are filled in for each hole.
- Direction
- Stock to leave
- Retract feedrate (0 = plunge feed)
- Feed out of the hole for guided deep drilling; 0 uses the plunge feed.
Hole order
The order holes are drilled in. Holes of a different depth or R plane always restate the whole cycle, so every hole is drilled to its own depth.
- Nearest next (as before)
- The next hole is always the nearest one, starting bottom left (the order of before).
- Shortest path
- Nearest next, then improved until no two moves can be swapped to make the path shorter.
- By depth (highest first)
- Holes with the highest top first.
- As selected
- In the order you clicked them.
- By diameter (smallest first)
- Smallest holes first.
- Rows (along X)
- Row by row along X, alternating direction.
- Columns (along Y)
- Column by column along Y.

- The path between the holes
- Order nearest next

- Highest holes first
- Order by depth
Predrill and entry positions
A pocket or adaptive normally enters the material with a helix or a ramp. With Predrill (Geometry tab of the pocket) it plunges straight down instead - into holes drilled first.
Make the holes with a drill operation before the pocket: on its Geometry tab choose Drill the entry points of and pick the pocket. The holes are drilled exactly where the pocket will plunge, to its depth. Posting stops if Predrill is on and no earlier drill operation drills the entry points. Use a drill at least as large as the end mill.
Post also checks the drill operation: a drilling cycle, a drill at least as large as the pocket tool, every entry point drilled, and the full drill diameter down to the entry depth (no drill-point cone left where the pocket plunges). If it says the holes are too shallow, turn on "Add drill-tip length" or use a flat-bottomed drill.

- Drill the entry points of
- Holes at the pocket's entry points

- Helix into the material
- Predrill off

- Straight plunge into the predrilled hole
Trimmed holes
For holes that an earlier operation has already partly machined, the drill can travel fast through the empty part: turn on Start inside a partly machined hole, set the starting depth offset (below the hole top) and the positioning feed and spindle speed. The tool moves to that depth at the positioning values, then drills at the normal feed and speed.

- Start inside a partly machined hole
- Starting depth offset
What each control receives
Generated from the post rules, so it is always what the post really writes.
✓ the control's own cycle · ✓ ! own cycle, check the machine (a warning says what) · → written as moves · ✗ refused with a message (never approximated)
| Cycle | Fanuc | Haas | Mazak | Okuma | Mach3 / Mach4 | LinuxCNC | Siemens 840D | Heidenhain | Fagor / DMS | Grbl | ShopBot |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Drilling - rapid out | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | → | → | → | → | → |
| Counterboring - dwell and rapid out | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | → | → | → | → | → |
| Chip breaking - partial retract | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | → | → | → | → | → |
| Deep drilling - full retract | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | → | → | → | → | → |
| Break through - reduced feed at the exit | → | → | → | → | → | → | → | → | → | → | → |
| Guided deep drilling (gun drill) | → | → | → | → | → | → | → | → | → | → | → |
| Tapping (right hand) | ✓ | ✓ | ✓ ! | ✓ ! | ✓ ! | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ |
| Left tapping | ✓ | ✓ | ✓ | ✓ | ✓ ! | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ |
| Tapping with chip breaking | ✓ ! | ✓ ! | ✓ ! | ✓ ! | ✗ | → | ✗ | ✗ | ✗ | ✗ | ✗ |
| Reaming - feed out | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | → | → | → | → | → |
| Boring - dwell and feed out | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | → | → | → | → | → |
| Stop boring - spindle stop, rapid out | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | → | → | → | → | → |
| Fine boring - shift away from the wall | ✓ | ✓ | ✓ ! | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
| Back boring | ✓ | ✓ | ✓ ! | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
| Circular pocket milling | → | → | → | → | → | → | → | → | → | → | → |
| Bore milling (helical) | → | → | → | → | → | → | → | → | → | → | → |
| Thread milling | → | → | → | → | → | → | → | → | → | → | → |
| Custom cycle (your own text) | → | → | → | → | → | → | → | → | → | → | → |
Shaft & holder
A deep cut can bring the tool shaft or the holder against the part long before the cutter gouges. With Check the shaft and holder on, every move is checked with the shaft and each holder segment grown by its clearance.
The shaft is the part of the tool between the flutes and the holder; the holder comes from the tool library. A reported collision is real: the check uses shapes that sit inside the real cylinders.

- Check the shaft and holder
- Trim toolpath
- For 3D finishing operations only. Leaves out every move, rapids included, where the shaft or holder would come too close; the tool lifts to the clearance height, crosses, comes down to 2 mm above the next safe move and ramps back onto the path. Other operations refuse it and Post is blocked: a trimmed roughing, 2D or drilling path would plunge into material or lose its cycle.
- Detect tool length
- Works out the shortest stick-out that keeps the holder and its clearance - beside it and under it - clear of the part and of the uncut stock top. Posting stops only if the tool sticks out less than that; the depth-only holder warning of before is replaced by this exact check.
- Fail on collision
- No toolpath; the operation says where the collision is, and Post is blocked until it is fixed.
- Skip colliding holes
- Drilling only: holes where the shaft or holder would collide are left out. If every hole would collide, Post is blocked.
- Shaft clearance
- Distance the shaft must keep from the part (default 1 mm).
- Holder clearance
- Distance the holder must keep from the part, beside it and under it (default 5 mm).
- Safe distance (rapids above the part)
- Rapids must stay at least this far above the part; the first one that does not is named in a warning.

- Passes next to the boss

- Passes where the holder clears
Tool containment
- Tool centre on the boundary
- The tool centre runs up to the boundary: the edge of the tool goes past it by the radius.
- Tool inside the boundary
- The whole tool stays inside the boundary.
- Tool outside the boundary
- The tool may go a radius beyond the boundary, so the edge of the boundary is finished.

- Tool containment
- Passes inside the boundary
Worked example
The demo plate: M8 tapped holes and a counterbore.
- Spot drill, Drilling cycle, 1 mm deep.
- Drill 6.8 mm, Deep drilling, pecking depth 3 mm, pecking depth reduction 0.5 mm, minimum 1 mm - written as moves because G83 cannot reduce the peck.
- Tap M8 x 1.25, Tapping (right hand), rigid: G84 with M29 on Fanuc.
- Shaft and holder on for the drill with Detect tool length: the stick-out of 30 mm is enough, posting is not stopped.

- Spot, drill and tap in the view
- The operations in the tree

- Cycle type
- The drill operation

- Post dialog
Messages and how to fix them
Messages appear under the operation and in the post dialog.
| Message | What to do |
|---|---|
| Predrill is on, but no earlier drill operation drills the entry points of this operation: it would plunge into material. Add a drill operation with "Drill the entry points of" this operation before it. | Add the drill operation before the pocket, or turn Predrill off. |
| Shaft and holder: the tool must stick out at least … (it sticks out …). | Set a longer stick-out in the tool library, or tick the holder confirmation if you know it clears. |
| Shaft and holder: the toolpath would bring the … within its clearance of the part (… place(s)), so it was not calculated. | Use a longer tool, a smaller clearance, or "Trim toolpath" for a finishing pass. |
| Shaft and holder: "Trim toolpath" is only for 3D finishing operations (a trimmed roughing, 2D or drilling toolpath would plunge into material or lose its cycle). Use "Fail on collision" or "Detect tool length", or a longer tool. | Use Fail on collision or Detect tool length for this operation. |
| A rapid passes … above the part, closer than the safe distance …: raise the retract or clearance height. | Raise the retract or clearance height on the Heights tab. |
| …: the custom cycle text is written as typed at each hole - check it for this control. | Read the posted lines once before running. |
| This cycle needs a tap. | Pick a tap on the Tool tab. |
| Shaft and holder: every hole would bring the shaft or holder within its clearance of the part, so none was drilled. Use a longer tool or another holder. | Use a longer stick-out or a slimmer holder. |
| Shaft and holder: the toolpath could not be trimmed to a path that keeps the shaft and holder clear, so it was not calculated. Use a longer tool or "Detect tool length". | Use a longer stick-out, or Detect tool length to see how long the tool must be. |
| Predrill: … predrilled hole(s) do not reach the entry depth with the full drill diameter (the drill point leaves a cone). Drill deeper (turn on "Add drill-tip length") or use a flat-bottomed drill. | Turn on Add drill-tip length on the drill operation, or drill with a flat-bottomed tool. |
| This is a right-hand tap: left tapping would strip the thread. Choose a left-hand tap or "Tapping (right hand)". | Pick a tap of the right hand on the Tool tab, or change the cycle. |
Tips
- Use Deep drilling for holes deeper than about 4 x the diameter, Chip breaking for long-chipping material.
- Break through avoids burrs and grabbing at the exit of through holes.
- Put "From Hole top" on the retract height when holes start at different levels.
- Turn on Detect tool length on deep parts: it replaces guessing with an exact stick-out.