EasyManuals Logo
Home>Allen-Bradley>Controller>Logix5000

Allen-Bradley Logix5000 Reference Manual

Allen-Bradley Logix5000
708 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #289 background imageLoading...
Page #289 background image
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 289
Compute/Math Instructions (CPT, ADD, SUB, MUL, DIV, MOD, SQR, SQRT, NEG, ABS) Chapter 6
Absolute Value (ABS)
The ABS instruction takes the absolute value of the Source and places the result
in the Destination.
Operands:
Relay Ladder
Structured Text
Use ABS as a function. This expression computes the absolute value of source and
stores the result in dest.
See Structured Text Programming
for information on the syntax of expressions
within structured text.
Function Block
FBD_MATH_ADVANCED Structure
Operand Type Format Description
Source SINT
INT
DINT
REAL
Immediate Tag Value of which to take the absolute value
A SINT or INT tag converts to a DINT value by sign-extension.
Destination SINT
INT
DINT
REAL
Tag Tag to store the result
Operand Type Format Description
ABS tag FBD_MATH_ADVANCED structure ABS structure
dest := ABS(source);
Input Parameter Data Type Description
EnableIn BOOL Enable input. If cleared, the instruction does not execute and outputs are not updated.
Default is set.
Source REAL Value of which to take the absolute value.
Valid = any float
Output Parameter Data Type Description
EnableOut BOOL The instruction produced a valid result.
Dest REAL Result of the math instruction. Arithmetic status flags are set for this output.

Table of Contents

Other manuals for Allen-Bradley Logix5000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Allen-Bradley Logix5000 and is the answer not in the manual?

Allen-Bradley Logix5000 Specifications

General IconGeneral
BrandAllen-Bradley
ModelLogix5000
CategoryController
LanguageEnglish

Related product manuals