Skip to main content

Operator: LOG

The IEC operator yields the base-10 logarithm of a number.

The input variable can be any numeric basic data type, but the output variable must be the data type REAL or LREAL.

Example 139. Examples

Result in q: 2.49762

ST

q := LOG(314.5);

FBD

_cds_img_log.png