Chapter 7 Second Development Platform VP3000
358
API Instruction code Operand Function
138 D TANH P S, D
Binary floating-point number hyperbolic
tangent operation
Type
Operand
Bit devices Word devices
16-bit instruction
- - - -
32-bit instruction (9 steps)
DTANH
Continuous
execution
type
DTANHP
Pulse
execution
type
Associated flag: none
X Y M K H KnX KnY KnM T C D
S
D
Caution for using operand
See the specification of each model for the scope of device’s usage.
Description
S: source value (binary floating-point number)
D: operation result of hyperbolic tangent
tanh value= (e
s
- e
-s
) / (e
s
+ e
-s
)
Example
When X0 = ON, designate the binary floating-point number (D1, D0) to find the hyperbolic
tangent value and stores in (D11, D10). The content is binary floating-point number.
X0
DTANH D0 D10