Example 2:
calling a function block and assigning parameters to it with
the STL and CSF/LAD methods of representation in a program block.
STL method of representation
PB 25
SEGMENT 1
:
:
C
DB 5
:
:
JU
FB 201
NAME :
REQUEST
DATA :
DW
1
RST
:
I
3.5
SET
:
F
2.5
MTIM :
T
2
TIME :
KT 010.1
TRAN :
DW
2
BEC
:
Q 2.3
LOOP :
Q 6.0
:
BE
CSF/LAD method of representation
PB 25
SEGMENT 1
FB 201
REQUEST
DW 1
DATA
TRAN
DW 2
I 3.5
RST
BEC
Q 2.3
F 2.5
SET
LOOP
Q 6.0
T 2
MTIM
:BE
KT 010.1
TIME
Formal
operands
Actual
operands
Function Blocks
CPU 948 Programming Guide
2 - 32
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 ...