Download Print this page

HEIDENHAIN MANUALplus 620 Technical Manual page 1693

Hide thumbs Also See for MANUALplus 620:

Advertisement

8.15.27 DIVISION (/)
January 2012
Syntax:
/ (DIVIDE)
Operands:
B, W, D, K
Action:
The control extends the operand to the width of the accumulator (32 bits) and
then divides the content of the word accumulator by the content of the
operand. The result of the operation is stored in the word accumulator where
you can process it further. If the control cannot execute the division correctly,
it then sets marker M4201, otherwise it resets it.
Example:
Divide the constant by the number saved in word W6, then assign the result
to double word D8.
Initial state:
Constant
= 100 (dec)
Word
W6
= 20 (dec)
Double word D8
= ?
Function
Load the constant into the
word accumulator.
Divide the content of the
word accumulator by
word W6
Assign the result to
double word D8.
8.15 Command Set
STL
Accumulator
content
L K100
100
/ W6
5
= D8
5
Operand content
20
5
1693

Advertisement

loading