When this instruction is executed then it will calculate X to the power of Y and stores the result in the destination.
Example
Equation: N7:230 = 4 ** 3
Ladder Logic Solution
Example
Equation: F8:230 = F8:231 ** 5; where F8:231 = -5
Ladder Logic Solution
Note
XPY uses the following algorithm: XPY = Y ** (log (X)).
If any intermediate overflow is generated or an invalid source is detected the minor error bit will be set. This error should be cleared to avoid a major error.