3 . I n s t r u c t i o n S e t
M N 0 5 0 0 3 0 0 3 E 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
3 - 3 2 5
API Mnemonic
Operands
Function
137
D COSH P
S, D
Hyperbolic Cosine
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
*
DCOSH, DCOSHP: 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
: COSH result
Description:
1. Flags: M1020 (zero flag); M1021 (borrow flag); M1022 (carry flag)
2. COSH
S
=(e
s
+e
-s
)/2. The result is stored in
D
.
Program Example:
1. When X0 = On, obtain the COSH of binary floating point value (D1, D0) and store the binary
floating point result in (D11, D10).
DCOSH
X0
D0
D10
D1
D0
D11
D10
COSH 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...