Attention

IronPLC can only run very simple programs. The steps described are accurate but many language features are not yet supported.

EXP

Returns the natural exponential of a numeric input.

IEC 61131-3

Section 2.5.1.5.2

Support

Not yet supported

Signatures

#

Input (IN)

Return Type

Support

1

REAL

REAL

Not yet supported

2

LREAL

LREAL

Not yet supported

Description

Returns e raised to the power of IN, where e is Euler’s number (approximately 2.71828). This is the inverse of the LN function.

Example

result := EXP(REAL#1.0);   (* result ~ 2.718282 *)
value := EXP(LREAL#0.0);   (* value = 1.0 *)

See Also

  • LN — natural logarithm

  • EXPT — exponentiation