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

Page 504

Advertising
background image

L-force | PLC Designer

IEC Operators and additional norm extending functions

502

DMS 3.2 EN 02/2011 TD29



9.10.12

EXPT

PLC Designer IEC operator: Exponentiation of a variable with another variable:

OUT = IN1IN2.

IN1 and IN2 can be type BYTE, WORD, DWORD, INT, DINT, REAL, SINT, USINT, UINT,
UDINT, OUT must be type REAL.

Example in IL:

LD 7

EXPT 2

ST var1 (* Result is 49 *)

Example in ST:

var1 := EXPT(7,2);

Example in FBD:

Advertising