X to the Power of Y (EXPT)
    The EXPT instruction takes Source A (X) to the power of Source B (Y) and stores the result in the Destination. If Source A (X) is negative, Source B (Y) must be a non-fractional value or a minor fault will occur.
Available Languages
Ladder Diagram

Operands
        
    
    
     IMPORTANT: 
    Unexpected operation may occur if:
          
- Output tag operands are overwritten.
- Members of a structure operand are overwritten.
- Except when specified, structure operands are shared by multiple instructions.
There are data conversion rules for mixing numeric data types within an instruction. See Data conversions.
Ladder Diagram
| Operand | Data Type | Format | Description | 
|---|---|---|---|
| Source A | SINT INT DINT LINT USINT UINT UDINT ULINT REAL LREAL | immediate tag | value to exponentiate | 
| Source B | SINT INT DINT LINT USINT UINT UDINT ULINT REAL LREAL | immediate tag | exponent | 
| Dest | SINT INT DINT LINT USINT UINT UDINT ULINT REAL LREAL | tag | Tag to store the result of the instruction. | 
Affects Math Status Flags
Conditional
Major/Minor Faults
None specific to this instruction. See Index through arrays for array-indexing faults.
Execution
Ladder Diagram
| Condition/State | Action Taken | 
|---|---|
| Prescan  | N/A. | 
| Rung-condition-in is false. | Set Rung-condition-out to Rung-condition-in. | 
| Rung-condition-in is true. | Set Rung-condition-out to Rung-condition-in. Dest = value of Source X to the power of Source Y. | 
| Postscan | N/A. | 
Examples
Ladder Diagram

Provide Feedback