Delta Electronics AH500 Manual page 217

Motion control module
Hide thumbs Also See for AH500:
Table of Contents

Advertisement

A H 5 00 M o ti on C on tr ol M od ul e Ma nua l
API
Instruction code
138
D
TANH
Device
X
Y
M
S
D
 S: Source value (binary floating-point value); D: Hyperbolic tangent
E xp la nat io n
 Hyperbolic tangent value=(e
 When X0.0 is ON, the hyperbolic tangent of the binary floating-point
E xa mple
A dditio nal
re mark
Operand
P
S, D
S
K
16#
F
Pulse instruction 16-bit instruction 32-bit instruction (6 steps)
value
number in (D1, D0) is stored in (D11, D10).
X0.0
D 1
S
D
D 11
If the absolute value of a conversion result is greater than the maximum
floating-point value available, a carry flag will be ON.
If the absolute value of a conversion reuslt is less than the minimum
floating-point value available, a borrow flag will be ON.
If a converseion result is 0, a zero flag will be ON.
SM1064 is the zero flag in an Ox motion subroutine, and SM968 is the
zero flag in O100.
SM1065 is the borrow flag in an Ox motion subroutine, and SM969 is
the borrow flag in O100.
SM1066 is the carry flag in an Ox motion subroutine, and SM970 is the
carry flag in O100.
Please refer to section 5.3 for more information about performing
operations on floating-point numbers.
Hyperbolic tangent of a
binary floating-point
number
KnM KnS
D
W
s
-s
s
-s
-e
)/(e
+e
)
DTANH
D0
D10
Binary floating- point value
D 0
Hyperbolic tangent v alue
D 10
Binary floating- point value
Function
T
C
V
Z
5 - 1 0 2

Advertisement

Table of Contents
loading

Table of Contents