EXPT (exponent)
The EXPT instruction raises the value of IN (base) to the power of EXP (exponent) and outputs the Real result of the operation.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the Micro810, L20E, L50E, and L70E controllers.
EXPT

Parameter | Parameter Type | Data Type | Description |
---|---|---|---|
EN | Input | BOOL | When set to true, the instruction is enabled.
|
IN | Input | REAL | Any signed Real value. |
EXP | Input | DINT | Integer exponent. |
EXPT | Output | REAL | The Real value of IN to the power of EXP. |
ENO | Output | BOOL | Enables output. Applies to ladder diagram programs. |
EXPT examples
EXPT function block diagram example

EXPT ladder diagram example

EXPT structured text example

(* ST Equivalence: *) tb_size := ANY_TO_DINT (EXPT (2.0, range) );
Results

Provide Feedback