Siemens SIMATIC S5 CP 523 Manual page 180

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 is defined as all data transferred after a Send or Receive request. A message
frame can be up to 256 bytes in length in the case of the CP 523. The CPU sends and receives
message frames in message blocks of eight bytes.
The CP 523 can detect the end of a message frame sent by the peripheral device in three ways:
You define the message frame length in parameter block 7 during configuring.
You specify one or two end-of-text characters in parameter block 7 when you set the
parameters in the parameter block. In this case, the message frame size must be 0 bytes.
The CP 523 must be initialized for Interpretive mode.
The setting of parameters is explained in 7.3.
In 3964(R) mode, the procedure automatically computes the message frame size on the basis
of end identifier string DLE ETX (BCC).
Transferring the message frame
After the CP 523 has accepted the Receive request, it transfers the first message block from the
Receive mailbox to the transfer memory. After the CPU has read a message block, it must write
word 0 of the transfer memory. The CP then updates the transfer memory.
Example:
Receiving a message frame with a length of 12 bytes.
Start address 128 is set on the CP 523. The message frame is to be stored in data block 20
beginning 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-15. Data Interchange with "Receive 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
Receive 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-75

Advertisement

Table of Contents
loading

Table of Contents