AH500 Programming Manual 
6-336 
API 
Instruction code
Operand 
Function 
1508    FTANH  P 
S, D 
Hyperbolic tangent of the 
floating-point number   
Device
X  Y  M  S  T  C  HC  D  L  SM  SR  E  PR  K  16#  “$”  DF 
16-bit instruction (5-6 steps) 
AH500  AH500  - 
Symbol: 
S
:
Source value  Double word 
D
:
Hyperbolic tangent value  Double word 
Explanation:   
1.  Hyperbolic tangent value=(e
s
-e
-s
)/(e
s
+e
-s
). 
2.  If the conversion result is 0, SM600 is ON. 
Example:   
1.  When X0.0 is ON, the hyperbolic tangent of the floating-point number in (D1, D0) is stored in 
(D11, D10). The hyperbolic tangent value in (D11, D10) is the floating-point number. 
 
Single-precision 
floating-point number
H
yperbolic tangent value
D1 D0
D11 D10
S
D
 
2.  If the conversion result is 0, SM600 is ON. 
Additional remark: 
If the value in S exceeds the range of values which can be represented by the floating-point 
numbers, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2013.