Siemens CPU 948 Programming Manual page 478

Simatic s5 s5-155u
Table of Contents

Advertisement

Applications
FB 100 continued:
0048 EMPT :L
FY 244
0049
:I
1
004A
:T
FY 244
004B
:L
KB 4
004C
:<F
004D
:JM
=LOOP
004E
:L
KB 0
004F
:T
=ERWA
0050
:BEU
0051
:
0052 ERWA :L
KB 16
0053 OBER :T
=ERWA
0054
:BE
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.
(1)
Parameter
name
CPUN
Number of the CPU, on which FB 101 is called.
The numbers 1 to 4 are permitted.
ERWA
Error/warning (see RECEIVE function /
OB 204)
10 - 74
FB 101
RECV-DAT
CPUN
Significance
Increment
link counter
All
links
processed ?
Regular program end:
RLO = 0, ERWA = 0
Program end if error:
RLO = 1, ERWA contains
error/warning number
ERWA
(2)
Parameter
Continued on the next page
CPU 948 Programming Guide
Data
type
type
D
KF
Q
BY
C79000-G8576-C848-04

Advertisement

Table of Contents
loading

Table of Contents