HEIDENHAIN TNC 306 Technical Manual User Manual
Page 369
3/2000
TNC 416/TNC 406/TNC 306
Commands
7-79
Example:
Initial state:
Constant
= 1000
(decimal)
Double word D12= 15000
(decimal)
Double word D36= 10
(decimal)
Output
O15 = ?
The Accumulator contents and operand contents are shown in decimal notation. The ten-position
Accumulator thus permits the maximum possible Accumulator content of 2 147 483 647.
The Accumulator is again represented in binary notation after program line 5, as the transition to
logic execution occurs here.
Line
Instruction
Accumulator Contents
Operand Contents
1
L D12
x x x x x x x x x x
1 5 0 0 0
1 5 0 0 0
1 0 0 0
Program-stack:
1 5 0 0 0
2
>= [
3
L K1000
4
x D36
5
]
6
= O15
1
1 0
1 0 0 0 0
1 5 0 0 0
bit 31 . . .
7
0
x x x x
1
x x x x x x x
x x x x
1
x x x x x x x
Line 1:
The content of Double word D12 is loaded into the Word Accumulator.
Line 2:
Open parentheses: buffering of the Accumulator content in the Program Stack.
Line 3:
Loading of a Constant into the Word Accumulator.
Line 4:
The content of the Word Accumulator is multiplied by the content of Double word D12.
Line 5:
Close parentheses: Word Accumulator content is gated, corresponding to the
command(==[, >=[, <=[ ...) with the content of the Program Stack . The transition from
Word to Logic processing occurs in this program line. The Logic Accumulator is set or
reset, depending on the result of the comparison.
Line 6:
The result of the complete logical process is assigned to output O15.