Attention

IronPLC supports IEC 61131-3 Structured Text excluding I/O mapping.

LOG

Returns the base-10 logarithm of a numeric input.

IEC 61131-3

Section 2.5.1.5.2

Support

Supported

Signatures

#

Input (IN)

Return Type

Support

1

REAL

REAL

Supported

2

LREAL

LREAL

Supported

Description

Returns the common logarithm (base 10) of IN. The input must be positive; the result of LOG applied to zero or a negative value is undefined.

Example

See Also

  • LN — natural logarithm

  • EXP — natural exponential