Subtraction - HEIDENHAIN TNC 415 Technical Manual

Hide thumbs Also See for TNC 415:
Table of Contents

Advertisement

3.4.2 SUBTRACTION (–)
Abbreviation for the PLC-Editor:
Execution time [µs]
Number of bytes
Operands: B, W, D, K
Operation:
With arithmetic functions the operand is firstly expanded to the size of the Accumulator (32 bits).
Then the contents of the operand are subtracted from the contents of the Word Accumulator. The
result of the operation is stored in the Word Accumulator and may be processed further.
Example:
A stored value in Word W6 is to be subtracted from a Constant. The result is then stored in
Doubleword D8.
Initial state:
In the interests of clarity the contents of the Accumulator and the operand are shown in decimal
notation. The 10 bit wide Accumulator allows the entry of the highest possible Accumulator
contents (2 147 483 647).
Line Instruction
1
L K100000
2
– W6
3
= D8
Line 1: The Constant is loaded into the Accumulator.
Line 2: The contents of Word W6 are subtracted from the Accumulator.
Line 3: The result is assigned to Doubleword D8.
01.98
TNC 407/TNC 415/TNC 425
– (MINUS)
Logic
Byte/Word
----
0.5 to 0.7
----
Constant
= 100 000 (dec)
Word
W6 = 200
Doubleword D8 = ?
Accumulator Contents
x
x x x
x x x
1 0 0
9 9
9 9
3 Commands
Double
0.2 to 0.7
8
4
(dec)
Operand Contents
x x x
0 0 0
8 0 0
8 0 0
Constant
0.1 to 0.5
6
2 0 0
9 9
8 0 0
7-67

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 425eTnc 415fTnc 407Tnc 415bTnc 425

Table of Contents