使用G50编程前,对刀也要用G50对,
假定你的对刀0点在工件右端面;
假定基准刀是T0303;
(工件长度不详,切断刀厚度不详,程序供参考)
主程序:
T0303;
G00 X100.Z0.2;
M98P0920;(第一件)
G00 X100.Z0.2;
G50 Z13.2;
M98P0920;(第二件)
G00 X100.Z0.2;
G50Z26.4;
M98P0920;(第三件)
G00 X100.Z0.2;
G50Z39.6;
M98P0920;(第四件)
G00 X100.Z0.2;
M05;M09;
T0303(外圆)
G0X8.Z0.2;
M30;
子程序:
T0303M03 S600;
M42 ;
G99;
G0X12.Z0.;
G01X-0.5F0.2;
......
(然后切断,退刀)T0303;
G0X12.Z0.2
M99;