对图所示的各槽加工,试用主、子程序调用的编程方式编程
解:编程原点为零件几何中心上表面,刀具直径为10mm的键槽刀。
%5000
G54
S500M03
G00Z10
X-70Y0
M98P101L3
G90X-70Y25
M98P101L3
G90X-70Y-25
M98P101L3
M05M30
%101
G91X35
G90G01Z0F100
M98P102L2
G90G00Z10
M99
%102
G91G01Z-5F100
G41X15D01
Y10
X-30
Y-20
X30
Y10
G40X-15
M99