Comparing For Greater Than Or Equal To; Comparing For Less Than Or Equal To - Siemens Simatic S5-101U Programming Instructions Manual

Table of Contents

Advertisement

Comparing for greater than or equal to
The operand f i r s t s p e c i f i e d i s compared
The numerical representation o f the
w i t h the subsequent operand i n keeping
operands i s taken i n t o account, i.e.
w i t h the comparison function. The r e s u l t
the con tents o f the accumulators are
of the comparison i s flagged by condition
i n t e r p r e t e d as being fixed-pobnt num-
codes
CC0
and
CC1.
bers.
A f t e r comparison f o r greater than o r
equal to, a jump can be made t o a l a b e l
(+
127
words) w i t h the jump operation
Jr
( i f RLO =
1
).
Original
I B 0
I B 1
Q 1 3
Comparing for less than or equal to
STEP 5 representation
RLO
1
0
1
f o r
IB 0
=
IB 1
IB 0 < IB 1
IB 0
>
IB 1
The operand f i r s t s p e c i f i e d i s compared
The numerical representation of. the
w i t h the subsequent operand i n keeping
operands i s taken i n t o account, i.e.
w i t h the comparison function. The r e s u l t
the contents o f the accumulators are
o f the comparison i s flagged by c o n d i t i o n
i n t e r p r e t e d as being fixed-point numbers.
codes
CC0
and
CC1.
After comparing f o r less than or equal
to, a jump can be made t o a l a b e l (+
-
127
words) w i t h the jump operation
JC
=
. . .
( i f
RLO
=
1).
Control system
flowchart
Statement
l i s t
L
I B 0
Or~ginal
I B 0
I B 1
0
01.5
Ladder
diagram
CC1
0
0
1
L I B 1
>=F
=
Q 1 3
CC0
0
1
0
STEP 5 representation
I 0 1
C2
f o r
IB 0
=
IB 1
IB 0 <
IB 1
IB 0 > IB 1
Control system
flowchart
Statement
l i s t
L I B 0
CC0
0
1
0
CC1
0
0
1
Ladder
diagram
RLO
1
1
0
L I B 1
< = F
=
Q 1
5
I B 1
Q
Cl1
5

Advertisement

Table of Contents
loading

Table of Contents