Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
10-11
7
10
7
7
7
7
7
7
10.1 Overview
(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
Turn-on for one
scan after
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
comman
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 abnomally, 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 nomal 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