数控机床200例 源程序

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

N80 G01Y140.0

N90 G03X-30.0R30.0

N100 G01Y120.0

N110 G02X-80.0R25.0

N120 G01X-150.0

N130 Y0

N140 X80.0

N150 X150.0Y40.0

N160 Y125.0

N170 G00G40X175.0Y120.0

N180 M05M09

N190 G91G28Z0

N200 G28X0Y0

N210 M02

例103:使用刀具长度补偿功能和固定循环功能加工零件上的12个孔

%0103

N10 G92X0Y0Z35.0

N15 G90

N20 G43H01G00X5.0

N30 S600M03

N40 G99G81X40.0Y-35.0Z-63.0R-27.0F100

N50 Y-75.0

N60 G98Y-115.0

N70 G99X300.0

N80 Y-75.0

N90 G98X-35.0

N100 G80G00X500.0Y.0M05

N110 G49Z20.0M00

N120 G43H02Z5.0

N130 S600M03

N140 G99G81X70.0Y-55.0Z-50.0R-27.0F100

N150 G98Y-95.0

N160 G99X270.0

N170 G98Y-55.0

N180 G80G00X500.0Y0M05

N190 G49Z20.0M00

N200 G43H03Z5.0

N210 S300M03

N220 G99G85X170.0Y-35.0Z-65.0R3.0F80

N230 G98Y-115.0

N240 G80G00X0Y0M05M09

N250 G49G91G28Z0

N260 M02

例104:加工如图5-15所示槽形零件

%0104

N10 G92X0 Y0 Z200

N20 G21G40 G49 G80

N30 G00Z0

N40 M00

N50 M03S2200

N60 G90G43H01G00 X0 Y20.0Z10.0

N70 G81G99X0 Y20.0 Z-7.0 R2.0 F80

N80 G99X17.32 Y10.0

N90 G99Y-10.0

N100 G99 X0 Y-20.0

N110 G99 X-17.312 Y-10.0

N120 G98 Y10.0

N130 G80 M05

N140 G28 X0 Y0 Z0

N150 G49 M100 钻Φ5mm孔

N160 M03 S3000

N170 G90 G43 H02 G00 X0 Y20.0 Z10.0

N180 G83 G99 X0 Y20.0 Z-12.0 R2.0 Q7.0 F120

N190 G99 X17.32 Y10.0

N200 G99 Y-10.0

N210 G99 X0 Y-20.0

N220 G99 X-17.32 Y-10.0

N230 G98 Y10.0

N240 G80 M05

N250 G28 X0 Y0 Z0

N260 G49 M00 攻螺纹

N270 M03 S300

N280 G90 G43 H03 G00 X0Y20.0 Z10.0

N290 G84 G99 X0 Y20.0 Z-8.0 R5.0 F180

N300 G99 X17.32 Y-10.0

N310 G99 X0 Y-20.0

N320 G99 X-17.32 Y-10.0

N330 G98 Y10.0

N340 G80 M05

N350 G28 X0 Y0 Z0

N360 G49 M00 铣槽

N370 M03 S2800

N380 G90G43 H04G00 X-30.0 Y10.0 Z10.0

N390 Z2.0

N400 G01 Z0 F150

N410 X0 Y40.0 Z-2.0

N420 X30.0 Y10.0 Z0

N430 G00 Z2.0

N440 X-30.0 Y-30.0

N450 G01 Z-2.0 F80

N460 X30.0

N470 G00 Z10.0 M05M09

N480 G28 X0 Y0 Z0

N490 M02

例105:用子程序调用指令M98编程实例

主程序:

%0105

N10 G91G71G00S400M03M07

N20 G98P1105 L3

N30 X-150.0 Y60.0

N40 M98P1105 L3

N50 M05M09

N60 M02

子程序:

%1105

N5 G41 G00 X20.0 Y9.0D01

N10 Y1.0

N20 Z-98.0

N30 G01 Z-12.0 F100

N40 Y40.0

N50 X30.0

N60 Y-30.0

N70 X-40.0

N80 G00 Z110.0

N90 G40 X-10.0 Y-20.0

N100 X50.0

N110 M99

例106:使用镜像功能编程的实例

主程序:

%0106

N10 G91G17 G00 M03M07

N20 M98P1106L1

N30 G24Y0

N40 M98P1106L1

N50 G24X0

N60 M98P1106L1

N70 G25X0

N80 G24X0

N90 M98P1106L1

N100 G25X0

N110M05M09

N120 M02

子程序:

%1106

N10 G41X10.0 Y4.0 D01

N20 Y1.0

N30 Z-98.0

N40 G01Z-7.0F120

N50 Y25.0

N60 X10.0

N70 G03X10.0Y-10.0110.0

N80 G01Y-10.0

N90 X-25.0

N100 G40 X-5.0 Y-10.0

N110 M99

例107:G98指令加工实例

%0107

N10 G92X5Y5Z5 设置对刀点

N15 G17M07M03S1000

N2

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

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