POW
Raises Value to Power and stores the result in Result.
Ladder Representation
Block Structure
| Variable Type | Name | Data Type | Description |
|---|---|---|---|
| VAR_INPUT | EN | BOOL | Block enabling. |
| VAR_INPUT | Value | REAL | Operation base. |
| VAR_INPUT | Power | REAL | Operation power. |
| VAR_OUTPUT | Done | BOOL | End of operation. |
| VAR_OUTPUT | Result | REAL | Variable that stores the operation result. |
Operation
When EN is TRUE, the block writes the value of Value raised to Power to Result.
If the operation completes without errors, Done is set. If an operation error occurs, Done remains FALSE and Result keeps its previous value.
When EN is FALSE, Result remains unchanged and Done remains FALSE.
Execution Flowchart

Examples
- Ladder Example
- Structured Text Example
This example raises VALUE to POWER and stores the final result in RESULT. The block completes successfully and activates Done.
This example raises VALUE to POWER and stores the final result in RESULT. The block completes successfully and activates Done.
This example raises VALUE to POWER and stores the final result in RESULT. Because the result is greater than the maximum value supported by REAL, the block reports an error and disables Done.
The following Structured Text code applies the same logic shown in the Ladder example.
VAR
VALUE : REAL := 16;
POWER : REAL := -40;
RESULT : REAL;
END_VAR
RESULT := FB_POW(
EN:=DI1,
Value:=VALUE,
Power:=POWER,
Done=>DO1);