EXPTΒΆ
The IEC Operators and additional, norm-extending \ functions Exponentiation of a variable with another variable:
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: