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.
FB 100
SEND-DAT
(1)
CPUN
ERWA
(2)
Parameter
name
Significance
Parameter
type
Data
type
CPUN
ERWA
Number of the CPU on which FB 100 is called.
The numbers 1 to 4 are permitted.
Error/warning (see SEND function/
OB 202)
D
Q
KF
BY
FB 100
LEN=90
SEGMENT 1
0000
NAME:SEND-DAT
DECL :CPUN
I/Q/D/B/T/C:
D
KM/KH/KY/KS/KF/KT/KC/KG:KF
DECL :ERWA
I/Q/D/B/T/C:
Q
BI/BY/W/D: BY
000B
:LW
=CPUN
CPUN = CPUN - 1
000C
:L
KB 1
Error if:
000D
:-F
000E
:JM
=ERWA
CPU no. <1
000F
:L
KB 3
0010
:>F
0011
:JC
=ERWA
CPU no. >4
0012
:TAK
Continued on the next page
Applications
CPU 948 Programming Guide
10 - 72
C79000-G8576-C848-04
Summary of Contents for CPU 948
Page 10: ...Contents CPU 948 Programming Guide 1 2 C79000 G8576 C848 04 ...
Page 32: ...Contents CPU 948 Programming Guide 2 2 C79000 G8576 C848 04 ...
Page 72: ...Data Blocks CPU 948 Programming Guide 2 42 C79000 G8576 C848 04 ...
Page 74: ...Contents CPU 948 Programming Guide 3 2 C79000 G8576 C848 04 ...
Page 154: ...Contents CPU 948 Programming Guide 4 2 C79000 G8576 C848 04 ...
Page 200: ...Contents CPU 948 Programming Guide 5 2 C79000 G8576 C848 04 ...
Page 308: ...Contents CPU 948 Programming Guide 7 2 C79000 G8576 C848 04 ...
Page 324: ...Examples of Parameter Assignment CPU 948 Programming Guide 7 18 C79000 G8576 C848 04 ...
Page 326: ...Contents CPU 948 Programming Guide 8 2 C79000 G8576 C848 04 ...
Page 370: ...Addressable System Data Area CPU 948 Programming Guide 8 46 C79000 G8576 C848 04 ...
Page 372: ...Contents CPU 948 Programming Guide 9 2 C79000 G8576 C848 04 ...
Page 486: ...Contents CPU 948 Programming Guide 11 2 C79000 G8576 C848 04 ...
Page 522: ...PG Functions via the S5 Bus CPU 948 Programming Guide 11 38 C79000 G8576 C848 04 ...
Page 524: ...Contents CPU 948 Programming Guide 12 2 C79000 G8576 C848 04 ...
Page 538: ...Contents CPU 948 Programming Guide 13 2 C79000 G8576 C848 04 ...
Page 546: ...List of Key Words CPU 948 Programming Guide Index 6 C79000 G8576 C848 04 ...