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 #264 background imageLoading...
Page #264 background image
264 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 6 Compute/Math Instructions (CPT, ADD, SUB, MUL, DIV, MOD, SQR, SQRT, NEG, ABS)
Valid Operators
Format Expressions
For each operator that you use in an expression, you have to provide one or two
operands (tags or immediate values). Use the following table to format operators
and operands within an expression.
Operator Description Optimal
+ add DINT, REAL
- subtract/negate DINT, REAL
* multiply DINT, REAL
/ divide DINT, REAL
** exponent (x to y) DINT, REAL
ABS absolute value DINT, REAL
ACS arc cosine REAL
AND bitwise AND DINT
ASN arc sine REAL
ATN arc tangent REAL
COS cosine REAL
DEG radians to degrees DINT, REAL
FRD BCD to integer DINT
LN natural log REAL
LOG log base 10 REAL
MOD modulo-divide DINT, REAL
NOT bitwise complement DINT
OR bitwise OR DINT
RAD degrees to radians DINT, REAL
SIN sine REAL
SQR square root DINT, REAL
TAN tangent REAL
TOD integer to BCD DINT
TRN truncate DINT, REAL
XOR bitwise exclusive OR DINT
Operator Description Optimal
For operators that
operate on
Use this format Examples
One operand Operator(operand) ABS(tag_a)
Two operands Operand_a operator operand_b ·tag_b + 5
·tag_c AND tag_d
·(tag_e ** 2) MOD (tag_f /
tag_g)

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