Siemens CPU 948 Programming Manual page 62

Simatic s5 s5-155u
Table of Contents

Advertisement

Function Blocks
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
DW
DATA :
I
RST
:
F
SET
:
T
MTIM :
KT
TIME :
DW
TRAN :
Q
BEC
:
Q
LOOP :
: BE
Formal
Actual
operands
operands
CSF/LAD method of representation
PB 25
SEGMENT 1
FB 201
DW 1
DATA
I 3.5
RST
F 2.5
SET
T 2
MTIM
KT 010.1
TIME
2 - 32
1
3.5
2.5
2
010.1
2
2.3
6.0
REQUEST
TRAN
BEC
LOOP
DW
2
Q
2.3
Q
6.0
:BE
CPU 948 Programming Guide
C79000-G8576-C848-04

Advertisement

Table of Contents
loading

Table of Contents