Log base 10 of x (operand one). LOG (x) returns the logarithm base 10 of x when successful. If x is not positive, LOG returns a zero value and BAD status.
Syntax:
'external reference' := LOG(Real value);
Example:
VAR T63; T64; T17; T18; (* Temporary values *) END_VAR; T63 := .5; T64 := 15.803; T17 := LOG(T63); T18 := LOG(T64);
The above example shows T63 set to the value of .5 and T64 set to the value of 15.803. T17 is set to the result of LOG(T63), which is -0.301029995664 and T18 is set to the result of LOG(T64), which is 1.198739540104.