Flexible NC programming
1.7 Comparison and logical operations
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
1-21
NOT
or
XOR
Spaces must be left between BOOLEAN operands and operators.
Bit-by-bit logic operators
B_AND
or
B_OR
or
B_NOT
or
B_XOR
Parameters
Meaning of relational operators
== equal to
<> not equal to
> greater than
< less than
>= greater than or equal to
<= less than or equal to
Meaning of logic operators
AND AND
OR OR
NOT Negation
XOR Exclusive OR
In arithmetic expressions, the execution order of all the operators can be specified by
parentheses, in order to override the normal priority rules.
Meaning of bit logic operators
B_AND Bit-serial AND
B_OR Bit-serial OR
B_NOT Bit-serial negation
B_XOR Bit-serial exclusive OR
Note
The operator B_NOT refers to one operand only,
it comes after the operator.