AH500 Programming Manual 
6-13 
API 
Instruction code  Operand 
Function 
0024~ 
0029 
D
FAND※ 
 
S
1
, S
2
 
Comparing the floating-point 
numbers 
Device
X  Y  M  S  T  C  HC  D  L  SM  SR  E  PR  K  16#
“$”  DF 
 
Pulse instruction  32-bit instruction (5-7 steps)  64-bit instruction (5-7 steps)
 
Symbol: 
 
Taking FAND= and DFAND= for example 
S
1
 
: 
Data source 1  Double word/Long word 
S
2
 
: 
Data source 2  Double word/Long word 
Explanation: 
1.  The instructions are used to compare the value in S
1
 with that in S
2
, and the values 
compared are floating-point numbers. Take the instruction FAND= for example. When the 
comparison result is that the value in S
1
 is equal to that in S
2
, the condition of the instruction 
is met. When the comparison result is that the value in S
1
 is not equal to that in S
2
, the 
condition of the instruction is not met. 
number 
instruction   
instruction   
Comparison operation result 
0024 
FAND=  DFAND=  S
1
=S
2
 
S
1
≠S
2
 
0025 
FAND<>  DFAND<> 
S
1
≠S
2
 
S
1
=S
2
 
0026 
FAND>  DFAND>  S
1
>S
2
  S
1
≦S
2
 
0027 
FAND>=  DFAND>=  S
1
≧S
2
  S
1
<S
2
 
0028 
FAND<  DFAND<  S
1
<S
2
  S
1
≧S
2
 
0029 
FAND<=  DFAND<=  S
1
≦S
2
  S
1
>S
2
 
Example: 
Take the instruction FAND=  for example. When X1.0 is ON and the value in D1 is equal to that in 
D2, Y1.0 is ON.
 
 
Additional remark: 
1.  If the value in S
1
 or S
2
 exceeds the range of values which can be represented by the 
floating-point numbers, the contact is OFF, SM is ON, and the error code in SR0 is 16#2013.