Mitsubishi MELSEC-Q/L Programming Manual page 696

Table of Contents

Advertisement

(a) Program example when one D(P).DDWR instruction is executed.
The following shows a program example that writes ZR0 to ZR999 (1000 points) in CPU No.1 to ZR0 to ZR999 in
CPU No.2 with the D.DDWR instruction.
In the following program example, the next D.DDWR instruction is executed after the completion device of the
D.DDWR instruction (M2) turns on so that only one D.DDWR instruction may be executed.
Program example when one D(P).DDWR instruction is executed
The maximum number of used blocks for multiple CPU high-speed
transmission dedicated instruction setting is set to CPU No.2
SM402
0
Turn-on for one
scan after RUN
Data writing is started at the rise of the write command (X0)
X0
M0
37
Write
During
command
writing
M0
68
During
writing
M4
Execution request of the next
DDWR instruction
The DDWR instruction is executed
M1
SM797
71
During execution
Number of used
of the DDWR
blocks information
instruction
(CPU No.2)
When the DDWR instruction is completed abnormally, the annunciator is turned on and data writing is stopped
M2
98
Completion
Error
device
completion
device
Next data writing is requested at normal completion of the DDWR instruction
M2
134
Completion
Error
device
completion
device
173
694
M3
M3
<
Z2
K1000
=
Z2
K1000
D.DDWR H3E1
D0
Completion
status
MOV
K7
SD797
Maximum number of
used blocks
(CPU No.2)
MOV
K100
D1
Number of
write points
RST
Z2
SET
M0
During writing
SET
M1
During execution of
the DDWR instruction
ZR0Z2
ZR0Z2
M2
Write
source/write
Completion
destination
device
RST
M1
During execution of the
DDWR instruction
SET
F0
RST
M0
During
writing
+
K100
Z2
PLS
M4
Execution request of the
next DDWR instruction
RST
M0
During writing
END

Advertisement

Table of Contents
loading

Table of Contents