冲模零件如图所示,其外形已加工,余量均为0.50mm,粗线为需要加工部位,要求编制其加工程序,工件的编程原点设在Ø30 mm孔的中心上方。
参考程序:
T84; | 打开液泵 |
G90; | 绝对坐标指令 |
G54; | 工件坐标系G54 |
冲模零件示意图
图5-2 电极加工路线示意图
G00 X0.0 Y55.0; | 快速定位 X0.0 Y55.0 |
H097=5000; | 电极补偿半径值 |
G00 Z-12.0; | 快速定位Z-12.0 |
M98 P0107; | 调用子程序107 |
M98 P0106; | 调用子程序106 |
M98 P0105; | 调用子程序105 |
M98 P0104; | 调用子程序104 |
G00 Z5.0; | 快速定位Z5.0 |
G00 X0.0 Y0.0; | 返回工件零点 |
T85 M02; | 关闭液泵及程序结束 |
; | |
N0107; | 子程序107 |
C107 OBT000; | 执行条件号107 |
G32; | 指定抬刀方式为按加工路径的反向进行 |
G00 X0.0 Y55.0; | 快速定位X0.0 Y55.0 |
G41 H000=0.40+ H097; | 电极左补偿 5.4 |
G01 X25.0 Y50.0; | 加工 |
G01 X50.0 Y50.0; | |
G03 X90.0 Y50.0 I20.0 J0.0; | |
G01 X100.0 Y50.0 R5.0; | |
G01 X100.0 Y-25.0 R5.0; | |
G01 X0.0 Y-25.0; | |
G02 X-15.0 Y20.0 I0.0 J25.0; | |
G01 X25.0 Y50.0; | |
G40 G00 X0.0 Y55.0; | 取消电极补偿及快速定位X0.0 Y55.0 |
M99; | 子程序结束 |
; | |
N0106; | 子程序106 |
C106 OBT000; | 执行条件号106 |
G32; | 指定抬刀方式为按加工路径的反向进行 |
G00 X0.0 Y55.0; | 快速定位X0.0 Y55.0 |
G41 H000=0.20+ H097; | 电极左补偿 5.2 |
G01 X25.0 Y50.0; | 加工 |
G01 X50.0 Y50.0; | |
G03 X90.0 Y50.0 I20.0 J0.0; | |
G01 X100.0 Y50.0 R5.0; | |
G01 X100.0 Y-25.0 R5.0; | |
G01 X0.0 Y-25.0; | |
G02 X-15.0 Y20.0 I0.0 J25.0; | |
G01 X25.0 Y50.0; | |
G40 G00 X0.0 Y55.0; | 取消电极补偿及快速定位X0.0 Y55.0 |
M99; | 子程序结束 |
; | |
N0105; | 子程序105 |
C105 OBT000; | 执行条件号105 |
G32; | 指定抬刀方式为按加工路径的反向进行 |
G00 X0.0 Y55.0; | 快速定位X0.0 Y55.0 |
G41 H000=0.10+ H097; | 电极左补偿 5.1 |
G01 X25.0 Y50.0; | 加工 |
G01 X50.0 Y50.0; | |
G03 X90.0 Y50.0 I20.0 J0.0; | |
G01 X100.0 Y50.0 R5.0; | |
G01 X100.0 Y-25.0 R5.0; | |
G01 X0.0 Y-25.0; | |
G02 X-15.0 Y20.0 I0.0 J25.0; | |
G01 X25.0 Y50.0; | |
G40 G00 X0.0 Y55.0; | 取消电极补偿及快速定位X0.0 Y55.0 |
M99; | 子程序结束 |
; | |
N0104; | 子程序104 |
C104 OBT000; | 执行条件号104 |
G32; | 指定抬刀方式为按加工路径的反向进行 |
G00 X0.0 Y55.0; | 快速定位X0.0 Y55.0 |
G41 H000=0.05+ H097; | 电极左补偿 5.1 |
G01 X25.0 Y50.0; | 加工 |
G01 X50.0 Y50.0; | |
G03 X90.0 Y50.0 I20.0 J0.0; | |
G01 X100.0 Y50.0 R5.0; | |
G01 X100.0 Y-25.0 R5.0; | |
G01 X0.0 Y-25.0; | |
G02 X-15.0 Y20.0 I0.0 J25.0; | |
G01 X25.0 Y50.0; | |
G40 G00 X0.0 Y55.0; | 取消电极补偿及快速定位X0.0 Y55.0 |
M99; | 子程序结束 |