Ladder Logic Square Root Function

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

SQR - Square Root

When rung conditions are true, this output instruction calculates the square root of the absolute value of the source and places the rounded result in the destination.

This instruction calculates the square root of a negative number without overflow or faults.

Example

Equation: F8:90 = SQR(-25)

Ladder Logic Solution

Computing the square root of (-25)

SQR - SLC 500 Beginners Guide

Example

Equation: F8:90 = SQR(-25)

Ladder Logic Solution

Computing the square root of (-25)

SQR - SLC 500 Beginners Guide

Note

  • SQR instruction calculates the square root of a negative number without causing any overflow or fault.

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