Siemens SINUMERIK 828D Programming Manual page 67

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

Bit-by-bit logic operator
B_AND
B_OR
B_NOT
B_XOR
Note
In arithmetic expressions, the execution order of all the operators can be specified by
parentheses, in order to override the normal priority rules.
Note
Spaces must be left between BOOLEAN operands and operators.
Note
The operator
Examples
Example 1: Relational operators
IF R10>=100 GOTOF DEST
or
R11=R10>=100
IF R11 GOTOF DEST
The result of the
Example 2: Logic operators
IF (R10<50) AND ($AA_IM[X]>=17.5) GOTOF DESTINATION
or
IF NOT R10 GOTOB START
NOT
Example 3: Bit-by-bit logic operators
IF $MC_RESET_MODE_MASK B_AND 'B10000' GOTOF
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
only refers to one operand. This is located after the operator.
B_NOT
comparison is first buffered in
R10>=100
only refers to one operand.
1.4 Comparison and logic operations
Significance
Bit-serial AND
Bit-serial OR
Bit-serial negation
Bit-serial exclusive OR
R11
Flexible NC programming
.
ACT_PLANE
67

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents