FB 100 continued:
0048 EMPT :L FY 244 Increment
0049 :I 1 link counter
004A :T FY 244
004B :L KB 4 All links
004C :<F processed ?
004D :JM =LOOP
004E :L KB 0 Regular program end:
004F :T =ERWA RLO = 0, ERWA = 0
0050 :BEU
0051 :
0052 ERWA :L KB 16 Program end if error:
0053 OBER :T =ERWA RLO = 1, ERWA contains
0054 :BE error/warning number
FB 101: Receive data word areas
Before you call FB 101, the data block containing the link list must
already be open. The function block RECV-DAT requires the number of the CPU
in which it is called in order to evaluate the information contained in the
link list.
If the RECEIVE function (OB 204) is not correctly processed within the
function block, the corresponding error or warning number is transferred to
the output parameter ERWA and the RLO is set to 1. If the input parameter CPUN
is illegal, ERWA has the value 16 (bit no. 4 = 1).
The RECV-DAT function block uses flag bytes FY 242 to FY 255 as scratchpad
flags.
FB 101
RECV-DAT
(1) CPUN ERWA (2)
Parameter
name
Significance Parameter
type
Data
type
CPUN
ERWA
Number of the CPU, on which FB 101 is called.
The numbers 1 to 4 are permitted.
Error/warning (see RECEIVE function /
OB 204)
D
Q
KF
BY
Continued on the next page
Applications
CPU 948 Programming Guide
10 - 74 C79000-G8576-C848-04