Subscribe to Blog
Email Address
 

Optimizing Peck Drilling for Deep Holes

Peck drilling is often necessary when machining deep holes. However, with the correct feed and speed settings, pecking is unnecessary for depths up to:

  • 3× diameter for standard drills
  • 5× diameter for high-performance parabolic drills

For deeper holes:

  • Up to 10× diameter → Up to 5 pecks for regular drills, and up to 3 pecks for parabolic drills
  • Beyond 10× diameter → Constant pecking is required:
    • 0.5–1× diameter per peck for regular drills
    • 1.5–2× diameter per peck for parabolic drills

Since programming requires specifying a peck amount, here are the recommended values:

Peck Drilling Guidelines

Regular Jobber Drills
  • Up to 3× dia: No peck
  • 3×–10× dia: 1× dia peck
  • Over 10× dia: 0.75× dia peck
  • Over 15× dia: 0.5× dia peck
High-Helix HP Drills
  • Up to 5× dia: No peck
  • 5×–10× dia: 2× dia peck
  • Over 10× dia: 1.5× dia peck

Our HSMAdvisor Speed and Feed Calculator not only suggests speeds and feeds but also recommends proper peck depths for various drill types and hole depths. In fact, it was the first machinist calculator to offer this feature—later adopted by competitors.

And here is a pretty image showing Peck VS Hole Depth for regular twist drill:

Peck Drilling Strategy

The peck amount should vary based on drill style and hole depth. Additionally, peck size should decrease progressively as the hole gets deeper. Ideally, start with larger pecks and gradually reduce the size as drilling progresses.

Let's explore how to apply this in toolpath programming.

Standard Peck Drilling Format

Code:HAAS PECK DRILLING (G83) FORMAT
G83 X Y L R Q P F
 

  • X Y: Hole location
  • L: Number of holes (if using incremental mode G91)
  • R: R-plane position
  • Q: Peck depth
  • P: Dwell time at the last peck (seconds)
  • F: Feed rate
  • Z: Target depth

Code:HAAS SAMPLE CODE
...
(T15 7/32 HiHelix DRL DEEP a 3.5" Hole)
(Tool # 15 Drill: .21875 )
T15 M6
S6400 M3
G90 G0 X-0.5 Y-1.0
M8
G43 Z0.5 H15
G83 X-0.5 Y-1.0 Z-3.5 Q0.375 R0.1 F48.
G80 G0 Z0.5
...

Variable Peck Drilling

Many CNC machines support variable pecking cycles, allowing deeper pecks at the start and shallower pecks as drilling progresses. This improves tool life and significantly reduces cycle time.

Code:FORMAT FOR VARIABLE PECKING(HAAS)
G83 X Y L R I J K P F
 

  • X Y: Hole location
  • L: Number of holes (if using G91)
  • R: R-plane position
  • I: Initial peck depth
  • J: Peck reduction per pass
  • K: Minimum peck depth
  • P: Dwell time at the last peck (seconds)
  • F: Feed rate
  • Z: Target depth

Code:HAAS VARIABLE PECKING EXAMPLE
...
(T15 7/32 DRL DEEP a 3.5" Hole)
(Tool # 15 Drill: .21875 )
T15 M6
S6400 M3
G90 G0 X-0.5 Y-1.0
M8
G43 Z0.5 H15
G83 X-0.5 Y-1.0 Z-3.5 I1.125 J0.1875 K0.375 R0.1 F48.
G80 G0 Z0.5
...

FANUC Macro for Progressive Pecking

For FANUC controls that do not support variable pecking, here’s a macro subroutine contributed by a user named Norman:

Code:FANUC MACRO FOR VARIABLE PECKING
%
O0001
(Fast Pecking)
G0 G28 G91 Z0. W0.
T1 M06
S1000 M03
G90
G56
G00 G43 Z1.
X0. Y0.
M98 P1111
G00 X2. Y0.
M98 P1111
G00 X2. Y2.
M98 P1111
G00 X0. Y2.
M98 P1111
M30

O1111
#1=0.0   (Top of hole)
#2=-1.0  (First peck depth, negative)
#3=0.5   (Peck reduction)
#4=-0.1  (Minimum peck, negative)
#5=-2.5  (Total depth)
#6=10.0  (Feed rate)
#7=0.1   (Top hole clearance)

#8=[#1+#7]
#9=#8
#11=#2
#12=[#1+#2]

WHILE [#10 EQ 0] DO1
    G00 Z#9
    G01 Z#12 F#6
    G00 Z#8
    #9=[#12+0.1]
    IF [#12 EQ #5] THEN #10=1
    #11=[#3*#11]
    IF [#11 GT #4] THEN #11=#4
    #12=[#12+#11]
    IF [#12 LT #5] THEN #12=#5
END1

M99
%

Final Thoughts

Implementing variable pecking can drastically improve efficiency and tool life. In my own experience, when drilling thousands of deep holes in large molds, this method reduced cycle time by 50–70% compared to regular peck drilling.

If your CNC supports variable pecking, be sure to use it—it optimizes drilling depth and efficiency, ensuring a smoother and faster operation. 

Comments:
Pages:(1) [1]
avatar

Tom

September 23, 2015, 11:59 am

Excellent explanation of the G83 function!

avatar

Miguel

February 7, 2017, 11:28 am

There is some reference for the depth in the different materials?

avatar

Eldar Gerfanov (Admin)

February 8, 2017, 10:37 pm
Updated by: Eldar Gerfanov (Admin)March 31, 2025, 5:13 pm

Quote:
There is some reference for the depth in the different materials?
The rule is true for most materials. With the exception of the exotics and tough ones, where you need to start pecking almost right away.

avatar

Nguyen Van Du

March 30, 2020, 10:04 pm

Thanks your information! Useful experience.

New Comment to: Programming Efficient Peck Drilling Cycle

Name: *
Solve Capcha:
*
Sing In

© 2009-2022 Eldar Gerfanov. All Rights Reserved.
© 2009 Eldar Gerfanov. Materials on this site are presented as is and are mostly for educational use.

You may freely reproduce information presented herein without any consent from me, provided you include link to this site.
In case when i am not the copyright holder, you may want to contact proper owner of material. Anyway, they are freely available on the Internet.
If you hold the copyright right for any of the materials on this site and want them removed, please contact me here