Subtraction (-) - HEIDENHAIN iTNC 530 HSCI Technical Manual

Hide thumbs Also See for iTNC 530 HSCI:
Table of Contents

Advertisement

9.8.25 SUBTRACTION (–)
1788
– (MINUS)
Syntax:
B, W, D, K
Operands:
Action:
The iTNC 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
= ?
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.
STL
Accumulator
content
L
10000
K10000
– W6
9800
= D8
9800
HEIDENHAIN Technical Manual iTNC 530 HSCI
Operand content
9800
9800

Advertisement

Table of Contents
loading

Table of Contents