Siemens CPU 948 Programming Manual page 47

Simatic s5 s5-155u
Table of Contents

Advertisement

Unconditional call
Conditional call
PB 1
JU
PB 5
O
I 5.3
A
I 1.5
JC
PB 6
A
I 3.2
BE
Fig. 2-3
Block calls that enable processing of a program block
CPU 948 Programming Guide
C79000-G8576-C848-04
Program, Organization and Sequence Blocks
Block calls can be unconditional or conditional as follows:
The "JU" statement belongs to the unconditional operations. It has no
effect on the RLO. The RLO is carried along with the jump to the new
block. Within the new block, it can be evaluated but no longer
combined logically.
The addressed block is processed regardless of the previous result of
logic operation (RLO - see Section 3.4).
Example: JU PB 100
The JC statement belongs to the conditional operations. The addressed
block is processed only if the previous RLO = 1. If the RLO = 0, the
jump is not executed.
Example: JC PB 100
Note
After the conditional jump operation is executed, the RLO is set
to "1" regardless of whether or not the jump to the block is
executed.
PB 5
A
I
1.0
JC
PB 10
O
F 1.5
BE
PB 6
O
I
3.0
BE
PB 10
A
I
2.0
BE
2 - 17

Advertisement

Table of Contents
loading

Table of Contents