EasyManua.ls Logo

Siemens Simatic S5-101U - Comparison (Relational) Operations; Comparing for Equal to; Comparing for Not Equal to

Siemens Simatic S5-101U
43 pages
Print Icon
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...
5.1.6
Comparison (relational) operations
Comparing for equal to
The operand first specified is compared
The numerical representation of the
with the subsequent operation in keeping
operands is taken into account,
i.e.
with the comparison function. The result
the contents of the accumulators are
of the comparison is flagged by condition
interpeted as being fixed-point numbers.
codes
CC0
and
CC1.
After a comparison for equal to, a jump
can be made to a label
(+
127
words)
with the jump operation
JZ
=
. ..
(if
RLO
=
1).
Original
IB0
IB1
Q
1.0
Comparing for not equal to
STEP
5
representation
for
IBO=IBl
IB
0
IB
1
IB
0
>
IB
1
The operand first specified is compared
The numerical representation of the
with the subsequent operand in keeping
operands is taken into account, i.e.
with the comparison function. The result
the contents of the accumulators are
of the comparison is flagged by condition
interpreted as being fixed-point numbers.
codes
CC0
and
CC1.
Following a comparison for not equal
to, a jump can be made to a label
(+
127
words) with the jump operation
JN
=
. .
.
(if
RLO
=
1).
Control system
flowchart
Statement
list
L
IB0
CC1
0
0
1
Original
IB0
IB1
Q1
l
Ladder
diagram
L
IB1
!
=F
=
(21.0
CC0
0
1
0
STEP
5
representat~on
IB1
IB1
RL 0
1
0
0
RLO
0
1
1
for
IB
0
=
IB
1
IB
0
c
IB
1
IB
0
>
IB
1
Control system
flowchart
Statement
list
L
180
Ladder
diagram
CC1
0
0
1
L
IB1
><F
=
Q1.l
CC0
0
1
0
I
B1
I
B
1

Table of Contents

Related product manuals