Operator ‘LOG’¶
This IEC operator yields the base-10 logarithm of a number.
The input variable can be any numeric basic data type, but the output variable must be the data type REAL or LREAL.
Examples
Result in q: 2.49762
ST:
q := LOG(314.5);
FBD: