Siemens SIMATIC S5 CP 523 Manual page 211

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

Advertisement

CP 523
8.2
Using "RECEIVE" FB 201
"RECEIVE" FB 201 transfers message frames from the CP 523 to the CPU.
You must specify the following when calling "RECEIVE" FB 201:
The start address of the CP 523
The number of the target data block in which the message frame is to be stored on the CP 523
The number of the target data word starting from which the message frame is to be stored
A byte address where "RECEIVE" FB 201 can store the number of data words received
A byte address where "RECEIVE" FB 201 is to store the status byte
A byte address where "RECEIVE" FB 201 is to store the CBR (= KBE)
Receive enable is RLO = 1.
8.2.1
Calling and Setting "RECEIVE" FB 201 Parameters
"RECEIVE" FB 201 can be called in cyclic programs and in programs servicing timed interrupts
process interrupts
.
*
: JU
FB 201
NAME
: RECEIVE
DES
: BADR : KF
DES
: Z-DB : B
DES
: ZANF : KF
DES
: ZLAE : MB
DES
: STAT : MB
DES
: KBE
Name
Parameter
Type
BADR
D
Z-DB
B
ZANF
D
ZLAE
Q
STAT
Q
KBE
Q
Note:
The scan time may be exceeded if several message blocks are received.
Remedy: Program OB 31 "Set scan time" in FB 201 (address 00F0, network 6).
* Please note that FB 201 uses scratch flags.
EWA 4NEB 811 6044-02a
STL
Table 8-3. Block Parameters for "RECEIVE" FB 201
Data
Type
KF
Initial address of the module
Number of the destination data block
KF
Number of the 1st destination data word
BY
Number of data words received (destination length)
BY
Status byte
BY
Coordination byte 'receive' (relevant only in 3964(R)
mode)
Using the "SEND" and "Receive" Function Blocks
LAD/CSF
FB 201
BADR
Z-DB
ZANF
Description
and
*
MB
ZLAE
STAT
MB
KBE
FY
8-21

Advertisement

Table of Contents
loading

Table of Contents