HEIDENHAIN TNC 306 Technical Manual User Manual
Page 324

7-34
TNC 416/TNC 406/TNC 306
Commands
3/2000
Word execution with the ASSIGN command
Operands: B, W, D
Operation:
ASSIGN in conjunction with the Word-Operands (B, W, D) copies the contents of the Word
Accumulator to the addressed operand. The = command is only used at the end of a gating chain in
order that a gating result is available. The command can be used several times in succession (see
example).
Example:
A Constant (K) and the contents of Byte B5 should be gated with AND and the result assigned to
Byte B8 and Byte B10.
Initial state:
Byte
B5 = 2A
(hex)
Constant
54 = 36
(hex)
Byte
B8 = ?
Byte
B10 = ?
Line Instruction
Accumulator contents
Operand contents
Bit
31 . . . 15
7
0
7 0
... x x x x x x x x x x x x x x x x x x
1
L K+54
... 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1 0
2
A B5
... 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0
00101010
3
= B8
... 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0
00100010
4
= B10
... 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0
00100010
Line 1:
The Constant is loaded into the Word Accumulator.
Line 2:
The contents of the Word Accumulator and Byte B5 are gated with AND.
Line 3:
The gating result is assigned to Byte B8.
Line 4:
The gating result is assigned to Byte B10.