Siemens S5-100U User Manual page 132

Simatic s5 programmable controller
Hide thumbs Also See for S5-100U:
Table of Contents

Advertisement

Introduction to STEP 5
Block Header
Besides the block header, function blocks have organizational information that other blocks do not
have.
A function block's memory requirements consist of the following:
Block header (five words) as for other blocks
Block name (five words)
Block parameter for parameter assignment (three words per parameter)
Creating a Function Block, for CPU 103 and Higher
In contrast to other blocks, parameters can be assigned to FBs.
To assign parameters, you must program the following block parameter information.
Block Parameter Name (formal operand)
Each block parameter as a formal operand is given a designation (DES). Under this designation
it is replaced by an actual parameter when the function block is called.
The name can be up to four characters long and must begin with an alpha character. You can
program up to 40 block parameters 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
In graphic representation, output parameters appear to the right of the function symbol. Other
parameters appear to the left.
Block Parameter Data Type
You can specify the following data types:
- BI
for operands with a bit address
- BY
for operands with a byte address
- W
for operands with a word address
- K
for constants
7-12
S5-100U
EWA 4NEB 812 6120-02

Advertisement

Table of Contents
loading

Table of Contents