Siemens SIMATIC S5 CP 523 Manual page 168

Serial i/o module
Hide thumbs Also See for SIMATIC S5 CP 523:
Table of Contents

Advertisement

CP 523
Message frame structure
A message frame consists of all the data transferred in response to a Send or Receive request. In
the case of the CP 523, a message frame can be up to 256 bytes long. The CPU sends and receives a
message frame in message blocks of eight bytes.
The CP 523 can detect the end of a message frame sent by the CPU in two ways:
You specify the message frame size in bytes with the "Send message frame" request.
You specify one or two end-of-text characters with the "Send message frame" request. You
must specify 0 bytes as the Send message frame size.
The end-of-text characters must be identical to those defined when setting the CP 523
parameters ( 7.3)
Transferring a message frame
After the CP 523 has accepted a Send request, the CPU transfers the message frame to the transfer
memory in message blocks of eight bytes. After the CPU has written word 0, the CP accepts the
data from the transfer memory and stores it in the Send mailbox.
This means you transfer words 2, 4 and 6 to the transfer memory first and then word 0.
Example:
Transferring a message frame with a length of 12 bytes.
Start address 128 is set on the CP 523. The message frame is stored in data block 20 beginning from
DW 0.
DB 20
on the CPU
DW
Contents
0
A53D
H
1
34E1
H
2
9002
H
3
8765
H
4
6ED4
H
5
0D0D
H
Figure 7-10. Forwarding Data with "Send Message Frame"
EWA 4NEB 811 6044-02a
Transfer memory
of the CP
Word
Message
128
block 1
130
132
134
Message
block 2
128
130
Contents
A53D
Message
H
block 1
34E1
H
9002
H
8765
Message
H
block 2
6ED4
H
0D0D
H
Communications Mode
Send mailbox of
the CP
Word
Contents
0
A53D
H
2
34E1
H
4
9002
H
6
8765
H
8
6ED4
H
10
0D0D
H
7-63

Advertisement

Table of Contents
loading

Table of Contents