数控铣床编程举例5
试编制如图所示零件的数控加工程序。并说明在执行加工程序前应作什么样的对刀考虑?(设工件厚度为15mm)
解:编程原点为零件左下角上表面。设深度方向每次铣5mm,其程序为: %4000 G54G40G49G80 G00Z100 X-30Y-30 S800M03 G00Z10 G01Z0F100 M98P101L3 G00Z100 X-30Y-30 M05M02 %101 G91G01Z-5F100 G90G42G01X0Y0D01 X140 Y75 X90 Y60 G02X75.591Y51.025R10 G01X39.05Y68.975 G03X25.981Y65R10 G01X0Y20 Y0 G40G01X-30Y-30 M99