1
04.00 Flexible NC Programming
1.7 Com
arison and lo
ic o
erators
1
840D
NCU 571
840D
NCU 572
NCU 573
FM-NC 810D 840Di
ï›™
Siemens AG 2000. All rights reserved
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA)
−
04.00 Edition
1-43
Bit-for-bit logic operators
Bit-for-bit logic operations can also be performed on
variables of the type CHAR and INT. Type
conversion takes place automatically.
Meaning of the bit-for-bit logic operators
B_AND
Bit AND
B_OR
Bit OR
B_NOT
Bit NOT
B_XOR
Bit exclusive OR
The operator B_NOT refers only to an operand; this
follows the operator.
Programming example
IF $MC_RESET_MODE_MASK B_AND 'B10000' GOTOF ACT_PLANE