Relational operations, Unary operations – Rockwell Automation T6200 Compressor Anti-Surge and Capacity Controller User Manual
Page 186
![background image](/manuals/581416/186/background.png)
Data Structures and Expressions
A-8
+
-
*
/
**
,
%
=
Addition
Subtraction
Multiplication
Division
Exponentiation
Sequence (comma)
Modulo
Assignment
2+5
5A
A*3
6/3
3**2
3,5,A
9%8
A=B
Relational Operations
Operator Description
Example
= =
<>
<
>
<=
>=
Equal to
Not equal to
Less than
Greater than
Less than or equal to
Greater than or equal
to
A= =B
A<>B
A<B
A>B
A<=B
A>=B
The relational operator cannot be so grouped eg, "a<b<c" is not valid, but "a+b+c" is valid. The
assignment and sequence operators have the value of the right operand eg, A=B=C means copy B
to A then copy C to B.
Unary Operations
Operator
Description
Example
%
&
#
!
-
Convert to real
Convert to fuzzy
Convert to integer
Convert to Boolean
Negation
%A
&A
#A
!A
-A