6 BASIC INSTRUCTIONS
6.1 Comparison Operation Instructions
193
6
Floating-point data comparisons (double precision)
LDED, ANDED, ORED
• The 64-bit floating decimal point real number from device designated by (S1) and 64-bit floating decimal point real number
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:
• When an input value is set using a programming tool, a rounding error may occur. For precautions, refer to Page 89
Precautions.
• In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
*1 There are CPU modules that will not result in an operation error if -0 is specified. For details, refer to Page 87 Using single/double-
precision real number data.
(S1), (S2): Data for comparison or head number of the devices where the data for comparison is stored (real number)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
E
Others
Bit Word Bit Word
(S1)
(S2)
Instruction symbol Condition Comparison
operation result
Instruction symbol Condition Comparison
operation result
ED= (S1)=(S2) Continuity ED= (S1)(S2) Non-continuity
ED<> (S1)(S2) ED<> (S1)=(S2)
ED> (S1)>(S2) ED> (S1)(S2)
ED<= (S1)(S2) ED<= (S1)>(S2)
ED< (S1)<(S2) ED< (S1)(S2)
ED>= (S1)(S2) ED>= (S1)<(S2)
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4140 The specified device value is not within the following range:
0, 2
-1022
| Specified device value | < 2
1024
The specified device value is -0, unnormalized number, nonnumeric, and .
*1
Universal
LCPU
Basic
High
performance
Process
Redundant
LD
AND
OR
S1
S1 S2
S1 S2
S2
Command
Command Command
/ED /ED /E /E /Eindicates an instruction symbol of ED