EasyManua.ls Logo

Inovance H3U Series - Binary Floating-Point Natural Logarithm

Inovance H3U Series
737 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
143
4
4 Instructions 4.4.5 Exponent Operations
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.
Function
Exponentiation is performed on the mathematical constant e (approximately equal to 2.71828). The
exponent is a binary oating-point number.
S is the binary oating-point variable used as the exponent.
D is the unit that stores the result of exponentiation.
Note: An error occurs when the result exceeds the range [2
-126
, 2
128
). The error code is K6706 and stored in
D8067. The error ag M8067 is set to ON to identify this error.
Example:
X0
ǒDEXP D0 D2Ǔ
S D
X1
ǒDEXPP D10 D12Ǔ
When X0 = ON, exponentiation is performed on the mathematical
constant e. The exponent is the binary floating-point number in
(D1, D0). The result is stored in (D3, D2). e(D1, D0) -> (D3, D2).
Because loge2128 = 88.7, when the value in (D1, D0) is greater
than 88.7, then D8067 = K6706 and M8067 = ON.
LOGE: Binary oating-point natural logarithm operation
Overview
The LOGE instruction calculates the natural logarithm of a binary oating-point number with the
mathematical constant e (approximately equal to 2.71828) as the base.
LOGE S D
Binary oating-point
natural logarithm
operation
Applicable model:
H3U
S Data source
Binary oating-point variable whose natural logarithm is
to be calculated
32-bit instruction
(9 steps)
DLOGE:
Continuous
execution
DLOGEP: Pulse
execution
D
Operation
result
Unit that stores the calculated natural logarithm

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals