Mitsubishi MELSEC-Q Series User Manual page 187

Programmable controller multiple cpu system
Hide thumbs Also See for MELSEC-Q Series:
Table of Contents

Advertisement

4
COMMUNICATIONS BETWEEN CPU MODULES
4.1.3 Communication by auto refresh using multiple CPU high speed transmission area
Transmission side program (CPU No.1)
(Transmission side (CPU No. 1))
Write
command
M100
M0
M32
1)
Set send data
from D0 to D9.
2)
6)
M0
M32
1) CPU No.1 stores the send data to D0 to D9.
2) CPU No.1 turns on the data setting completion bit (MO).
Writes the above data to the auto refresh area of the CPU No.1 send area
at the END processing of the CPU No.1.
Sends the data in the auto refresh area of the CPU No.1 send area to the
CPU No.2.
Reads the received data to the specified device at END processing of CPU
No.2.
3) CPU No.2 detects the send data setting completion.
4) CPU No.2 performs the receive data processing.
5) CPU No.2 turns on the receive data processing complete bit (M32).
Writes the above data 5) to the auto refresh area of the CPU No.2 send area
at the END processing of the CPU No.2.
Sends the data in the multiple CPU high speed transmission area of the CPU
No.2 to the CPU No.1.
Reads the received data to the specified device at END processing of CPU
No.1.
6) CPU No.1 detects that the receive data processing complete bit turns on and
turns off the data setting complete bit.
4.1 Communications between CPU modules using CPU shared memory
Receive side program (CPU No.2)
3)
M0
M32
SET M0
7)
M0
M32
RST M0
RST
Diagram 4.38 Interlock program example
(Reception side (CPU No. 2))
4)
Operation using
receive data
(D0 to D9)
5)
SET M32
RST M32
4
- 37
1
2
3
4
5
6
7
8

Advertisement

Table of Contents
loading

Table of Contents