Mitsubishi MELSEC Q Series Programming Manual page 907

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

Advertisement

(a) Program example when one D(P).DDWR instruction is executThe 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
Data writing is started at the rise of the write command (X0)
X0
M0
37
Write
During
comman
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 abnomally, the annunciator is turned on and data writing is stopped
M2
M3
98
Completion
Error
device
completion
device
Next data writing is requested at nomal completion of the DDWR instruction
M2
M3
134
Completion
Error
device
completion
device
173
D.DDWR H3E1
<
Z2
K1000
=
Z2
K1000
MOV
K7
MOV
K100
RST
SET
SET
D0
ZR0Z2
ZR0Z2
Completion
Write
source/write
status
destination
RST
SET
RST
+
K100
PLS
RST
7
10
7
SD797
Maximum number of
7
used blocks
(CPU No.2)
D1
7
Number of
write points
7
Z2
7
M0
During writing
7
M1
During execution of
the DDWR instruction
M2
Completion
device
M1
During execution of the
DDWR instruction
F0
M0
During
writing
Z2
M4
Execution request of the
next DDWR instruction
M0
During writing
END
10-11

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents