Example program · Mill
High-Speed Peck Drilling in Aluminum (G73) — G-Code Example
Drills Ø6 mm holes 24 mm deep in 6061 with chip-breaking G73 pecks, which is much faster than full-retract G83 in free-cutting aluminum.
Drills Ø6 mm holes 24 mm deep in 6061 with chip-breaking G73 pecks, which is much faster than full-retract G83 in free-cutting aluminum.
| Item | Value |
|---|---|
| Machine | CNC mill / machining centre (Fanuc-style) |
| Units | Metric (G21) |
| Lines | 15 |
Program
O1103 (G73 6 MM X 24 IN 6061)
G21 G17 G40 G80 G90
T6 M06 (6 MM CARBIDE DRILL)
G54 G00 X10. Y10.
S7400 M03
G43 H06 Z25. M08
G99 G73 Z-25.8 R2. Q6. F1100.
X30.
X50.
G98 X70.
G80
M09
G91 G28 Z0
G90
M30▶ Simulate in the G-code viewer
How it works
- Speed ≈ 140 m/min and 0.15 mm/rev for a carbide drill in 6061.
- G73 retracts only a small amount (parameter) to break the chip.
- If chips pack in the flutes, switch to G83.
Codes used in this program
- G73 — Pattern Repeating (Lathe) / High-Speed Peck Drilling (Mill)
- G83 — Peck Drilling Cycle (Deep Hole)
- G99 — R-Plane Return (Mill) / Feed per Revolution (Lathe)
Always check feeds, speeds, offsets and clearances for your own machine and tooling, and prove new programs with single block and reduced rapid.
More milling programs
- Face Milling Program (Zig-Zag Passes)
- Outside Contour with Cutter Compensation (G41)
- Circular Pocket with Helical Entry
- Bolt Hole Circle with Polar Coordinates (G16)
- Peck Drilling a Hole Grid (G83)
- Rigid Tapping Program (M8 × 1.25)
- Internal Thread Milling M12 × 1.75
- Rectangular Pocket in Depth Passes Using a Subprogram
- Machining Multiple Parts with G54–G57
- Counterbore Holes for M6 Socket Head Screws
- Fine Boring a Precision Bore (G76 on a Mill)
- Milling a Slot with Ramping Entry
- Chamfering an Outside Edge with a Chamfer Mill
- Parametric Bolt Circle Macro (WHILE Loop)
- Spindle Warm-Up Program
- Setting a Work Offset Automatically with a Probe (G31)
- GRBL Router: Rectangle Cut-Out in Depth Passes
- GRBL / LinuxCNC Touch Plate Z Probe (G38.2)
- Haas G12 / G13 Circular Pocket in One Line
- Haas M97 Local Subprogram for Repeated Features
- Helical Boring a Ø20 Hole with a 10 mm End Mill