Comparison operations
V1
V2
! =
F
Q
Q 3.0
L
I B19
L IB20
! = F
= Q 3.0
IB19
IB20 Q 3.0
IB19
IB20
C1
C2
! =
F
Q
not equal to ACCU-2-L.
in the list of operations.
ACCU-2-H and ACCU-1-H are not involved in the operation
for a 16-bit fixed point comparison.
In a 32-bit fixed point comparison (! = D) and floating point
comparison (! = G) the entire contents of ACCU 1 and
ACCU 2 (32 bits) are compared with each other.
During the comparison, the numerical representation of the
operands is taken into account, i.e. the contents of ACCU-1-L
The first operand is compared with the second operand
by the comparison operation. The RLO of the comparison
is binary.
Q 3.0
=
V1 V2
=
IB19 IB20
The condition codes CC1 and CC0 are set as described
RLO = "0": comparison is not satisfied, when ACCU-1-L is
Logical/circuit diagram
STEP 5 representation
Ladder Control system
Statement
list
Compare for equal to
RLO = "1": comparison is satisfied if ACCU-1-L = ACCU-2-L
diagram flowchart
and ACCU-2-L are interpreted here as a fixed point number.
Programming Examples in the STL, LAD and CSF Methods of Representation
CPU 948 Programming Guide
C79000-G8576-C848-04
3 - 47