Pecking applies to Deep Hole, Chip Break, and Tap operations.
To handle pecking in a CNC file:
The NC code specifies one depth and all the steps peck at that depth. An example would be the deep hole cycle of the Fanuc 0m:
{N<SEQ>}<CYCLE>{X<X-COORD>}
{Y<Y-COORD>}R<ABS-ZCLEAR>Z
<ABS-DEPTH>Q<STEP1>F<FEED><EOB>
The NC code specifies two depths. The first step pecks at the first depth and all the subsequent steps peck at the second depth. The Bridgeport Machines Boss9I control deep hole cycle is an example
{N<SEQ>}<CYCLE>Z<INC-DEPTH>
Z<INC-STEP1>Z<STEP2>F<FEED><EOB>
{N<SEQ>X<X-COORD><EOB>
The NC code specifies the first depth, a reducing value and a minimum depth. The first step pecks at the first depth. Each subsequent step is reduced by the reducing value until the minimum depth is reached. To use the FeatureCAM attributes consistently with the other pecking methods, it is recommended that the reducing value be calculated with the expression [<STEP1>-<STEP2>] as shown in the deep hole drilling cycle for the Fadal control below:
{N<SEQ>}<CYCLE>{X<X-COORD>}
{Y<Y-COORD>}R<ABS-ZCLEAR>Z
<ABS-DEPTH>I<INC-STEP>
J<[<STEP1>-<STEP2>]K<
MIN-STEP>F<FEED><EOB>
The NC code specifies the first depth, a reducing factor and a minimum depth. The first step pecks at the first depth. Each subsequent step is reduced by the reducing factor until the minimum depth is reached. To use the FeatureCAM attributes consistently with the other pecking methods, it is recommended that the reducing value be calculated with the expression [<STEP2>/<STEP1>] as shown in the deep hole drilling cycle for the GE2000 control below:
{N<SEQ>}<CYCLE>Z<ABS-DEPTH>
R<ABS-ZCLEAR>D<TOOL>F<FEED> P1=<INC-STEP1>
P2=[<STEP2>/<STEP1>]P5=<MIN-STEP>F<FEED><EOB>
{N<SEQ>} X<X-COORD>Y
<Y-COORD><EOB>