CNC Pocket Milling Program Example – Peck Milling

CNC milling program example which shows how a cnc program can be made to machine Pockets on a cnc mill.

This program example uses Peck milling to cut material to machine a rectangular and one round pocket.

CNC Pocket Milling Program Example

CNC Pocket Milling Program Example - Peck Milling

Main Program

Milling cutter diameter: 10mm

N05 G55
N10 M6 T2 H3 G43 M3
N15 S1000 F60
N20 G0 X9 Y9 Z1
N25 G1 Z0
N30 M98 P030035 		
N35 G0 Z1 G90
N40 X42 Y38 			
N45 G1 Z-2 F30 			
N50 X47 F300 			
N55 G3 X47 Y38 I-5 J0 
N60 G0 Z100 			
N65 G49 				
N70 M30

Subprogram

O0035
N05 G1 Z-2 G91 F30
N10 X10 F100
N15 Y36
N20 X-10
N25 Y-36
N30 M99

Explanation

Although this cnc mill program is self explanatory

M98 P030035

this code mean call Subprogram No. 0035 three times.