The Zone of PLC
Popular Articles
·RSLogix 5000 Introduction to Ba
·RSLogix 5000 Ladder Logic Funct
·Introduction - Structured Text
·Programs and Routines in RSLogi
·An Allen Bradley Retentive On-D
·Instruction of PID for PLC Prop
·Introdution of RSLogix 5000
·introduce of Master Control Rel
·RSLogix 5000 Ladder Logic Trigo
·An Allen-Bradley TON Timer
·Instruction of MSG - MeSsaGe
·Constructs - Structured Text
Related Articles
·A Simple Counter Example
·A Simple Timer Example
·An example using bit memory (ol
·introduce of Master Control Rel
·An Allen Bradley Counter
·A Timer Example for control of
·An Allen Bradley Off-Delay Time
·An Allen Bradley Retentive On-D
·An Allen-Bradley TON Timer
·The Four Basic Timer Types
·Instruction of PID for PLC Prop
·Instruction of MSG - MeSsaGe
  Current Position:Home > A-B PLC > Content
RSLogix 5000 Ladder Logic Functions
Source: author  Date: 2011-06-23

Introduction

We have started with PLC Math instructions the next step is to have a look at some of the Math functions. These functions do some specific but rather more frequently used Math functions. Anything done in these functions could be achieved by simple combination of math instructions.

Definition

The following is a list of the Math Functions in SLC 500:

  • CLR - Clear
  • SQR - Square Root
  • SCP - Scale with Parameters
  • SCL - Scale Data
  • ABS - Absolute Value
  • CPT - Compute
  • SWP - Swap
  • XPY - X to the Power of Y

CLR - Clear

Symbol

Clear Instruction

Definition

When Clear instruction is executed it sets all bits of a word to zero. Upon execution of this instruction, all arithmetic status bits are reset

SQR - Square Root

Symbol

Square Root Instruction

Definition

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.

 

SCP - Scale with Parameters

Symbol

Scale with Parameters Instruction

Definition

Produces a scaled output value that has a linear relationship between the input and scaled values. The scaled result is returned to the address indicated by the output parameter.

 

SCL - Scale Data

Symbol

Scale Date Instruction

Definition

Use this instruction to scale data from your analog module and bring it into the limits prescribed by the process variable or another analog module. When rung conditions are true, this instruction multiplies the source by a specified rate. The rounded result is added to an offset value and placed in the destination.

 

ABS - Absolute Value

Symbol

Absolute Value Instruction

Definition

Absolute value |x| of a number x is itself, if x is positive or zero, but if x is negative, then its absolute value |x| is its negation –x, that is, the corresponding positive value. For example, |-1| = 1, but |2| = 2. The absolute value function strips a number of its sign.

 

CPT - Compute

Symbol

Compute Instruction

Definition

When compute is executed then copy, arithmetic, logical, or conversion operation residing in the expression field of this instruction is performed and the result is sent to the destination. The execution time of a Compute instruction is longer than that of a single arithmetic operation and uses more instruction words.

 

SWP - Swap

Symbol

Swap Instruction

Definition

Swaps the low and high bytes of a specified number of words in a bit, integer, ASCII, or string file.

 

XYP - X to the Power of Y

Symbol

X to the Power of Y Instruction

Definition

When this instruction is executed then it will calculate X to the power of Y and stores the result in the destination.


[Add to Favorit] [Refer to] [Comment(Item)] [New User Reg] [Back to Top] Print Close this Window  
Copyright © plcer.com Source:Automating Manufacturing Systems