6-9
ED=,ED<>,ED>,ED<=,ED<,ED>=
1
2
3
4
4
6
7
8
6.1 Comparison Operation Instructions
6.1.4 Floating decimal point data comparisons (Double precision) (ED=,ED<>,ED>,ED<=,ED<,ED>=)
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
• The value of the specified device is not in the following range: (Error code: 4140)
0,2
-1022
| value of specified device | < 2
1024
• The value of the designated device is 0. (Error code: 4140)
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]
Step
Instruction
Device
Step
Instruction
Device
Step
Instruction
Device
Step
Instruction
Device