Bit Test (Bt) - HEIDENHAIN iTNC 530 HSCI Technical Manual

Hide thumbs Also See for iTNC 530 HSCI:
Table of Contents

Advertisement

9.8.58 BIT TEST (BT)

1810
BT (BIT TEST)
Syntax:
B, W, D, K, X
Operands:
Action:
With the BIT TEST command, you can interrogate the status of each bit in the
accumulator. With the BT command there is a direct transition from word to
logic processing, i.e. the iTNC checks the state of a bit in the word
accumulator and then sets the logic accumulator. If the interrogated bit = 1,
the iTNC sets the logic accumulator to 1; otherwise it sets it to 0. 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 iTNC uses the operand value
modulo 32, i.e. the integral remainder of the result of the operand value
divided by 32.
Example:
Load the double word D8 into the accumulator and assign the logical state of
bit 0 to output O12.
Initial state:
Double word D8
= 3E 81 (hex)
Output
O12
= ?
Function
Load the double word D8
into the word accumulator
Check the state of the bit
specified in the operand.
Assign the result to
output O12.
STL
Accumulator
content
L D8
3E81
BT K+0
1
= O12
1
HEIDENHAIN Technical Manual iTNC 530 HSCI
Operand content
3E81
1

Advertisement

Table of Contents
loading

Table of Contents