Subtraction (-) - HEIDENHAIN TNC 426 PB/M Technical Manual

Table of Contents

Advertisement

7.7.26 SUBTRACTION (–)
Function
Load the constant
into the word
accumulator.
Subtract word W6
from the content of
the word
accumulator.
Assign the result to
double word D8.
December 2001
Syntax:
– (MINUS)
Operands:
B, W, D, K
Action:
The TNC extends the operand to the width of the accumulator (32 bits) and
then subtracts the content of the operand from the content of the word
accumulator. The result of the operation is stored in the word accumulator
where you can process it further.
Example:
Subtract the number saved in word W6 from the constant, and then assign the
result to double word D8.
Initial state:
Constant
= 10 000 (dec)
Word
W6
= 200 (dec)
Double word D8
= ?
To improve clarity, the contents of the accumulator and operand are shown in
decimal notation. The ten-digit accumulator results from the greatest possible
accumulator content (2 147 483 647).
STL
Accumulator content (dec)
L
K10000
– W6
= D8
Commands
x
x x x
x x x
x x x
1 0
0 0 0
9
8 0 0
9
8 0 0
Operand content (dec)
2 0 0
9 8 0 0
7 – 115

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 430 pa/mTnc 430 mTnc 426 cbTnc 430 caTnc 426 pbTnc 430 pa ... Show all

Table of Contents