Introduction
Pocket milling removes material inside a rectangular area to create a flat cavity. It helps shape parts by cutting out unwanted material.
G0 Xstart Ystart ; Move to start point G1 Zdepth Ffeedrate ; Lower tool to cutting depth G1 Xend Ystart Ffeedrate ; Cut along X axis G1 Xend Yend ; Cut along Y axis G1 Xstart Yend ; Cut back along X axis G1 Xstart Ystart ; Cut back along Y axis G0 Zsafe ; Lift tool to safe height
G0 X0 Y0 G1 Z-5 F100 G1 X50 Y0 G1 X50 Y30 G1 X0 Y30 G1 X0 Y0 G0 Z10
G0 X10 Y10 G1 Z-3 F80 G1 X40 Y10 G1 X40 Y25 G1 X10 Y25 G1 X10 Y10 G0 Z15
G21 ; Set units to millimeters
G90 ; Use absolute positioning
G0 Z10 ; Lift tool to safe height
G0 X0 Y0 ; Move to pocket start
G1 Z-4 F120 ; Lower tool to 4mm depth
G1 X60 Y0 F150 ; Cut right
G1 X60 Y40 ; Cut up
G1 X0 Y40 ; Cut left
G1 X0 Y0 ; Cut down to start
G0 Z10 ; Lift tool to safe height
M30 ; End of programG0 Z5 G0 X0 Y0 G1 Z-2 F100 G1 X50 Y0 F200 G1 X50 Y30 G1 X0 Y30 G1 X0 Y0 G0 Z5
G0 Z5 G0 X0 Y0 G1 Z-2 F100 G1 X50 Y0 F200 G1 X50 Y30 G1 X0 Y30 G1 X0 Y0 G1 Z5
Pass the test and this pattern moves unknown