Mitsubishi MELSEC-Q Series User Manual page 190

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

Advertisement

4
COMMUNICATIONS BETWEEN CPU MODULES
CPU No. 1
CPU shared memory
Host CPU operation
information area
System area
Auto refresh area
User free area
Data written with write
instruction
1)
Write with write instruction
sequence program
Execution of
write instruction
4
- 40
4.1 Communications between CPU modules using CPU shared memory
4.1.4 Communication using CPU shared memory by program
(b) Outline of the communication by the program
1) Using user setting area
The data written to the CPU shared memory of the host CPU with a write
instruction can be read by another CPU using a read instruction.
Unlike the auto refresh of the CPU shared memory, it is possible to read up-to-
date data directly when this instruction is executed.
An outline of a process where data written in the CPU shared memory of CPU
No.1 with an write instruction is read by CPU No.2 using an read instruction is
shown in Diagram 4.40.
2) Read with read instruction
CPU No.1 processing
1) Data are written into the user setting area of CPU No.1 with a write instruction.
CPU No.2 processing
2) A read instruction is used to read data from the user setting area of CPU No.1
to the specified device.
Diagram 4.40 Outline of communication by program
For the write/read instruction, refer to Section 4.1.4 (1).
POINT
For the Motion CPU, the write/read instructions are not usable.
For the accessing method from the Motion CPU and PC CPU module to the CPU
shared memory, refer to each CPU module manual.
CPU No. 2
CPU shared memory
Host CPU operation
information area
System area
Auto refresh area
User free area
sequence program
Execution of read instruction

Advertisement

Table of Contents
loading

Table of Contents