546 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 15 Advanced Math Instructions (LN, LOG, XPY)
Natural Log (LN)
The LN instruction takes the natural log of the Source and stores the result in the
Destination.
Operands:
Relay Ladder
Structured Text
Use LN as a function. This function computes the natural log of source and stores
the result in dest.
See Structured Text Programming
for information on the syntax of expressions
within structured text.
Function Block
FBD_MATH_ADVANCED Structure
Operand Type Format Description
Source SINT
INT
DINT
REAL
Immediate
Tag
Find the natural log of this value
Destination SINT
INT
DINT
REAL
Tag Tag to store the result
Operand Type Format Description
LN tag FBD_MATH_ADVANCED Structure LN structure
Input Parameter Data Type Description
EnableIn BOOL Enable input. If cleared, the instruction does not execute and outputs are not updated.
Default is set.
Source REAL Input to math instruction.
Valid = any float
Output Parameter Data Type Description
EnableOut BOOL The instruction produced a valid result.