Mitsubishi Electronics Q173HCPU/Q172HCPU Work Light User Manual


 
3 - 18
3 MOTION DEDICATED PLC INSTRUCTION
[Program example]
(1) Program which requests to start the Motion program (Axis designation program) No.10
toward axis No.1 and No.2 of the Motion CPU No.4. from the PLC CPU No.1.
SP.SVST
K10 M0 D0
H3E3
RST M100
M100
To self CPU
high speed
interrupt accept
flag from CPU
U3E3
\G48.0
"J1J2"
M0
Normal complete program
M1
Abnormal complete program
M1
Start accept flag
of the axis No.1
(CPU No.4)
U3E3
\G516.0
Start accept flag
of the axis No.2
(CPU No.4)
U3E3
\G516.1
S
P
.SVST
K12000
M0 D0H3E3
RST M100
M100
"J1J2"
M0
Normal complete program
M1
Abnormal complete program
M1
To self CPU
high speed
interrupt accept
flag from CPU
U3E3
\G48.0
Start accept flag
of the axis No.1
(CPU No.4)
U3E3
\G516.0
Start accept flag
of the axis No.2
(CPU No.4)
U3E3
\G516.1
Set the data in the data register of "No. specified with SVST instruction - 10000".
Motion program (Motion CPU side)
O0015;
D2000 = 20; Motion program No.
D2001 = 100; Sequence No.
D2002 = 30; Parameter block No.
Sequence program (PLC CPU side)
(2) Program which requests to start the Motion program (Axis designation program) No.20,
sequence No. 100 and parameter block No.30 toward axis No.1 and No.2 of the Motion
CPU No.4 by indirect setting from the PLC CPU No.1.