Floating-point data comparisons (single precision)
LDE, ANDE, ORE
Ver.
High
Basic
Process
Redundant Universal
performance
• Basic model QCPU: The serial number (first five digits) is "04122" or later.
LD
AND
OR
(S1), (S2): Data for comparison or head number of the devices where the data for comparison is stored (real number)
Setting
Internal device
data
Bit
Word
(S1)
(S2)
*1 Applicable for the Universal model QCPU, LCPU.
Processing details
• The 32-bit floating decimal point data from device designated by (S1) and 32-bit floating decimal point data from device
designated by (S2) as a normally-open contact, and performs comparison operation.
• The results of the comparison operations for the individual instructions are as follows:
Instruction symbol
Condition
E=
(S1)=(S2)
E<>
(S1)(S2)
E>
(S1)>(S2)
E<=
(S1)(S2)
E<
(S1)<(S2)
E>=
(S1)(S2)
Note that use of the E= instruction can on occasion result in situations where errors cause the two values not
to be equal.
Example
• When an input value is set using a programming tool, a rounding error may occur. For precautions, refer to Page 89
Precautions.
LCPU
indicates an instruction symbol of
Command
Command Command
R, ZR
J\
Bit
Comparison
operation result
Continuity
X0
EMOV E1.23 D0
E*
D0
E4.56 D2
E/
D2
E4.56 D2
E
D0
D2
Two values may not be equal.
E
/
E
/
E
S1
S2
S1
S2
S1
S2
U\G
Zn
Word
*1
*1
Instruction symbol
Condition
E=
(S1)(S2)
E<>
(S1)=(S2)
E>
(S1)(S2)
E<=
(S1)>(S2)
E<
(S1)(S2)
E>=
(S1)<(S2)
M0
6.1 Comparison Operation Instructions
.
/
E
/
E
/
E
Constant
Others
E
Comparison
operation result
Non-continuity
6 BASIC INSTRUCTIONS
6
191