EasyManuals Logo

HEIDENHAIN MANUALPLUS 620 Technical Manual

HEIDENHAIN MANUALPLUS 620
1818 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1710 background imageLoading...
Page #1710 background image
1710 HEIDENHAIN Technical Manual MANUALplus 620
8.15.55 SHIFT RIGHT (>>)
Syntax: >> (SHIFT RIGHT)
Operands: B, W, D, K
Action:
A SHIFT RIGHT statement divides the content of the word accumulator by
two. This is done by simply shifting the bits by one place to the right. You
define the number of shifts through the operand. The bits that the control
shifts to the right out of the accumulator are then lost. The control extends the
left side of the accumulator with the correct sign.
This statement is one of the arithmetic commands because it includes the
sign bit. For this reason, and to save time, you should not use this command
to isolate bits.
Example:
Shift the content of double word D8 four times to the right, then assign it to
double word 12.
Initial state:
Double word D8 = 3E 80 (hex)
Double word D12 = ?
Instead of using the >> K+1 command four times, simply use the >> K+4
command.
8.15.56 BIT SET (BS)
Syntax: BS (BIT SET)
Operands: B, W, D, K, X
Action:
With the BIT SET command you can set each bit in the accumulator to 1. The
corresponding bits are selected (addressed) by the content of the specified
operand or by a constant. As to the bit numbering, bit 0 = LSB and bit 31 =
MSB. For operand contents greater than 32, the control uses the operand
value modulo 32, i.e. the integral remainder of the result of the operand value
divided by 32.
Function STL Accumulator
content
Operand content
Load the double word D8
into the word accumulator
L D8 3E80 3E80
Shift the content of the
word accumulator to the
right by the number of
bits that are specified in
the operand.
>> K+1 1F40
>> K+1 FA0
>> K+1 7D0
>> K+1 3E8
Assign the result to
double word D12.
= D12 3E8 3E8

Table of Contents

Other manuals for HEIDENHAIN MANUALPLUS 620

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HEIDENHAIN MANUALPLUS 620 and is the answer not in the manual?

HEIDENHAIN MANUALPLUS 620 Specifications

General IconGeneral
BrandHEIDENHAIN
ModelMANUALPLUS 620
CategoryControl Systems
LanguageEnglish

Related product manuals