Operator Meaning
/
● Division in synchronous actions: INT / INT ⇒ INT
● Division in synchronous actions with REAL result by using the function ITOR():
ITOR( INT ) / ITOR( INT ) ⇒ REAL
● Division in NC programs: INT / INT ⇒ REAL
DIV Integer division: INT / INT ⇒ INT
MOD Modulo division (only for type INT) supplies remainder of an INT division
Example: 3 MOD 4 = 3
Note
Only variables of the same type may be linked by these operations.
Relational operators
Operator Meaning
== Equal to
> Not equal to
< Less than
> Greater than
<= Less than or equal to
>= Greater than or equal to
Boolean operators
Operator Meaning
NOT NOT
AND AND
OR OR
XOR Exclusive OR
Bit logic operators
Operator Meaning
B_OR Bit-by-bit OR
B_AND Bit-by-bit AND
B_XOR Bit-by-bit exclusive OR
B_NOT Bit-by-bit negation
Fundamentals
2.15 Other information
NC programming
386 Programming Manual, 12/2019, 6FC5398-2EP40-0BA0