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