404
7 APPLICATION INSTRUCTION
7.7 Real Number Instruction
7.7 Real Number Instruction
Comparing single-precision real numbers
LDE, ANDE, ORE
These instructions perform a comparison operation between the single-precision real number in the device specified by (s1)
and the single-precision real number in the device specified by (s2). (Devices are used as a normally open contact.)
■Descriptions, ranges, and data types
■Applicable devices
• These instructions perform a comparison operation between the single-precision real number in the device specified by
(s1) and the single-precision real number in the device specified by (s2). (Devices are used as a normally open contact.)
• The following table lists the comparison operation results of each instruction.
• When an input value is set from the engineering tool, a rounding error may occur.
Ladder diagram Structured text
(E=, E<>, E>, E<=, E<, or E>= enters .)
Not supported
Operand Description Range Data type Data type (label)
(s1) Comparison data or the head device number where the
comparison data is stored
0, 2
-126
<|(s1)|<2
128
Single-precision real number Single-precision real number
(s2) Comparison data or the head device number where the
comparison data is stored
0, 2
-126
<|(s2)|<2
128
Single-precision real number Single-precision real number
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(s1)
(s2)
Instruction symbol Condition Result Instruction symbol Condition Result
E= (s1)=(s2) Conductive state E= (s1)(s2) Non-conductive state
E<> (s1)(s2) E<> (s1)=(s2)
E> (s1)>(s2) E> (s1)<(s2)
E<= (s1)<(s2) E<= (s1)>(s2)
E< (s1)<(s2) E< (s1)>(s2)
E>= (s1)>(s2) E>= (s1)<(s2)
LD
AND
OR
(s1) (s2)
(s1) (s2)
(s1) (s2)