子程序编程方法-数控车床编程实例36新闻摘要:子程序编程方法举例。对等距槽采用循环比较简单,而不等距槽则调用子程序较为简单。子程序编程方法举例.示为车削不等距槽的示例。对等距槽采用循环比较简单,而不等距槽则调用子程序较为简单。已知毛坯直径Φ32mm,度为77mm,一号刀为外圆车刀,三号刀为切断刀,其宽度为2mm。加工程序如下O0010;N10G54G00X150.0Z100.0;N20M03S800M08G98;N30G00X35.0Z0;N40G01X0F100;N50G00X30.0Z2.0;N60G01Z-55.0F100;N70G00X150.0Z100.0;N80X32.0Z0;N90T0303;N100M98P15L2;N110G00W-12.0;N120G01X0F30;N130G04P2.0;N140G00X150.0Z100.0M09;N150M30;%O0015;N10G00W-12.0;N20G01U-12.0F30;N30G04P1.0;N40G00U12;N50W-8;N60G01U-12F30;N70G04P1.0;N80G00U12;N90M99;%