HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual
Page 517
Word execution with the AND NOT command
Operands: B, W, D, K
Operation:
The contents of the Word Accumulator and the contents of the operand (B, W, D, K) are gated with
AND NOT. In accordance with the different sizes of operand (B = 8 bit; W = 16 bit; D = K = 32 bit),
8, 16 or 32 bits will be influenced in the Accumulator.
Thus:
Bit 0 in the Accumulator is gated with bit 0 in the operand.
Bit 1 in the Accumulator is gated with bit 1 in the operand and so on.
The result of the operation is stored in the Word Accumulator.
Example:
The contents of Word W4 and Word W6 should be gated with AND NOT and the result assigned to
Word W8.
Initial state:
Word W4 = 36 AA (hex)
Word W6 = 3C 36
(hex)
Word W8 = ?
Line Instruction
Accumulator Contents
Operand Contents
Bit
31 . . . 15
7
0
15 8 7 0
... x x x x x x x x x x x x x x x x x x
1
L W6
... 0 0 0 0 1 1 1 1 0 0 0 0 1 1 0 1 1 0
00111100 00110110
2
AN W4
... 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 1 0 0
00110110 10101010
3
= W8
... 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 1 0 0
00001000 00010100
Line 1:
The contents of Word W6 are loaded into the Accumulator.
Line 2:
The contents of the Word Accumulator and Word W4 are gated with AND NOT.
Line 3:
The gating result is assigned to Word W8.