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.)
Ladder diagram
LD
AND
OR
(E=, E<>, E>, E<=, E<, or E>= enters .)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s1)
Comparison data or the head device number where the
comparison data is stored
(s2)
Comparison data or the head device number where the
comparison data is stored
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB
(s1)
(s2)
Processing details
• 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.
Instruction symbol
E=
E<>
E>
E<=
E<
E>=
• When an input value is set from the engineering tool, a rounding error may occur.
7 APPLICATION INSTRUCTION
404
7.7 Real Number Instruction
(s1)
(s2)
(s1)
(s2)
(s1)
(s2)
Word
U\G T, ST,
T, ST, C, D,
C, LC
W, SD, SW, R
Condition
Result
(s1)=(s2)
Conductive state
(s1)(s2)
(s1)>(s2)
(s1)<(s2)
(s1)<(s2)
(s1)>(s2)
Structured text
Not supported
Range
Data type
-126
128
0, 2
<|(s1)|<2
Single-precision real number
-126
128
0, 2
<|(s2)|<2
Single-precision real number
Double word Indirect
U\G
Z
LC
LZ
Instruction symbol
E=
E<>
E>
E<=
E<
E>=
Data type (label)
Single-precision real number
Single-precision real number
Constant
specification
K, H
E
Condition
Result
(s1)(s2)
Non-conductive state
(s1)=(s2)
(s1)<(s2)
(s1)>(s2)
(s1)>(s2)
(s1)<(s2)
Others
$