HEIDENHAIN TNC 306 Technical Manual User Manual
Page 361
![background image](https://www.manualsdir.com/files/815307/content/doc361.png)
3/2000
TNC 416/TNC 406/TNC 306
Commands
7-71
Examples for the commands AND [ ], AND NOT [ ], OR [ ], OR NOT [ ], EXCLUSIVE OR [ ],
EXCLUSIVE OR NOT [ ].
With the use of parentheses, an instruction listing may be developed according to the following logic
block-diagram.
M500 ••
OR
M501 ••
AND
•••••
O12
I0 ••••
OR
I1 ••••
Initial state:
Marker M500 = 0Input I0 = 0
Output O12 = ?
Marker M501 = 1Input I1 = 1
Line Instruction
Accumulator Contents
Operand Contents
bit 31
7
0
... x x x x x x
x
x x x x x x x
Program-stack:
1 L M500
2 O M501
3 A [
4 L I0
5 O I1
6 ]
7 = O12
xxxxxxxx
1
xxxxxxx
bit 7
0
15
... x x x x x x
0
x x x x x x x
... x x x x x x
1
x x x x x x x
... x x x x x x
1
x x x x x x x
... x x x x x x
0
x x x x x x x
... x x x x x x
1
x x x x x x x
... x x x x x x
1
x x x x x x x
... x x x x x x
1
x x x x x x x
0
1
0
1
1
Line 1:
Marker state M500 is loaded into the Logic Accumulator.
Line 2:
The Logic Accumulator is gated with Marker M501.
Line 3:
Open parentheses: the Accumulator contents are buffered on the Program Stack.
Line 4:
Input state I0 is loaded into the Logic Accumulator.
Line 5:
The Logic Accumulator is gated with Input I1.
Line 6:
Close parentheses: Accumulator content is gated with the content of the Program Stack,
according to the command (A[, O[, NO[ ...).
Line 7:
The result of the complete logical process is assigned to Output O12.
Note:
The functional sequence is in principle the same for word execution, with the exception that the
whole Accumulator is written onto the Stack.