Detailed description
3.3 System variables for synchronized actions
3.3.2
Operators and arithmetic functions
Operators
Arithmetic operators
System variables of the REAL and INT type can be linked by the following operators:
Operator
+
-
*
/
DIV
MOD
Note
Only variables of the same type may be linked by these operations.
Relational operators
Operator
==
<>
<
>
<=
>=
Boolean operators
Operator
NOT
AND
OR
XOR
22
Meaning
Addition
Subtraction
Multiplication
● Division in synchronized actions: INT / INT ⇒ INT
● Division in synchronized actions with REAL result by using the function ITOR():
ITOR( INT ) / ITOR( INT ) ⇒ REAL
● Division in NC programs: INT / INT ⇒ REAL
Integer division: INT / INT ⇒ INT
Modulo division (only for type INT) supplies remainder of an INT division
Example: 3 MOD 4 = 3
Meaning
Equal to
Not equal to
Less than
Greater than
Less than or equal to
Greater than or equal to
Meaning
NOT
AND
OR
Exclusive OR
Function Manual, 08/2018, 6FC5397-5BP40-6BA2
Synchronized actions