Operators supported and specified by IEC-61131-3
Operador |
Símbolo |
Exemplos |
Parentheses |
(Expression) |
(A+B/C), (A+B)/C, A/(B+C) |
Dereference ¹ |
^ |
R^ |
Unary minus |
- |
-A, - A |
Unary plus |
+ |
+B, + B |
Complement |
NOT |
NOT C |
Exponentiation |
** |
A**B, A ** B |
Multiplication |
* |
A*B, A * B |
Division |
/ |
A/B, A / B / D |
Addition |
+ |
A+B, A + B + C |
Subtraction |
- |
A-B, A - B - C |
Comparison |
< , > , <= , >= |
A < B |
Equality |
= |
A=B, A = B, A=B & B=C |
Inequality |
<> |
A<>B, A <> B |
Boolean AND |
&, AND |
A&B, A & B, A & B & C, A AND B |
Boolean OR Exclusive |
XOR |
A XOR B |
Boolean OR |
OR |
A OR B |
|
NOTE!
¹ Check if the equipment has support for this operator.
|