Mitsubishi Electric MELSEC Q Series User Manual page 167

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

Advertisement

2) Data consistency for data exceeding 32 bits
In auto refresh method, data are read in descending order of the setting number in auto refresh setting
parameter.
Read data separation can be avoided by using the setting number lower than the setting data as an interlock
device.
• Auto refresh between QCPU and Motion CPU
Figure 4.21 shows program examples for the Basic model QCPU and Motion CPU when Auto refresh
settings in Multiple CPU settings are made as shown in Table4.4.
<Parameter setting>
Setting No.
Setting 1
Setting 2
Transmission program example
Write
command
0
6) M32
1) CPU No. 1 creates send data.
2) CPU No. 1 turns on the data setting completion bit.
<Auto refresh execution between multiple CPUs>
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 completion of receive data processing.
<Auto refresh execution between multiple CPUs>
6) CPU No. 1 detects the completion of the receive data processing and turns off the data setting completion bit.
4 - 21
Table4.4 Parameter setting example for interlock program
CPU No.
Number of
points
CPU No. 1
2
CPU No. 2
2
CPU No. 1
10
CPU No. 2
0
Transmission program: Ladder
1)
Transmission data processing
(D0 to D9)
2)
[
SET MO
[
RST MO
[
RST XO
Figure 4.21 Interlock program example
CPU Shared Memory
Start
End
00C0
00C1
0800
0801
00C2
00CB
----
----
Reception program example
Reception program: Motion SFC
3)
[G0]
M0
]
4)
[F0]
]
Data reception processing
(D0 to D9)
]
5)
[F1]
SET M32
CPU Side Device
Start
End
M0
M31
M32
M63
D0
D9
----
----

Advertisement

Table of Contents
loading

Table of Contents