Introduction
The G81 canned cycle helps you drill holes quickly and easily by automating the drilling steps in CNC machines.
G81 X__ Y__ Z__ R__ F__ ;
G81 X10 Y20 Z-5 R2 F100 ;
G81 X0 Y0 Z-10 R1 F80 ;
N10 G90 G21 ; Set absolute positioning and metric units N20 G00 X0 Y0 ; Move to start position N30 G81 X10 Y10 Z-5 R2 F100 ; Drill hole at (10,10) N40 X20 Y10 ; Drill hole at (20,10) N50 X20 Y20 ; Drill hole at (20,20) N60 G80 ; Cancel canned cycle N70 G00 Z50 ; Retract to safe height N80 M30 ; End program
G90 G00 X10 Y10
G81 Z-5 R1 F50
G80
G81 X20 Y30 Z5 R2 F75
Pass the test and this pattern moves unknown