3. Instructions
546
CS/CJ/NSJ Series Instructions Reference Manual (W474)
=D, <>D, <D, <=D, >D, >=D
Applicable Program Areas
Operands
îš„ Operand Specifications
Flags
Instruction Mnemonic Variations
Function
code
Function
Double-precision Floating-point
Input Comparison
=D
<>D
<D
<=D
>D
>=D
---
335
336
337
338
339
340
These input comparison instructions compare two
double-precision floating point values (64-bit
IEEE754 format) and create an ON execution con-
dition when the comparison condition is true.
Symbol
Double-precision Floating-point Input Comparison
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage OK OK OK OK OK OK
Operand Description Data type Size
S1 Comparison data 1 LREAL 4
S2 Comparison data 2 LREAL 4
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
S1
OK OK OK OK OK OK OK OK OK OK --- --- --- OK --- --- --- ---
S2
Name Label Operation
Error Flag P_ER OFF
Greater Than Flag P_GT • ON if both the exponent and mantissa of the result are 0.
• OFF in all other cases.
Greater Than or Equal Flag P_GE • ON if the absolute value of the result is too large to be expressed as a double-precision (64-bit)
floating-point value.
• OFF in all other cases.
Equal Flag P_EQ Unchanged
Not Equal Flag P_NE • ON if the absolute value of the result is too large to be expressed as a double-precision (64-bit)
floating-point value.
• OFF in all other cases.
Less Than Flag P_LT Unchanged
Less Than or Equal Flag P_LE • ON if the result is negative.
• OFF in all other cases.
Negative Flag P_N Unchanged
Mnemonic
S1
S2
S2: Comparison data 2
LD connection AND connection OR connection
Mnemonic
S1
S2
Mnemonic
S1
S2
S1: Comparison data 1
S2: Comparison data 2
S1: Comparison data 1
S2: Comparison data 2
S1: Comparison data 1