Delta AS Series Programming Manual page 852

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

API
Instruction code
1513
FEXP
Device
X
Y
M
S
D
Data
type
S
D
Symbol
Explanation
1.
This function calculates the value of the number e raised to the power in S. Exponentiation involves two numbers,
the base e which represents 2.71828, and the exponent in S.
2.
EXP[D+1, D]=[S+1, S].
3.
The number in S can be a positive number or a negative number. The device specified by D should be a 32-bit
register, and the number in the device specified by S should be a floating-point number.
The value in the register specified by D is e
4.
5.
If the absolute value of the conversion result is larger than the value that can be represented by floating-point
numbers, the value in the register specified by D is 16#7F800000, and SM602 is ON.
6.
If the operation result stored in D is 0, SM600 is ON.
Example
When X0.0 is ON, the DFLT instruction converts the value in (D1, D0) into a floating-point number, and stores the
1.
conversion result in (D11, D10).
When X0.1 is ON, the FEXP instruction performs the exponentiation with the value in (D11, D10), and stores the
2.
floating-point number result in (D21, D20).
Operand
P
S, D
S
T
C
HC
Pulse instruction
S : Source value (exponent)
Device where the operation result is
D :
stored
(e is 2.71828, and S represents the source value).
S
Ch ap te r 6 Ap pl ie d Instruc ti ons
Exponentiation of a floating-point number
D
FR
SM
SR
16-bit instruction
AS
-
Function
E
K
16#
"$"
F
32-bit instruction
AS
6 - 5 7 3
6_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents