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