数控机床200例 源程序

发布日期:[08-12-12 09:25:19] 浏览人次:[]

Z0;

N90 M02;

例67:用宏程序编制钻孔复合循环程序

O0067;

#1=-33;(钻孔起点距终点的距离)

#2=8; (第一刀钻孔深度)

#3=2; (钻孔深度递减量)

#4=4; (停顿时间)

#5=2; (最小钻孔深度)

#6=0;

N10 G00Z[-[#6-1]];

N20 G01Z[-[#2+1]]F100;

N30 G04X[#4];

N40 #6=#2+#6;

N50 G00Z[#6];

N60 G04X[#4];

N70 #2=#2-#3;

N80 #7=ABS[#1]-#6;

N90 IF#2GT#5GOTO11;

N100 #2=#5;

N110 IF#7GT#5GOTO1;

N120 G01Z[-[#7+1]]F100;

N130 G00Z[#6+#7];

N140 M02;

例68:盘类零件1的数控车床加工

SK68.MPF

N10 G054G90M42M03S500T01F0.3

N20 G158Z

N30 G00X45Z0

N40 G01X0

N50 G00X40.75Z2

N60 G01Z0

N70 L68P9

N80 M03S1000

N90 G01X32.55

N100 L68P1

N110 X50Z100

N120 T02M42M03S500

N130 G00X17.8Z2

N140 G01Z-43

N150 G00X16

N160 Z2

N170 X20

N180 G01Z-2.8

N190 G03X17.8-3.5CR=7

N200 G00X16

N210 Z2

N220 X21.8

N230 G01Z-28

N240 G03X17.8Z-35CR=7

N250 G00X16

N260 Z2

N270 G00X24

N280 G01Z-10.5

N290 X21.8Z-17.5

N300 G00X20

N310 Z2

N320 X26

N330 G01Z-10.5

N340 X21.8Z-17.5

N350 G00X22

N360 Z2

N370 G01X27.8

N380 Z-10.5

N390 X21.8Z-17.5

N400 G00X20

N410 Z2

N420 M42M03S1000

N430 G01X28

N440 Z-10.5

N450 X22Z-17.5

N460 Z-28

N470 G03X18Z-35CR=7

N480 G01Z-43

N490 G00X16

N500 Z100

N505 X100

N510 T03M42M03S500

N515 G00X42Z-(41.975+切刀宽)

N520 G01X15

N525 G00X100Z100

N530 M05

N530 M02

L68.SPF

N10 G91

N20 G01X-1

N30 G03X0Z-42CR=70

N40 G01X9

N50 G00Z42

N60 X-9

N70 G90

M17

例69:盘类零件2的数控车床加工

SK69.MPF

N10 G54G90M3S500T01M42

N20 G158Z

N30 G00X42Z0

N40 G01X0

N50 G00X40.55Z2

N60 G01Z0

N70 L69AP9

N80 M03S1000

N90 G01X32.55

N100 L69AP1

N110 G00X50Z100

N120 T03M03S500

N130 G00X17.8Z2

N140 G01Z-43

N150 X16

N160 G00Z2

N170 X20

N180 G01Z-16

N190 X17.8Z-36

N200 G00Z2

N210 X21.3

N220 G01Z-16

N230 X17.8Z-36

N240 G00Z2

N250 X25.5

N260 M03S800

N270 G01Z0

N280 X21.5Z-2

N290 Z-16

N300 X18.014Z-36

N310 Z-43

N320 X16

N330 G00Z100

N340 T05M03S400;(假定内割刀T05的宽度为3mm)

N350 G00X20

N360 Z-16

N370 G01X26

N380 X20

N390 Z-13

N400 X26

N410 Z-16

N420 X20

N430 G00Z100

N440 T02

N450 G00X24Z2

R100=24 R101=0 R102=24

R103=-10 R104=1.5

R105=2 R106=0.02

R109=2 R110=2 R111=0.75

R112=0 R113=8 R114=1

N460 LCYC97

N470 G00X50Z100

N475 T04M03S300

N480 G00X42Z-(41.975+切刀宽)

N490 G01X-1

N500 G00X100Z100

N510 M05

N520 M02

L69A.SPF

N10 G91

N20 G01X-1

N30 G03X0Z-42CR=70

N40 G01X9

N50 G00Z42

N60 X-9

N70 G90

M17

例70:小手柄零件的数控车床加工

SK70.MPF

N10 G54G90M42M03M08S500T01F0.3

N20 G158Z

N30 G00X32Z0

N40 G01X0

N50 G00X26.2Z2

N60 G01Z0

N70 L70P26

N80 M03S1000

N90 G01X1

N100 L70P1

N110 G00X50Z100

N120 T02M03S300

www.mapeng.net 马棚网
www.mapeng.net
文章作者:未知 | 文章来源:网络 | 责任编辑:admin | 发送至邮箱: | 加入收藏:
本文关键字:数控机床    源程序
本文所属专题:数控技术 
相关资讯
热点资讯
推荐资讯

关于我们 | 站点导航 | 使用帮助 | 友情链接 | 广告服务 | 免责声明 | 新手上路
设为首页 | 加入收藏 | 在线留言 | 马棚网QQ群:{92562572}{102901272}{333259257} | 交流QQ: 客户服务 客户服务 客户服务