Bit Set (Bs) - HEIDENHAIN TNC 426 PB/M Technical Manual

Table of Contents

Advertisement

7.7.57 BIT SET (BS)

Function
Load the double
word D8 into the
word accumulator.
Set the bit specified
in the operand to 1.
Assign the result to
double word D12.
December 2001
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 TNC uses the operand value
modulo 32, i.e. the integral remainder of the result of the operand value
divided by 32.
Example:
Load double word D8 into the accumulator, set bit 0 of the accumulator to 1,
and save the result in double word D12.
Initial state:
Double word D8
= 3E 80 (hex)
Double word D12
= ?
Accumulator and operand contents are shown here in hexadecimal notation.
STL
Accumulator content (hex)
L D8
BS K+0
= D12
Commands
x x
x x
x x
x x
0 0
0 0
3 E
8 0
0 0
0 0
3 E
8 1
0 0
0 0
3 E
8 1
Operand content (hex)
0 0 0 0 3 E 8 0
0 0 0 0 3 E 8 1
7 – 137

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 430 pa/mTnc 430 mTnc 426 cbTnc 430 caTnc 426 pbTnc 430 pa ... Show all

Table of Contents