零件图及程序如下:
参考程序:图1 孔类零件加工任务图
○0001;
G91 G28 Z0;
M06 T1;
G90 G17 G49 G21 G94;
G54 M3 S1200;
G00 X20.0 Y100.0 M08;
G43 H01 G00 Z50.0;
G99 G81 X-15.0 Y65.0 Z-4.0 R5.0 F80;
G98 X-30.0;
G00 X-120.0;
Y15.0;
G99 G81 X-85.0 Y15.0 Z-4.0 R5.0 F80;
G98 X-70.0;
G91 G28 Z0 M09;
M06 T02;
G90 G49 G54 M3 S550;
G00 X20.0 Y100.0 M08;
G43 H02 G00 Z50. ;
G99 G73 X-15.0 Y65.0 Z-20.0 R5.0 Q2.0 F60;
G98 X-30.0;
G00 X-120.0;
Y15.0;
G99 G73 X-85.0 Y15.0 Z-20.0 R5.0 Q2.0 F60;
G98 X-70.0;
G91 G28 Z0 M09;
M06 T03;
G90 G49 G54 M3 S500;
G00 X20.0 Y100.0 M08;
G43 H03 G00 Z50. ;
G98 G83 X-30.0 Y65.0 Z-21.0 R5.0 Q2.0 F60;
G00 X-120.0;
Y15.0;
G98 G83 X-70.0 Y15.0 Z-21.0 R5.0 Q2.0 F60;
G91 G28 Z0 M09;
M06 T04;
G90 G49 G54 M3 S450;
G00 X20.0 Y100.0 M08;
G43 H04 G00 Z50. ;
G98 G81 X-15.0 Y65.0 Z-21.0 R5.0 F50;
G00 X-120.0;
Y15.0;
G98 G81 X-85.0 Y15.0 Z-21.0 R5.0 F50;
G91 G28 Z0 M09;
M06 T05;
G90 G49 G54 M3 S350;
G00 X20.0 Y100.0 M08;
G43 H05 G00 Z50.0;
G99 G82 X-15.0 Y65.0 Z-6.0 R5.0 P2000 F60;
G98 X-30.0;
G00 X-120.0;
Y15.0;
G99 G82 X-85.0 Y15.0 Z-6.0 R5.0 P2000 F60;
G98 X-70.0;
G91 G28 Z0 M09;
M06 T06;
G90 G49 G54 M3 S50;
G00 X20.0 Y100.0 M08;
G43 H06 G00 Z50.0;
G98 G85 X-30.0 Y65.0 Z-18.0 R5.0 F40;
G00 X-120.0;
Y15.0;
G98 G85 X-70.0 Y15.0 Z-18.0 R5.0 F40;
G91 G28 Z0 M09;
M06 T07;
G90 G49 G54 M3 S100;
G00 X20.0 Y100.0 M08;
G43 H07 G00 Z50.0;
G98 G84 X-15.0 Y65.0 Z-19.0 R5.0 F175;
G00 X-120.0;
Y15.0;
G98 G84 X-85.0 Y15.0 Z-19.0 R5.0 F175;
G91 G28 Z0 M09;
M30;