Siemens CPU 948 Programming Manual page 60

Simatic s5 s5-155u
Table of Contents

Advertisement

Function Blocks
Parameter
Data type
type
Table 2-6 continued:
D
KF
for a fixed point number
-32768 to +32767
(Cont.)
KG
for a floating point
number
B
Data type designation not possible DB
T
Data type designation not possible T 0 to 255 Timer
C
Data type designation not possible Z 0 to 255 Counter
1)
±0.1469368 x 10
-38
to ±0.1701412 x 10
2 - 30
Actual operands permitted
Constants
1)
FB
OB
PB
SB
39
Note
S flags are not permitted as actual operands for function blocks.
After the jump to a function block, the actual operands from the block
then called are used in the function block program instead of the
formal operands.
This feature of programmable function blocks allow them to be used
for a wide variety of purposes in your user program.
When the program returns from the called function block, the list of
actual operands in the calling block is skipped by a jump operation
activated implicitly by STEP 5 in MC-5 code.
n
Data block; the operation
C DB n is executed
n
Function block (permitted
only without parameters)
called unconditionally (JU . .n)
n
Organization block called
unconditionally (JU . .n)
n
Program blocks - called
unconditionally (JU . .n)
n
Sequence blocks - called
unconditionally (JU . .n)
CPU 948 Programming Guide
C79000-G8576-C848-04

Advertisement

Table of Contents
loading

Table of Contents