欢迎来到天天文库
浏览记录
ID:59217595
大小:17.00 KB
页数:5页
时间:2020-09-09
《在程序中修改刀具半径补偿值可采用如下方法.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、在程序中修改刀具半径补偿值可采用如下方法 1、在刀补表中设好环切每一刀的刀具半径补偿值,然后在刀补程序中修改刀具补偿号。 示例1.1直接在G41/G42程序段修改刀具补偿号 主程序 %1000 G54G90G0G17G40; Z50M03S1000; X0Y0; Z5M08; G1Z-10F60; G41X30D1F100; M98P0010; G41X30D2F100; M98P0010; G41X30D3F100; M98P0010; G41X30D4F100; M98P
2、0010; M05M09; G0Z50; M30; 子程序 %0010 G90G1Y60; X-30; Y0; G3X30R30; G0G40X0; M99; 补偿号刀具补偿半径 1 25 2 15 3 6.5 4 6 示例1.2用宏变量表示刀具补偿号,利用循环修改刀具补偿号 %100 G54G90G0G17G40; Z50M03S1000; X0Y0; Z5M08;
3、 G1Z-10F60; #1=1;刀补号变量 WHILE#1LE4DO1在程序中修改刀具半径补偿值可采用如下方法 1、在刀补表中设好环切每一刀的刀具半径补偿值,然后在刀补程序中修改刀具补偿号。 示例1.1直接在G41/G42程序段修改刀具补偿号 主程序 %1000 G54G90G0G17G40; Z50M03S1000; X0Y0; Z5M08; G1Z-10F60; G41X30D1F100; M98P0010; G41X30D2F100; M98P0010; G41X30
4、D3F100; M98P0010; G41X30D4F100; M98P0010; M05M09; G0Z50; M30; 子程序 %0010 G90G1Y60; X-30; Y0; G3X30R30; G0G40X0; M99; 补偿号刀具补偿半径 1 25 2 15 3 6.5 4 6 示例1.2用宏变量表示刀具补偿号,利用循环修改刀具补偿号 %100 G54G9
5、0G0G17G40; Z50M03S1000; X0Y0; Z5M08; G1Z-10F60; #1=1;刀补号变量 WHILE#1LE4DO1; G1G41X30D#1F100; Y60; X-30; Y0; G3X30R30; G0G40X0; #1=#1+1; End1; Z50; M30; 2、使用G10修改刀具补偿半径 示例1.3,使用G10和子程序完成环切 主程序 %100 G54G90G0G17G40; Z50M03S1000;
6、 X0Y0; Z5M08; G1Z-10F60; G10L10P1R25; M98P0010; G10L10P1R15; M98P0010; G10L10P1R6.5; M98P0010; G10L10P1R6; M98P0010; M05M09; G0Z50; M30; 子程序 %0010 G90G41X30D1F100; Y60; X-30; Y0; G3X30R30; G0G40X0; M99; 示例1.4使用G10和循环完成环
7、切 %1000 G54G90G0G17G40; Z50M03S1000; X0Y0; Z5M08; G1Z-10F60; #10=25;粗加工起始刀补值 #11=10;步距 #12=6;精加工刀补值 #1=2;粗、精加工控制 WHILE[#1GE1]DO1; WHILE#10GE#12DO2; G10L10P1R#10; G41X30D1F100; Y60; X-30; Y0; G3X30R30;
此文档下载收益归作者所有