Introduction to STEP 5
S5-115U Manual
Block Header
In contrast to other types of blocks, function blocks have other organization information in
addition to the block header.
Its memory requirements consist of the following:
•
block description as for other blocks (five words)
•
block name (five words)
•
block parameter for parameter assignment (three words per parameter).
Creating a Function Block
In contrast to other blocks, parameters can be assigned to FBs. To assign parameters, you must
program the following block parameter information:
•
Name of the block parameter (formal operands)
Each formal operand receives a name (declaration "DECL"). The name can contain up to four
characters and must begin with an alpha character. You can program up to 40 block para-
meters per function block.
•
Block Parameter
Type
You can enter the following parameter types:
- I
input parameters
- Q
output parameters
- D
data
- B
blocks
- T
timers
- C
counters
Output parameters are represented to the right of the function symbol in graphics representation
(CSF). The other parameters are to the left.
•
Block Parameter Data
Type
You can specify the following data types:
- BI
for operands with bit address
- BY
for operands with byte address
- W
for operands with word address
- K
for constants
7-12
EWA 4NEB 811 6130-02b
Summary of Contents for SIMATIC S5-115U
Page 6: ...EWA 4NEB 811 6130 02b ...
Page 16: ...EWA 4NEB 811 6130 02b ...
Page 18: ...EWA 4NEB 811 6130 02b ...
Page 26: ......
Page 62: ...EWA 4NEB 811 6130 02b ...
Page 64: ...EWA 4NEB 811 6130 02b ...
Page 67: ......
Page 74: ......
Page 79: ......
Page 80: ......
Page 81: ......
Page 82: ......
Page 83: ......
Page 84: ......
Page 97: ......
Page 98: ......
Page 99: ......
Page 114: ...EWA 4NEB 811 6130 02b ...
Page 280: ...EWA 4NEB 811 6130 02b ...
Page 372: ...EWA 4NEB 811 6130 02b ...
Page 432: ...EWA 4NEB 811 6130 02b ...
Page 442: ......
Page 528: ...EWA 4NEB 811 6130 02b ...
Page 590: ......
Page 591: ......
Page 592: ......
Page 593: ......
Page 594: ......
Page 600: ...EWA 4NEB 811 6130 02b ...
Page 602: ...EWA 4NEB 811 6130 02b ...
Page 604: ...EWA 4NEB 811 6130 02b ...
Page 624: ...EWA 4NEB 811 6130 02b ...
Page 632: ...EWA 4NEB 811 6130 02b ...
Page 644: ...EWA 4NEB 811 6130 02b ...
Page 646: ...EWA 4NEB 811 6130 02b ...
Page 652: ...EWA 4NEB 811 6130 02b ...
Page 654: ...EWA 4NEB 811 6130 02b ...
Page 660: ...EWA 4NEB 811 6130 02b ...
Page 662: ...EWA 4NEB 811 6130 02b ...
Page 666: ...EWA 4NEB 811 6130 02b ...
Page 668: ...EWA 4NEB 811 6130 02b ...
Page 674: ...EWA 4NEB 811 6130 02b ...