DVP15MC11T Operation Manual
8.8.18 LN
FC
LN is used to find the natural logarithm of a number and the result is output
to Out.
DVP15MC11T
Parameters
Meaning
Description Valid range
In
Number to
process
Input Number to process
Depends on the data type of
the variable that the input
parameter is connected to.
Out Logarithm Output The natural logarithm of In
Depends on the data type of
the variable that the output
parameter is connected to.
Boolean
Bit string Integer
Real
number
Time, date
String
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In
● ● ● ● ● ● ● ● ● ● ● ● ● ●
Out
●
Note:
The symbol ● indicates that the parameter is allowed to connect to the variable or constant of the data type.
Function Explanation
LN is used to calculate the natural logarithm of the input parameter In, that is the logarithm with e
(e=2.718282) as the base, and the result is output to Out.
8-92