APP - 9
A
PPENDICES
APPENDIX 2 Sample Program
APPENDIX 2.1 Program example to execute the Multiple CPU dedicated instruction
continuously
This is the program example which publishes the instruction continuously toward the
same Motion CPU in the Multiple dedicated instruction toward the Motion CPU. When
an instruction cannot be accepted even if it is executed, it becomes "No operation".
The following is program example which repeats reading data for 10 points from D0 of
the Motion CPU installing the CPU No.2 to since D100 of the PLC CPU, and the data
for 10 points from D200 of the Motion CPU to since D300 of the PLC CPU by turns
continuously during X0 is ON. Make a circuit to execute the next S(P).DDRD
instruction after the device which it is made to turn on by the instruction completion of
the S(P).DDRD instruction execute 1-scan turns it on.
<Example>
Read the data from D0 to D100,
and normality complete processing.
PLS
M1
M10
D51
M0
D50
SP.DDRD
D0 D100 M10H3E1
SM400
K10MOV
M11
M11
M50SET
M10
M50 M10
M0
RST
D251K10
MOV
M20
M21
M21
SET
M50RST
M2 X0
M0SET
M1
M2
X0
M51
M1
D250SP.DDRD D200 D300 M20H3E1
M51SET
M20
M51
M20
M1RST
RST
Read the data from D0 to D100,
and abnormality complete processing.
Read the data from D200 to D300,
and normality complete processing.
Read the data from D200 to D300,
and abnormality complete processing