Data Blocks (Dbs) - Siemens SIMATIC S5-115U User Manual

Simatic s5 series cpu 941-7ub11 cpu 942-7ub11 cpu 943-7ub11 and cpu 943-7ub21 cpu 944-7ub11 and cpu 944-7ub21
Table of Contents

Advertisement

Introduction to STEP 5
PB3
: JU
FB5
NAME : EXAMPLE
X1
:
I 4.1
X2
:
F 1.3
X3
:
Q 0.1
.
.
: A I 5.2
: JC
FB5
NAME : EXAMPLE
X1
:
I 4.5
X2
:
I 5.3
X3
:
Q 0.1

7.3.5 Data Blocks (DBs)

Data blocks 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 (message texts)
7-16
FB5
NAME:
DECL :
DECL :
DECL :
Parameter list for
first call
Formal operands
Actual operands
Parameter list for
second call
Formal operands
Figure 7-6. Assigning Function Block Parameters
Executed
program ...
EXAMPLE
X1 I
BI
X2 I
BI
at first call
X3 Q BI
: A
=X1
: A
=X2
: =
=X3
: BE
at second call
S5-115U Manual
: A
I
4.1
: A
F 1.3
: =
Q 0.1
: A
I
4.5
: A
I
5.3
: =
Q 0.1
EWA 4NEB 811 6130-02b

Advertisement

Table of Contents
loading

Table of Contents