EasyManuals Logo

Mitsubishi MELSEC-Q/L User Manual

Mitsubishi MELSEC-Q/L
850 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #696 background imageLoading...
Page #696 background image
694
(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
Turn-on for one
scan after RUN
MOV K7 SD797
Maximum number of
used blocks
(CPU No.2)
MOV K100 D1
Number of
write points
Data writing is started at the rise of the write command (X0)
X0 M0
Write
command
During
writing
37
RST Z2
SET M0
During writing
SET M1
During execution of
the DDWR instruction
68
M0
During
writing
M4
Execution request of the next
DDWR instruction
The DDWR instruction is executed
71
M1 SM797
During execution
of the DDWR
instruction
Number of used
blocks information
(CPU No.2)
D.DDWR H3E1 D0 ZR0Z2 ZR0Z2 M2
Completion
status
Write
destination
source/write Completion
device
RST M1
During execution of the
DDWR instruction
When the DDWR instruction is completed abnormally, the annunciator is turned on and data writing is stopped
98
M2 M3
Completion
device
Error
completion
device
SET F0
RST M0
During
writing
Next data writing is requested at normal completion of the DDWR instruction
134
M2 M3
Completion
device
Error
completion
device
+ K100 Z2
< Z2 K1000
= Z2 K1000
PLS M4
Execution request of the
next DDWR instruction
RST M0
During writing
END
173
0

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC-Q/L and is the answer not in the manual?

Mitsubishi MELSEC-Q/L Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC-Q/L
CategoryController
LanguageEnglish

Related product manuals