沖模零件如圖所示,其外形已加工,余量均為0.50mm,粗線為需要加工部位,要求編制其加工程序,工件的編程原點(diǎn)設(shè)在Ø30 mm孔的中心上方。
參考程序:
T84; |
打開液泵 |
G90; |
絕對(duì)坐標(biāo)指令 |
G54; |
工件坐標(biāo)系G54 |
沖模零件示意圖
圖5-2 電極加工路線示意圖
G00 X0.0 Y55.0; |
快速定位 X0.0 Y55.0 |
H097=5000; |
電極補(bǔ)償半徑值 |
G00 Z-12.0; |
快速定位Z-12.0 |
M98 P0107; |
調(diào)用子程序107 |
M98 P0106; |
調(diào)用子程序106 |
M98 P0105; |
調(diào)用子程序105 |
M98 P0104; |
調(diào)用子程序104 |
G00 Z5.0; |
快速定位Z5.0 |
G00 X0.0 Y0.0; |
返回工件零點(diǎn) |
T85 M02; |
關(guān)閉液泵及程序結(jié)束 |
; |
|
N0107; |
子程序107 |
C107 OBT000; |
執(zhí)行條件號(hào)107 |
G32; |
指定抬刀方式為按加工路徑的反向進(jìn)行 |
G00 X0.0 Y55.0; |
快速定位X0.0 Y55.0 |
G41 H000=0.40+ H097; |
電極左補(bǔ)償 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; |
取消電極補(bǔ)償及快速定位X0.0 Y55.0 |
M99; |
子程序結(jié)束 |
; |
|
N0106; |
子程序106 |
C106 OBT000; |
執(zhí)行條件號(hào)106 |
G32; |
指定抬刀方式為按加工路徑的反向進(jìn)行 |
G00 X0.0 Y55.0; |
快速定位X0.0 Y55.0 |
G41 H000=0.20+ H097; |
電極左補(bǔ)償 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; |
取消電極補(bǔ)償及快速定位X0.0 Y55.0 |
M99; |
子程序結(jié)束 |
; |
|
N0105; |
子程序105 |
C105 OBT000; |
執(zhí)行條件號(hào)105 |
G32; |
指定抬刀方式為按加工路徑的反向進(jìn)行 |
G00 X0.0 Y55.0; |
快速定位X0.0 Y55.0 |
G41 H000=0.10+ H097; |
電極左補(bǔ)償 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; |
取消電極補(bǔ)償及快速定位X0.0 Y55.0 |
M99; |
子程序結(jié)束 |
; |
|
N0104; |
子程序104 |
C104 OBT000; |
執(zhí)行條件號(hào)104 |
G32; |
指定抬刀方式為按加工路徑的反向進(jìn)行 |
G00 X0.0 Y55.0; |
快速定位X0.0 Y55.0 |
G41 H000=0.05+ H097; |
電極左補(bǔ)償 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; |
取消電極補(bǔ)償及快速定位X0.0 Y55.0 |
M99; |
子程序結(jié)束 |