您现在的位置: |
数控车床子程序编程方法举例(FANUC-6T) |
|
如图所示为车削不等距槽的示例。对等距槽采用循环比较简单,而不等距槽则调用子程序较为简单。 已知:毛坯直径φ32mm,长度为77mm,一号刀为外圆车刀,三号刀为切断刀,其宽度为2mm。加工程序如下: 010 015 N001 G50 X150.Z100.; N101 GOO W-12.; N002 M03 S800 M08; N102 G01 U-12. F0.15; N003 GOO X35. Z0; N103 G04 X1.; N004 G01 X0 FO.3; N104 GOO U12; N005 GOO X30. Z2.; N105 W-8; N006 G01 Z-55. F0.3; N106 G01 U-12 F0.15; N007 GOOXl50. Z100.; N107 G04 X1.; N008 X32. Z0 T03; N108 GOO U12; N009 M98 P15 L2; N 109 M99; N010 GOO W-12.; N011 G01 X0 F0.12; N012 G04 X2.; N013 GOO X150. Z100. M09; N014 M30; |