HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual
Page 543
![background image](https://www.manualsdir.com/files/815340/content/doc543.png)
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.