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

Compute/Math Instructions (CPT, ADD, SUB, MUL, DIV, MOD, SQR, SQRT, NEG, ABS)

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.
**
4.
− (negate), NOT
5.
*, /, MOD
6.
− (subtract), +
7.
AND
8.
XOR
9.
OR
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 6
265

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents