SIS function blocks > SIS Math Blocks > Logic Solver Calculation function block > Expressions in DeltaV SIS Software > Functions in Logic Solver Expressions

EXPT function

EXPT(x,y). Raise x (operand one) to the power of y (operand two). EXPT (x) does not recognize integral floating-point values greater than 264, such as 1.0E100. If x equals zero and y equals zero then EXPT returns a value of one (1). If x is less than zero and y is not an integer, EXPT returns a value of zero (0)

Syntax:

'external reference' := EXPT(Integer value, Integer value);
'external reference' := EXPT(Real value, Real value);

Example:

VAR
   T63; T64; T65; T17; T18;  (* Temporary values *)
END_VAR;
T63 := 5;
T64 := 2;
T65 := 5;
T17 := EXPT(T63, T64);
T18 := EXPT(T63,T65);

The above example shows T63 set to the value of 5 and T64 set to the value of 2 and T65 set to the value of 5. T17 is set to the result of EXPT(T63, T64), which is a test of 5 raised to the power of 2. The result is 25. T18 is set to the result of EXPT(T63, T65), which is 3125.