Siemens SIMATIC S5-115U User Manual page 237

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

S5-115U Manual
Block End "BE"
The "BE" operation terminates a block. Data blocks do not need to be terminated. "BE" is always
the last statement in a block.
In structured programming, program scanning jumps back to the block where the call for the
current block was made.
Binary logic operations cannot be continued in a higher-order block.
Example: Program block PB3 is terminated by the "BE" statement.
Program Sequence
OB1
JU PB3
Unconditional Block End "BEU"
The "BEU" operation causes a return within a block. However, jump operations can by-pass the
"BEU" operation in function blocks (see Sections 8.2.10 and 8.3.4).
Binary logic operations cannot be continued in a higher-order block.
Example: Scanning of function block FB21 is terminated regardless of the RLO.
Program Sequence
PB8
FB21
JC=
JU FB21
EWA 4NEB 811 6130-02b
STL
.
PB3
.
.
.
.
.
BE
BE
STL
.
.
.
.
JC=
BEU
.
.
BEU
.
.
BE
BE
STEP 5 Operations
Explanation
The "BE" statement terminates
program block PB 3 and causes
program scanning to return to
organization block OB1.
Explanation
The "BEU" statement causes program
scanning to leave function block FB21
and return to program block PB8.
8-37

Advertisement

Table of Contents
loading

Table of Contents