Mitsubishi MELSEC Q Series Programming Manual page 908

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

(b) Program example when the D(P).DDWR instructions are executed concurrently
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.
As shown on the program example, multiple CPU device write/read instructions can be
executed concurrently.
When reading/writing devices with the multiple CPU high-speed transmission dedicated
instructions concurrently, the more the total number of blocks in the multiple CPU high
speed transmission area (send area), the more the time taken to complete reading/
writing with the multiple CPU high-speed transmission dedicated instruction can be
shortened.
Program example when the D(P).DDWR instructions are executed concurrently
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
39
Write
During
comma
writing
First DDWR instruction, Second DDWR instruction
M0
70
During
writing
M7
Execution request of the next
DDWR instruction
The first DDWR instruction is executed
SM797
M1
94
Number of used
During execution
of the DDWR
blocks information
instruction 1
(CPU No.2)
The second DDWR instruction is executed
M2
SM797
126
Number of used 3
During execution
blocks information
of the DDWR
(CPU No.2)
instruction 2
When the DDWR instruction is completed abnomally, the annunciator is turned on and data writing is stopped
M3
158
Completion
Error
device 1
completion
device 1
M5
Completion
Error
device 2
completion
device 2
Next data writing is requested at nomal completion of the second DDWR instruction
M5
197
Completion
Error
device 2
completion
device 2
241
10-12
M4
M6
M6
<
Z2
K1000
=
Z2
K1000
D.DDWR H3E1
D0
Completion
status 1
D.DDWR H3E1
D2
Completion
status 2
MOV
K7
SD797
Maximum number of
used blocks
(CPU No.2)
MOV
K100
D1
Number of
write points 1
MOV
K100
D3
Number of
write points 2
RST
Z2
SET
M0
During writing
SET
M1
During execution of
the DDWR instruction 1
SET
M2
During execution of
the DDWR instruction 2
ZR0Z2
ZR0Z2
M3
Write
source write
Completion
destination
device 1
RST
M1
During execution of the
DDWR instruction 1
ZR100Z2
ZR100Z2 M5
Write
source write
Completion
destination
device 2
RST
M2
During execution of the
DDWR instruction 2
SET
F0
DDWR instruction
error display
RST
M0
During
writing
+
K200
Z2
PLS
M7
Execution request of the
next DDWR instruction
RST
M0
During writing
END

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents