E L C P r o g r a m m i n g M a n u a l
F o r m o r e i n f o r m a t i o n v i s i t :
w w w. e a t o n . c o m
M N 0 5 0 0 3 0 0 3 E
3 - 3 2 6
API Mnemonic
Operands
Function
138
D TANH P
S, D
Hyperbolic Tangent
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K
H KnX
KnY
KnM KnS T
C
D
E
F
S
*
*
*
D
*
DTANH, DTANHP: 9
steps
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32
16
P
32
16
P
32
16
P
32
16 P 32 16 P
Operands:
S
: Source value (binary floating point)
D
: TANH result
Description:
1. See the specifications of each model for their range of use.
2. Flags: M1020 (zero flag); M1021 (borrow flag); M1022 (carry flag)
3. TANH
S
=(e
s
-e
-s
)/(e
s
+e
-s
) . The result is stored in
D
.
Program Example:
1. When X0 = On, obtain the TANH of binary floating point value (D1, D0) and store the binary
floating point result in (D11, D10).
DTANH
X0
D0
D10
D1
D0
D11
D10
TANH value
binary floating point
binary floating point
2. If the absolute value of the result
>
maximum available floating point value, the carry flag
M1022 = On.
3. If the absolute value of the result
<
minimum available floating point value, the borrow flag
M1021 = On.
4. If the result = 0, the zero flag M1020 = On.
Summary of Contents for ELC-PB
Page 1: ......
Page 5: ...For more information visit www eaton com MN05003003E iv...
Page 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Page 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Page 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Page 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...