数控机床200例 源程序

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

N230 G56X20Y20;

N240 Z5;

N250 G01Z-5F80;

N260 G42X11.547;

N270 X23.094Y0F100;

N280 X11.547Y-20;

N290 X-11.547;

N300 X-23.094Y0;

N310 X-11.547Y20;

N320 X11.547;

N330 Z5;

N340 G00Z200;

N350 G40;

N360 G57X-10Y-10;

N370 Z5;

N380 G01Z-5F50;

N390 G42X0Y0;

N400 X40F100;

N410 Y20;

N420 X30;

N430 G02X20Y30I10J0;

N440 G01Y40;

N450 X0;

N460 Y0;

N470 Z6;

N480 G00Z200;

N490 M05M09;

N500 M30;

例124:用G81加工四个孔

O0124;

N10 G92X0Y0Z300;

N20 G90G99S1200M03;

N30 T01M06;

N40 G00Z30M08;

N50 G81X10Y10Z-15R6F25;

N60 X50;

N70 Y30;

N80 X10;

N90 G80;

N100 G00Z40;

N110 M05M09;

N120 M02;

例125:对4个孔进行攻螺纹

O0125;

N10 G92X0Y0Z300;

N20 T02M06;

N30 G90G99S200M03;

N40 G00Z40M08;

N50 G84X10Y10Z-12R6F400;

N60 X50;

N70 Y30;

N80 X10;

N90 G80;

N100 G00Z40;

N110 M05M09;

N120 M02;

例126:用FANUC系统编制螺纹孔加工程序

主程序:

O0126;

N5 G92X0Y0Z300;

N10 G90G00Z40;

N20 T01M06;

N30 S2200M03M08;

N40 M98P1126L1;

N50 T02M06;

N60 S2200M03M08;

N70 M98P2126L1;

N80 T04M06;

N90 S2200M03M08;

N100 M98P3126L1;

N110 T03M06;

N120 S2200M03M08;

N130 M98P4126L1;

N140 G28;

N150 M05M09;

N160 M30;

子程序:

O1126;

N10 G81X-40Y0R1Z-1.5F15;

N20 M98P5126L1;

N30 M99;

O2126;

N10 G83X-40Y0R1Z-20Q5F15;

N20 M98P5126L1;

N30 M99;

O3126;

N10 G81X-40Y0R1Z-1F15;

N20 M98P5126L1;

N30 M99;

O4126;

N10G84X-40Y0R1Z-15F15;

N20 M98P5126L1;

N30 M99;

O5126;

N10 X0Y40;

N20 X40Y0;

N30 X0Y-40;

N40 M99;

例127:用宏指令G65传送变量

O0127;

N10 G92X0Y0Z200;

N20 G90G00X2Y2Z12;

N30 T01M06M08;

N40 G65P1127X50Y0Z10F8A10;

N50 G28;

N60 M05M09;

N70 M02;

O1127;

N10 A#20;

N20 G81Z-#26R5F#9;

N30 G91;

N40 WHILE[#20>0]DO1;

N50 #20=#20-1;

N60 IF[#20EQ0]GOTO5;

N70 G00X#24Y#25;

N80 N5END1;

N90 M99;

例128:加工16个M6的螺纹孔

O0128;

N10 G92X0Y0Z300;

N20 G90G00Z100;

N30 T01M06S800M03M08; 1#中心钻

N40 M98P1128L1;

N50 M21M98P1128L1;

N60 M22M98P1128L1

N70 M23;

N80 M22M98P1128L1;

N90 M23;

N100 T02M06S1200; 2#钻头

N110 M98P2128L1;

N120 M21M98P2128L1;

N130 M22M98P2128L1

N140 M23;

N150 M22M98P2128L1;

N160 M23;

N170 T03M06S390 换3#丝维

N180 M98P3128L1;

N190 M21M98P3128L1;

N200 M22M98P3128L1

N210 M23;

N220 M22M98P3128L1;

N230 M23;

N240 G00Z300;

N250 X0Y0;

N260 M05M09;

N270 M02;

钻中心孔子程序:

O1128;

N10 G81X20Y10R2Z-3F10

N20 M98P4128L1;

N30 M99;

钻孔子程序:

O2128;

N10 G81X20Y10R2Z-20F18;

N20 M98P4128L1;

N30 M99;

攻螺纹子程序:

O3128;

N10 G84X20Y10R2Z

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

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