Order of precedence in computations, Limitations – Yokogawa Value Series FX1000 User Manual
Page 211
9-6
IM 04L21B01-01EN
Order of Precedence in Computations
The order of precedence of computation in expressions is as follows:
Type
Computing Element
(high order of precedence)
Function
ABS(), SQR(), LOG(), LN(), EXP(),
TLOG.MAX(), TLOG.MIN(), TLOG.AVE(),
TLOG.SUM(), TLOG.P-P(), CLOG.MAX(),
CLOG.MIN(), CLOG.AVE(), CLOG.SUM(),
CLOG.P-P()
Special computation and conditional expression
PRE, HOLD, RESET, CARRY, [a?b:c]
Power
**
Logical negation
NOT
Multiplication and division
*, /
Addition and subtraction
+, –
Greater than and less than
.GT., .LT., GE., LE.
Equal and not equal
.EQ., .NE.
Logical product
AND
Logical sum and exclusive logical sum
OR, XOR
(low order of precedence)
Limitations
The following limitations exists in writing expressions.
Type
Limitations
TLOG computation A computing element cannot be written inside the parentheses.
Only one TLOG computation can be specified in a single expression.
CLOG computation Number of channels that can be written in the parentheses is 30 channels or less.
A computing element cannot be written inside the parentheses.
Only one CLOG computation can be specified in a single expression.
PRE
A computing element cannot be written inside the parentheses.
HOLD(a):b
Can only be written at the beginning of an expression.
Only one HOLD computation can be specified in a single expression.
RESET(a):b
Can only be written at the beginning of an expression.
Only one RESET computation can be specified in a single expression.
CARRY(a):b
Can only be written at the beginning of an expression.
Only one CARRY computation can be specified in a single expression.
Only TLOG.SUM can be written in “b.”
Conditional equation
[a?b:c]
RESET, CARRY, or HOLD cannot be written to “a,” “b,” or “c.” Other computing
elements cannot be combined (example: [a?b:c]+001). However, coditional
equations can be specified for a, b, and c.
9.2 Writing Expressions