Communications Capabilities
S5-115F Manual
7.4.5
FB 252 Integral Function Block
The FB 252 is integrated in the operating system of the S5-115F. It handles control of data transfer
between the CPU and the CP 523 serial I/O module. The FB 252 transfers fixed-length data. Up to
32 data blocks of eight bytes each are read from or written to a memory area per call. Memory
areas are data blocks or flag areas.
The CPU always initiates each data transfer by calling the FB 252. The user can specify whether he
wants to send or receive data with the FB.
You must specify the following when calling FB 252:
•
Initial address of the CP 523
•
FB 252 function
You specify here whether you want to send or receive
•
Memory type
In the case of a send job, specify here whether the data is in a flag area or a data block.
In the case of a receive job, specify here whether the data is to be stored in a flag area or a
data block.
•
Number of the data block
•
Number of the source data word, or number of the destination data word
•
Number of eight-byte data blocks to be transferred
Param-
eter
Meaning
Type
Data
type
Assignment
STL
BADR
Initial module
address
D
KF
128 to 248
(in 8-byte-steps)
: JU FB 252
NAME
: AGF: BLUE
BADR
:
FUNK
:
TYP
:
DBNR
:
ANFA
:
BLCK
:
Function
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
FUNK
D
KC
S:
= Send data
E:
= Receive data
D
: = Data block
F
: = Flag area
XX : = Indirect block initialization
(the block parameters are
stored in a data block)
Source / destin.
memory type in
the case of S/R
TYP
D
KC
Block number
DBNR
D
KF
In the case of data block: 4 to 255
In the case of flag area: 0
In the case of indirect block
initialization: 0; 4 to 255
Initial address of
the block
ANFA
D
KF
0 to 252 data word number
2 to 248 flag byte number
Number of blocks
BLCK
D
KF
1 to 32
Number of 8-byte data blocks to be
transferred
7-48
EWA 4NEB 811 6148-02