Delta AS Series Programming Manual page 856

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

API
Instruction code
1515
FLN
Device
X
Y
M
S
D
Data
type
S
D
Symbol
Explanation
1.
This instruction calculates the natural logarithm of the operand S in a single-precision floating-point operation.
2.
The value in S only can be a positive value.
D
3.
e
=S.→The value in D=lnS.
4.
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 the floating-point number, and stores the
1.
conversion result in (D11, D10).
When X0.1 is ON, the FLN instruction calculates the natural logarithm of the floating-point number in (D11, D10),
2.
and stores the operation result in (D21, D20).
Operand
P
S, D
S
T
C
HC
Pulse instruction
S : Source value
Device where the operation result is
D :
stored
Ch ap te r 6 Ap pl ie d Instruc ti ons
Natural logarithm of a binary floating-point
D
FR
SM
SR
16-bit instruction
AS
-
Function
number
E
K
16#
"$"
F
32-bit instruction
AS
6 - 5 7 7
6_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents