加工中心編程實例教學—第一篇
加工中心編程(cheng)一(yi)直是廣大加工中心作業者(zhe)比(bi)較頭疼的(de)部分。相信不少加工中心從(cong)業者(zhe)朋友沒受過正(zheng)規機電大學(xue)的(de)教育(yu)。成海數控小編以FANUC操作系(xi)統為例介紹幾種常見的(de)編程(cheng)實例。
實例一 平面加工
參考程序:
O0001;
G90 G94 G21 G17;
G91 G28 Z0;
G90 G54 M03 S350;
G00 X-52.0 Y-50.0;
Z5.0 M08;
G01 Z-8.0 F50;
Y50.0 F52;
G00 Z5.0;
X-44.0 Y-50.0;
G01 Z-4.0 F50;
Y50.0 F52;
G00 Z5.0;
X10. Y50.0;
G01 Z-6.0 F50;
G02 X10.0 Y-50.0 R50.0 F52;
G00 Z20.0 M09;
G91 G28 Z0;
M30;
實例二 外形輪廓加工
參考程序:
(1)圓(yuan)柱臺加工程序(xu)
O0001;
G90 G94 G40 G17 G21;
G91 G28 Z0;
G90 G54 M3 S350;
G00 X62.0 Y0;
Z5.0;
G01 Z-4.0 F52;
G41 D02 G01 X47.0 Y0 F52;
G02 I-47.0 J0;
G40 G01 X62.0 Y0;
G41 D02 G01 X31.0 YO;
G02 I-31.0 J0;
G40 G01 X62.0 Y0;
G41 D02 G01 X15.0 Y0;
G02 I-15.0 J0;
G40 G01 X62.0 Y0;
G00 Z20.0;
G91 G28 Z0;
M30;
(2)外(wai)輪廓加工(gong)程序
O0002;
G90 G94 G40 G17 G21;
G91 G28 ZO;
G90 G54 M03 S350;
G00 X-62.0 Y52.0 M08;
Z5.0;
G01 Z-9.0 F52;
G41 D02 G01 X-40.0 Y30.0 F52;
G01 X-20.0 Y30.0;
X30.0;
G02 X40.0 Y20.0 R10.0;
G01 Y-20.0;
G02 X30.0 Y-30.0 R10.0;
G01 X-30.0;
G02 X-40.0 Y-20.0 R10.0;
G01 Y10.0;
G03 X-20.0 Y30.0 R20.0;
G40 G01 X-62.0 Y52.0;
G00 Z20.0 M09;
G91 G28 Z0;
M30;
粗加(jia)工(gong)時,選用Φ20的立銑(xian)刀,刀具號為T02,刀具半徑(jing)補償號為D02,補償值為10.2mm(0.2mm是精(jing)加(jia)工(gong)余量)。
精加工時,選用(yong)Φ12的立銑(xian)刀,刀具(ju)號為T03,刀具(ju)半徑補(bu)償號為D03,補(bu)償值(zhi)為6mm。
實例三 槽加工
參考程序:
(1)十字槽粗加工程序(xu)
O0001;
G90 G40 G21 G17 G94;
G91 G28 Z0;
G90 G54 M3 S480;
G00 X30.0 Y0;
Z5.0 M08;
G01 Z-4.0 F40;
X-30.0 F60;
Z-8.0 F40;
X30.0 F60;
G00 Z5.0;
X0 Y25.0;
G01 Z-4.0 F40;
Y-25.0;
Z-8.0 F40;
Y25.0 F60;
G00 Z5.0 M09;
G91 G28 Z0;
M30;
(2)十字槽精加工程序
O0002;(主程序)
G90 G40 G21 G94 G17;
G91 G28 Z0;
G90 G54 M3 S800;
G00 X0 Y0;
Z5.0 M08;
G01 Z0 F40;
M98 P0003 L02;
G90 G00 Z5.0 M09;
G91 G28 Z0;
M30;
O0003;(子(zi)程序)
G91 G01 Z-4.0 F40;
G90 G41 D03 G01 X12.5 Y7.5 F50;
G02 X7.5 Y12.5 R5.0;
G01 Y25.0;
G03 X-7.5 R7.5;
G01 Y12.5;
G02 X-12.5 Y7.5 R5.0;
G01 X-30.0;
G03 Y-7.5 R7.5;
G01 X-12.5;
G02 X-7.5 Y-12.5 R5.0;
G01 Y-25.0 ;
G03 X7.5 R7.5;
G01 Y-12.5;
G02 X12.5 Y-7.5 R5.0;
G01 X30.0;
G03 Y7.5 R7.5;
G01 X12.5;
G02 X7.5 Y12.5 R5.0;
G40 G01 X0 Y0;
M99;