Siemens CPU 948 Programming Manual page 423

Simatic s5 s5-155u
Table of Contents

Advertisement

Example
Occupation of the buffer by a link
The link between CPU 3 and CPU 2 is initialized. The link is assigned seven
memory fields in the buffer of the coordinator. Following this, the data
transfer shown below would be possible.
Transmitting capacity
(no. of free
memory fields)
initialize
send
field A
7
6
5
4
3
2
1
7
6
0
0
1
1
2
3
4
5
6
7
Receiving capacity
(no. of free
memory fields)
Fig. 10-5
Example of the occupation of the COR buffer
Sending/receiving n data fields means that the corresponding functions are
called n times one after the other.
To simplify the representation, at any one time, data can either be sent or
received in this example.
It is, however, possible and useful to transmit (CPU 3) and receive (CPU 2)
simultaneously ("Parallel processing in a multiprocessor programmable
controller"). In the example, fields H and I are received while fields K
and L are sent.
The example illustrates the queue organization of the buffer: the fields of
data sent first (A,B,C...) are received first (A,B,C...).
CPU 948 Programming Guide
C79000-G8576-C848-04
send 4 fields
send 4 fields
B, C, D, E
F, G, H, I
2
4
0
5
3
7
receive
receive
fields A, B
fields C, D,
E, F, G
Multiprocessor Communication
send 2 fields
K, L
Transmitter: CPU 3
5
5
7
2
2
Receiver: CPU 2
receive
receive
fields K, L
fields H, I
Time
10 - 19

Advertisement

Table of Contents
loading

Table of Contents