Skip to main content

Operators

Operators supported and specified by IEC-61131-3

OperatorSymbolExamples
Parentheses(Expression)(A+B/C), (A+B)/C, A/(B+C)
Dereference ¹^R^
Unary minus--A, - A
Unary plus++B, + B
ComplementNOTNOT 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&, ANDA & B, A & B, A & B & C, A AND B
Boolean Exclusive ORXORA XOR B
Boolean ORORA OR B

NOTE!: ¹ Check if the equipment has operator support.