beautypg.com

L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual

Page 500

background image

L-force | PLC Designer

IEC Operators and additional norm extending functions

498

DMS 3.2 EN 02/2011 TD29

9.10.4

LOG

PLC Designer IEC operator: Returns the logarithm of a number in base 10. IN can be
type BYTE, WORD, DWORD, INT, DINT, REAL, SINT, USINT, UINT, UDINT, OUT must be
type REAL.

Example in IL:

LD 314.5

LOG

ST q (* Result is 2.49762 *)

Example in ST:

q:=LOG(314.5);

Example in FBD:

9.10.5

EXP

PLC Designer IEC operator: Returns the exponential function. IN can be type BYTE,
WORD, DWORD, INT, DINT, REAL, SINT, USINT, UINT, UDINT, OUT must be type REAL.

Example in IL:

LD 2

EXP

ST q (* Result is 7.389056099 *)

Example in ST:

q:=EXP(2);

Example in FBD: