Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
10-10
Program example when the multiple CPU high-speed transmission dedicated instruction is
executed at CPU No.2
(9) Program example when data exceeding 100 words are written/read with the multiple CPU
high-speed transmission dedicated instruction
The maximum number of write/read points that can be processed with the multiple CPU
high-speed transmission dedicated instruction is 100 words. Data exceeding 100 words can
be written/read by executing the multiple CPU high-speed transmission dedicated
instruction at several times.
The following shows a program example using the D(P).DDWR instruction of the multiple
CPU high-speed transmission dedicated instruction. The similar program can be used when
using the D(P).DDRD instruction of the multiple CPU high-speed transmission dedicated
instruction.
SM402
Turn-on for one
scan after RUN
MOV K1 SD796
Maximum number of
used blocks
(CPU No.1)
X20
Read instruction
SET M0
During execution the
DDRD instruction
U3E1
¥
G10000.0 is turned on while CPU No.2 is executing the DP.DDRD instruction.
M0 U3E0¥G10000.0 SM796
During execution
of the DDWR
instruction
CPU No.1 is
during execution
of the instruction
Number of used
blocks information
(CPU No.1)
SET G10000.0
U3E1¥
CPU No.2 is during
execution of the
instruction
MOV K50 D1
Read instruction
DP.DDRD H3E0 D0 D1000 D1000 M1
Completion
status
Completion
devaice
RST M0
During execution of
the DDRD instruction
U3E1
¥
G10000.0 is turned off at the completion of the DP.DDRD instruction.
RST G10000.0
U3E1¥
CPU No.2 is during of
execution the instructio
n
M1
Completion device