L9E_LOG: Base 10 Logarithm
(Original Document)
Naming
Name in LL984 Editor
Function Block Name
name of legacy 984 instruction
name in other tools and editors like:
  • Type Library Browser
  • Data Editor
  • Animation Tables
  • Search Results
Function Description
The L9E_LOG DFB performs a base 10 logarithm function on a %MW or a %IW value and stores the result.
Representation
Parameters
Input Pin
Name
Data Type
Address Range
Meaning
Top
ENABLE
ON = enables base 10 log operation
Node
Node Type
Name
Data Type
Address Range
Meaning
Top
IN
VALUE1
ARRAY[1...2] OF UINT
%IW, %MW
source value
VALUE1 stores the value on which the base 10 log calculation will be performed.
If you specify a %MW the source value may be in the range of 0..99,999,999.
If you specify a %IW the source value may be in the range of 0..9,999
Middle
IN/OUT
RESULT
UINT
%MW
result
RESULT contains a single %MW word where the value of the base 10 log calculation is stored.
RESULT is stored in the fixed-decimal format: 1.234.and is truncated after the third decimal position. The largest result that can be calculated is 7.999, which would be posted as 7999.
Output Pin
Name
Data Type
Address Range
Meaning
Top
OUT
BOOL
ON = operation successful
Middle
ERR
BOOL
ON = an event or value out of range