[POW_FNCT] Power functions
Function block POW_FNCT calculates the power for a base and an exponent.
POW_FNCT calculates the power value for a natural, binary, decimal, or any base and the exponens configured on the inputs.
The calculation mode [CalcMod] determines the base [Base] in the calculation and thus the type of power function. Input [Base] is configured as the base for calculating in calculation mode 4. The result is provided at the output [Out].
Calculation mode | Power for base | Function | Condition |
|---|---|---|---|
1 | e (Euler's number) | Out = eln | - |
2 | 2 | Out = 2ln | - |
3 | 10 | Out = 10ln | - |
4 | Any | Out = Baseln | Base > 0.0 |
Output [Out] is set to 0.0 if a faulty value is set on one of the inputs [CalcMod], [Base]or [In]. The input [Base] for any base ([CalcMod] = 4) cannot be 0.0 or negative. The maximum permissible real value is set on the output, if the maximum permissible real value is exceeded mathematically when calculating the result.
Error | Cause of fault | Correcting the fault |
|---|---|---|
Result on output: | Impermissible input values: [CalcMod] > 4 For [CalcMod] = 4 | Set permissible input values: For [CalcMod] = 4 |