Mitsubishi Electronics Q173HCPU/Q172HCPU Work Light User Manual


 
7 - 58
7 AUXILIARY AND APPLIED FUNCTIONS
(3) Motion program (Control program)
O0100
SET #M2042; All axes servo ON command turns on.
N10 IF[[ON #M2415] AND [ON #M2435]] GOTO 20; Wait until axis 1 and axis 2 servo ON.
GOTO 10;
N20 #D640L = 100000; Transfer the JOG operation speed to D640L and D642L.
#D642L = 100000;
IF [[ON #X003] AND [OFF #M3203]] THEN 1;
SET #M3202;
ELSE 1;
RST #M3202;
END 1;
IF [[ON #X004] AND [OFF #M3202]] THEN 2;
SET #M3203;
ELSE 2;
RST #M3203;
END 2;
IF [[ON #X005] AND [OFF #M3223]] THEN 3;
SET #M3222;
ELSE 3;
RST #M3222;
END 3;
IF [[ON #X006] AND [OFF #M3222]] THEN 4;
SET #M3223;
ELSE 4;
RST #M3223;
END 4;
GOTO 20;
M02;
%
(Note) : Control program O0100 is started by automatically start, CALL, GOSUB, GOSUBE or
SFCS instruction of the PLC program.
Two axes reverse rotation command
SET/RST
One axis reverse rotation command
SET/RST
Two axes forward rotation command
SET/RST
One axis forward rotation command
SET/RST