三菱加工中心CNC换刀子程序

换刀子程序

9001
(...M06...);
#3003=1;
#151=25.4;
#152=95;
#1114=0;
#148=#4003;
#153=#151-#5023;
#3003=0;
#3003=1;
IF[#1000 EQ1]GOTO99;
M21;
IF[#1001 EQ0]GOTO10;
G0 G91 G28 Z0 M19;
N10 M19;
G91 G30 P3 Z0;
#1114=1;
G91 G30 Z0;
G4 X0.1;
M90;
#150=#152-#5023;
G91 G0 Z-78.5;
G28 Z0;
#1114=0;
G#148;
N99;
M22;
#3003=0;
M99;
N1000;
#3000=1(T.CODE.IS.ERROR);
%

 

发表评论