对图所示的凸轮零件轮廓,在深度方向上分两刀切削,试编程。
解:对于图,编程原点为直径为22mm孔的圆心。设深度方向每次铣7.5mm,其程序为:
%5000
G54G40G49G80
G00Z100
X-20Y35
S800M03
G00Z10
G01Z0F100
M98P101L2
G00Z100
X-20Y35
M05M02
%101
G91G01Z-7.5F100
G90G41G01X-10.046Y31.481D01
G02X0Y38R11
Y-38R38
X-10.046Y-31.481R11
G01X-20.091Y-8.963
G02Y8.963R22
G01 X-10.046Y31.481
G40G01X-20Y35
M99