Ladder Logic Power Instruction

KronoTech

PLC

Ladder Logic

Basic

Counters

Timer

Arithmetic

Comparison

Functions

ABS

CLR

CPT

SCL

SCP

SQR

SWP

XPY

Trig Functions

RSLogix 5000

Structured Text

HMI

Instruments

XPY - X to the Power of Y

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

XPY - SLC 500 Beginners Guide

Example

Equation: F8:230 = F8:231 ** 5; where F8:231 = -5

Ladder Logic Solution

XPY - SLC 500 Beginners Guide

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.

Quick Links

PLC Languages

Ladder Logic
Function Block
Structure Text
SFC
Mnemonic

Ladder Logic

Basic
Counters
Timer
Arithmetic
Comparison
Functions
Trig Functions

Instruments

Switches

HMI

Advantages
Alarms
Trends

Other

Bottle Application