Siemens CPU 948 Programming Manual page 476

Simatic s5 s5-155u
Table of Contents

Advertisement

Applications
Programming function
blocks
FB 100: Sending data word areas
Before you call FB 100, the data block containing the link list must be
open. The function block SEND-DAT requires the number of the CPU on which
it is called in order to evaluate the information contained in the link
list.
If the SEND function (OB 202) is not executed correctly in the function
block, the error or warning number is transferred to the output parameter
ERWA and RLO is set to 1.
If the input parameter CPUN (CPU number) is illegal, ERWA has the value 16
(bit no. 4 = 1).
The function block SEND-DAT uses flag bytes FY 239 to FY 251 as scratchpad
flags.
(1)
Parameter
name
CPUN
Number of the CPU on which FB 100 is called.
The numbers 1 to 4 are permitted.
ERWA
Error/warning (see SEND function/
OB 202)
FB 100
SEGMENT 1
0000
NAME:SEND-DAT
DECL :CPUN
I/Q/D/B/T/C:
DECL :ERWA
I/Q/D/B/T/C:
000B
:LW
=CPUN
000C
:L
KB 1
000D
:-F
000E
:JM
=ERWA
000F
:L
KB 3
0010
:>F
0011
:JC
=ERWA
0012
:TAK
10 - 72
FB 100
SEND-DAT
CPUN
Significance
D KM/KH/KY/KS/KF/KT/KC/KG:KF
Q BI/BY/W/D:
CPUN = CPUN - 1
Error if:
CPU no. <1
CPU no. >4
ERWA
(2)
Parameter
LEN=90
BY
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