Chapter 5
Arithmetic instructions
LOG
84
LOG yields the logarithm (base 10) of a Real value.
Arguments
Parameter
Parameter
Type
EN
Input
IN
Input
LOG
Output
ENO
Output
LOG function language examples
Function block diagram
Ladder diagram
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
Data Type
Description
BOOL
Function enable.
When EN = TRUE, execute current logarithm computation.
When EN = FALSE, there is no computation.
REAL
Must be greater than zero.
REAL
Logarithm (base 10) of the input value. The returned result is -3.4E+38
for a zero IN value and negative IN value.
BOOL
Enable out.