Mitsubishi Electronics Q173HCPU/Q172HCPU Work Light User Manual


 
7 - 61
7 AUXILIARY AND APPLIED FUNCTIONS
[Program Example]
Program for simultaneous start of JOG operations are shown as the following
conditions.
(1) System configuration
JOG operation for Axis 1 and Axis 2.
JOG operation command (PX000)
MM MM
Motion CPU control module
Axis
4
Axis
1
Axis
2
Axis
3
AMP AMP AMP AMP
Q61P Q02H
CPU
Q172H
CPU
Q172
LX
QX41
(2) JOG operation conditions
(a) JOG operation conditions are shown below.
Item JOG operation conditions
Axis No. Axis 1 Axis 2
JOG operation speed 150000 150000
(b) JOG operation command ...... During PX000 ON
(3) Motion 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 IF[ON #X000] THEN 1
#D710 = 2;
#D712 = 1;
#D640L = 150000;
#D642L = 150000;
SET #M2048;
ELSE 1;
RST #M2048;
END 1;
GOTO 20;
M02;
%
(Note) : Control program O0100 is started by automatically start, CALL, GOSUB, GOSUBE or
SFCS instruction of the PLC program.