Integral Blocks
The RECEIVE Block
- FB245 -
FB245 requests reception of data from a module with page addressing. A distinction is made bet-
ween two functions modes:
•
RECEIVE All
Data can be received for any job. This function block substitutes for direct memory access.
•
RECEIVE Direct
Data is received for a specific job.
Calling Function Block FB245
STL
: JC
NAME
: RECEIVE
SSNR
:
A-NR
:
ANZW
:
ZTYP
:
DBNR
:
ZANF
:
ZLAE
:
PAFE
:
:
***
Description of the RECEIVE ALL Function
The block needs the following parameters in RECEIVE ALL mode:
•
SSNR -
interface number
•
A-NR
-
job number (assign "0")
•
ANZW -
job status word
•
PAFE -
parameter assignment error byte
All other parameters are irrelevant for this job.
The CP provides the following information via the communications area:
•
address of the job status word
•
type of data
•
amount of data
•
start address of the data area
The following bits are evaluated or set/reset in the status word for the pertinent job:
•
data transfer disabled
•
data transfer completed
•
data transfer in progress
The block enters the amount of data transferred for a job in the data word that follows the job
status word.
11-22
FB
245
KY
0,10
KY
0,101
FW
24
KS
DB
KY
0,10
KF
+100
KF
- 1
FY
23
S5-115U Manual
CSF/LAD
FB245
RECEIVE
SSNR
A-NR
ANZW
ZTYP
DBNR
ZANF
ZLAE
PAFE
EWA 4NEB 811 6130-02b