如图1所示为车削不等距槽的示例.对等距槽采用循环比较简单,而不等距槽则调用子程序较为简单。
已知:毛坯直径φ32mm,长度为77mm,—号刀为外圆车刀,三号刀为切断刀,其宽度为2mm。加工程序如下:
O10 O15
N001 G50 X150.O Z100.0; N101 GOO W-12.0;
N002 M03 S800 M08; N102 G01 U-12.0 F0.15;
N003 GOO X35.0 Z0; N103 G04 X1.O;
N004 G01 X0 FO.3; N104 GOO U12;
N005 G00 X30.0 Z2.0; N105 W-8;
N006 G01 Z—55.0 F0.3; N106 G01 U-12 F0.15;
N007 GOO X150.0 2100.0; N107 G04 X1.O;
N008 X32.0 Z0 T03; N108 G00 U12;
N009 M98 P15 L2; N109 M99;
N010 GOO W—12.0;
N011 G01 X0 F0.12;
N012 G04 X2.0
N013 G00 X150.0 Z100.0 M09;
N014 M30;