Attention
IronPLC can only run very simple programs. The steps described are accurate but many language features are not yet supported.
LN¶
Returns the natural logarithm of a numeric input.
IEC 61131-3 |
Section 2.5.1.5.2 |
Support |
Not yet supported |
Signatures¶
# |
Input (IN) |
Return Type |
Support |
|---|---|---|---|
1 |
|
|
Not yet supported |
2 |
|
|
Not yet supported |
Description¶
Returns the natural logarithm (base e) of IN. The input must be
positive; the result of LN applied to zero or a negative value
is undefined.
Example¶
result := LN(REAL#2.718282); (* result ~ 1.0 *)
value := LN(LREAL#1.0); (* value = 0.0 *)