LOGΒΆ
The IEC Operators and additional, norm-extending \ functions Returns the logarithm of a number in base 10.
IN can be type BYTE, WORD, DWORD, INT, DINT, REAL, SINT, USINT, UINT, UDINT.
OUT must be type REAL.
Example in IL:
LD 314.5
LOG
ST q (* Result is 2.49762 *)
Example in ST:
q:=LOG(314.5);
Example in FBD: