Division - HEIDENHAIN TNC 415 Technical Manual

Hide thumbs Also See for TNC 415:
Table of Contents

Advertisement

3.4.4 DIVISION (/)

Abbreviation for the PLC-Editor:
Execution time [µs]
Number of bytes
An error condition (Divisor = 0) results in an execution time of 1.0 to 1.8 µs.
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 Word Accumulator are divided by the contents of the operand. The result
of the operation is stored in the Word Accumulator and may be processed further. If the division is
not correctly executed the Marker M3169 is set, otherwise it is reset.
Example:
A Constant is to be divided by the value stored in Word W6 . The result is then assigned to
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 K100
2
/ W6
3
= D8
Line 1: The Constant is loaded into the Accumulator.
Line 2: The contents of the Accumulator are divided by the contents of Word W6.
Line 3: The result is assigned to Doubleword D8.
01.98
TNC 407/TNC 415/TNC 425
/ (DIVIDE)
Logic
Byte/Word
----
6.6 to 7.7
----
Constant
= 100
Word
W6 = 20
Doubleword D8
= ?
Accumulator Contents
x
x x x
x x x
3 Commands
Double
6.6 to 7.0
16
14
(dec)
(dec)
Operand Contents
x x x
1 0 0
5
5
Constant
6.3 to 6.7
16
2 0
5
7-69

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 425eTnc 415fTnc 407Tnc 415bTnc 425

Table of Contents