数控机床200例 源程序

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

N100 G0X13Z2;

N110 G71U1R0.5;

N120 G71P130Q190U-0.5F0.2;

N130 G1X26F0.08;

N140 Z0;

N150 X24Z-1;

N160 X17Z-18.5;

N170 Z-24.5;

N180 X15;

N190 Z-27;

N200 S800;

N210 G70P130Q190;

N220 G0X100Z100;

N230 M05M09;

N240 M30;

例62:加工外锥螺纹

O0062;

N10 G50X100Z100;

N20 T0101M03S600M08F0.2;

N30 G00X32Z2;

N40 G71U2R1;

N50 G71P60Q90U0.5F0.2;

N60 G01X20;

N70 Z0;

N80 X25Z-32;

N90 Z-44;

N100 S1000;

N110 G70P60Q90;

N120 G00X100Z100;

N130 T0202S300;

N140 G00X30Z4;

N150 G92X24Z-36I-2.5F2;

N160 X23.4;

N170 X23;

N180 X22.6;

N190 X22.48;

N200 X22.4;

N210 X22.4;

N220 X22.4;

N230 X22.4;

N240 G00X100Z100;

N250 M05M09;

N260 M02;

例63:加工内锥螺纹

O0063;

N10 G50X100Z100;

N20 T0101M03S600M08F0.2;

N30 G00X52Z2;

N40 G71U2R1;

N50 G71P60Q80U0.5F0.2;

N60 G01X50;

N70 Z0;

N80 Z-50;

N90 S1000;

N100 G70P60Q80;

N110 G00X100Z100;

N120 T0202S600;

N130 G00X16Z4;

N140 G71U2R1;

N150 G71P160Q180U-0.5F0.2;

N160 G01X40;

N170 Z0;

N180 X30Z-50;

N190 S1000;

N200 G70P160Q180;

N210 G00Z100;

N220 X100;

N230 T0303S300;

N240 G00X25Z4;

N250 G92X29Z-50I5F2;

N260 X28.4;

N270 X28;

N280 X27.6;

N290 X27.48;

N300 X27.4;

N310 X27.4;

N320 X27.4;

N330 X27.4;

N340 G00Z100;

N350 X100;

N360 M05M09;

N370 M02;

例64:加工非圆曲线四分之一的椭圆

O0064;

N10 G50X100Z100;

N20 T0101M03M08S600F0.2;

N30 G00X36Z2;

N40 G71U2R1;

N50 G71P60Q80U0.1F0.2;

N60 G01X9;

N70 Z0;

N80 X35Z-12.4785;

N90 G00X100Z100;

N100 G00X36Z2;

N110 G71U2R1;

N120 G71P130Q150U0.1F0.2;

N130 G01X27.3172;

N140 Z-8.5624;

N150 X35Z-25;

N160 S1000;

N170 G70P60Q80;

N180 G70P130Q150;

N190 G00X100Z100;

N200 T0202S800;

N210 G00X36Z2;

N220 G01X0F0.2;

N230 Z0;

N240 G03X15.1992Z-3R11.1464;

N250 G03X20.7976Z-6R18.151;

N260 G01X24.588Z-9;

N270 X26.068X-10.5;

N280 X27.333Z-12;

N290 X28.413Z-13.5;

N300 X29.328Z-15;

N310 X30.094Z-16.5;

N320 X30.72Z-18;

N330 X31.216Z-19.5;

N340 X31.588Z-21;

N350 X31.84Z-22.5;

N360 X31.974Z-24;

N370 X32Z-25;

N380 G00X100Z100;

N390 M05M09;

N400 M02;

例65:对整个椭圆进行用户宏程序编程

O0065;

N10 G00X100Z100;

N20 T0101M03M08S600F0.2;

N30 G00X52Z82;

N40 G65P1065L1A50B80C80D0K1;

N50 G00X100;

N60 Z100;

N70 M05M09;

N80 M02;

宏程序

O1065;

N10 #5=#1*SQRT[1-#2#2/#3#3];

N20 G01X#5Z#2F0.2;

N30 #2=#2-#6;

N40 IF[#2GT#7]GOTO10;

N50 M99;

其中A、B、C、D、K分别代表#1、#2、#3、#7、#6

例66:用户宏程序编制抛物线

O0066;

N10 #1=0;

N20 #2=0;

N30 G01 X[#1] Z{-[#2]} F1000;

N40 #1=[#1]+0.008;

N50 #2=[#1]×[#1]/8;

N60 #3=[#1];

N70 IF {[#3] LE [16]} GOTO 30;

N80 G00

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

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