Mitsubishi Electronics Q04UDVCPU Sleep Apnea Machine User Manual


 
133
CHAPTER 6 COMMUNICATIONS AMONG CPU MODULES
6
6.1 Communications Using the CPU Shared Memory
6.1.1 Communications by auto refresh (using the auto refresh area)
Ex.
Auto refresh between a QCPU and a Motion CPU
The following are the program examples for the Basic model QCPU and Motion CPU when PLC
parameters ("Communication Area Setting (Refresh Setting)" of "Multiple CPU Setting") are set as shown
below.
[Parameter setting]
1) CPU No.1 creates send data.
2) CPU No.1 turns on the data setting complete bit.
(Auto refresh execution)
3) CPU No.2 detects the completion of send data setting.
4) CPU No.2 performs receive data processing.
5) CPU No.2 turns on the receive data processing complete bit.
(Auto refresh execution)
6) CPU No.1 detects the completion of the receive data processing, and turns off the data setting
complete bit.
Setting No.
("Change
Screens")
PLC
CPU Specific Send Range PLC Side Device
Points Start End Start End
Setting 1
PLC No.1 2 00C0 00C1 M0 M31
PLC No.2 2 0800 0801 M32 M63
Setting 2
PLC No.1 10 00C2 00CB D0 D9
PLC No.20––––
3)
Program (receiving side): Motion SFC
1)
2)
[ SET MO
[ RST MO ]
]
[ RST XO ]
6) M32
Program (sending side): Ladder
4)
[G0]
M0
[F0]
Receive data processing
(D0 to D9)
5)
[F1]
SET M32
Send data processing (D0 to D9)
Program example (sending side) Program example (receiving side)
Write
command
X0