Mitsubishi Electronics Q25PHCPU Sleep Apnea Machine User Manual


 
95
CHAPTER 4 STARTING UP MULTIPLE CPU SYSTEM
4
4.3 Program Examples for Communications by Auto Refresh
4.3.2 Program examples for Universal model QCPU
(2) Program examples
(a) Sending bit data and word data from CPU No.1 to CPU No.2
Devices used in CPU modules
Program example of CPU No.1
Program example of CPU No.2
Device used in CPU No.1 Device used in CPU No.2
M0
Send data from CPU No.1 to CPU No.2
M0
Send data from CPU No.1 to CPU No.2
D0 and D1 D0 and D1
-
D100
Storage device for data received from CPU
No.1
YE0 Data reception flag (for data from CPU No.1)
SM400 Always ON
Send
command
CPU No.1
send data
(bit)
CPU No.1
send data
(word)
CPU No.2
receive data
(bit)
CPU No.2
receive data
(word)
CPU No.1
send data
(word)
SM400
Always
ON
CPU No.1
send data
(bit)