14 - 15
14.3 Data Communications Using CPU Shared Memory
14.3.2 Data communications using auto refresh
14
COMMUNICATIONS BETWEEN CPU MODULES
Remark
Refer to the manual of the corresponding CPU module for the auto refresh area
setting of the programmable controller CPU or Motion CPU.
(b) Setting example
The following provides an auto refresh area setting example.
In the following setting example, the High Performance model QCPU is used as
CPU No. 1, and CPU No. 4 does not use auto refresh.
(3) Precautions for data communications using auto refresh
Depending on the timing of write to the auto refresh area of the host CPU and read
from another CPU, old data and new data may exist together in the data of each CPU.
For auto refresh, create an interlock program so that the data of another CPU is not
used when both old and new data exist.
Figure 14.12 Auto refresh area setting example
<Setting 1> <Setting 2>
<CPU shared memory of CPU No. 1>
Host CPU operation
information area
System area
Auto refresh area
User free area
0H
1FFH
200H
7FFH
800H
82FH
Auto refresh area
for Setting 1
Auto refresh area
for Setting 2
800
H
80FH
810H
82FH
830H
FFFH
<CPU shared memory of CPU No. 2>
Host CPU operation
information area
System area
Auto refresh area
User free area
0H
1FFH
200H
7FFH
800H
83FH
Auto refresh area
for Setting 1
800
H
83FH
840H
FFFH
<CPU shared memory of CPU No. 3>
Host CPU operation
information area
System area
Auto refresh area
User free area
0H
1FFH
200H
7FFH
800H
83FH
Auto refresh area
for Setting 1
Auto refresh area
for Setting 2
800
H
81FH
820H
83FH
840H
FFFH
<CPU shared memory of CPU No. 4>
Host CPU operation
information area
System area
User free area
0H
1FFH
200H
7FFH
800H
FFFH