EasyManua.ls Logo

Siemens S5-100U - Data Blocks

Siemens S5-100U
512 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Introduction to STEP 5 S5-100U
Figure 7-6. Programming a Function Block
Parameter list
for first call
First call
PB 3
Parameter list
for second call
Actual operands
Formal operands
FB 5
: JU FB5
NAME : EXAMPLE
X1 : I 0.0
X2 : F 1.3
X3 : Q 1.0
: JC FB5
NAME : EXAMPLE
X1 : I 0.3
X2 : I 0.2
.
.
: A I 0.1
Formal operands
NAME : EXAMPLE
DES: X1 I BI
DES: X2 I BI
DES: X3 Q BI
: A = X1
: A = X2
: = = X3
: BE
A I 0.0
A F 1.3
= Q 1.0
A I 0.3
A I 0.2
= Q 1.0
Executed
program
X3 : Q 1.0
Second call
7.3.5 Data Blocks
Data blocks (DB) store data to be processed in a program.
The following data types are permissible:
Bit pattern (representation of controlled system states)
Hexadecimal, binary or decimal numbers (times, results of arithmetic operations)
Alphanumeric characters (ASCII message texts)
7-16
EWA 4NEB 812 6120-02

Table of Contents

Related product manuals