Determine The Order Of Operation - Allen-Bradley Logix5000 Reference Manual

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

Chapter 5
Compare Instructions (CMP, EQU, GEQ, GRT, LEQ, LES, LIM, MEQ, NEQ)
224

Determine the Order of Operation

The operations you write into the expression are performed by the instruction in
a prescribed order, not necessarily the order you write them. You can override the
order of operation by grouping terms within parentheses, forcing the instruction
to perform an operation within the parentheses ahead of other operations.
Operations of equal order are performed from left to right.
Order
Operation
1.
( )
2.
ABS, ACS, ASN, ATN, COS, DEG, FRD, LN, LOG,
RAD, SIN, SQR, TAN, TOD, TRN
3.
**
− (negate), NOT
4.
*, /, MOD
5.
6.
<, <=, >, >=, =
− (subtract), +
7.
AND
8.
9.
XOR
10.
OR
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents