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
EXPT
EXPT (exponent) parameters
Parameter
Parameter Type
Data Type
Description
EN
Input
BOOL
When set to true, the instruction is enabled.
  • TRUE: Execute the current computation.
  • FALSE: There is no computation.
Applies to ladder diagram programs.
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 function block diagram example
EXPT ladder diagram example
EXPT ladder diagram example
EXPT structured text example
EXPT structured text example
(* ST Equivalence: *) tb_size := ANY_TO_DINT (EXPT (2.0, range) );
Results
Results
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal