178
ED=, ED<>, ED>, ED<=, ED<, ED>=
Program Example
(1) The following program compares 64-bit floating decimal point real number data at D0 to D3 with 64-bit floating decimal
point real number data at D4 to D7.
[Ladder Mode]
[List Mode]
(2) The following program compares the floating decimal point real number 1.23 with the 64-bit floating decimal point real
number data at D4 to D7.
[Ladder Mode]
[List Mode]
(3) The following program compares 64-bit floating decimal point real number data at D0 to D3 with 64-bit floating decimal
point real number data at D4 to D7.
[Ladder Mode]
[List Mode]
(4) The following program compares the 64-bit floating decimal point data at D0 to D3 with the floating decimal point real
number 1.23.
[Ladder Mode]
[List Mode]
Caution
(1) Since the number of digits of the real number that can be input by Programing Tool is up to 15 digits, the comparison with
the real number whose number of significant digits is 16 or more cannot be made by the instruction shown in this section.
When judging match/mismatch with the real number whose significant digits is 16 or more by the instruction in this
section, compare it with the approximate values of the real number to be compared and judge by the sizes.
When judging the match of E1.2345678910 (Number of significant digits is 16) and the double-
precision floating-point data.
Step
Instruction
Device
Step
Instruction
Device
Step
Instruction
Device
Step
Instruction
Device
Example
E
1
.
23
4
567890123
4
56
+
10
E
1
.
23
4
567890123
4
5
+
10
E
1
.
23
4
567890123
4
6
+
10
W
hether
D0
to
D3
i
s
w
i
th
i
n
th
i
s
range
i
s
chec
k
ed
.(
Va
l
ues
on
boundar
i
es
are
exc
l
uded
.)