HEIDENHAIN TNC 426 PB/M Technical Manual page 952

Table of Contents

Advertisement

Word processing
with the AND
command
Function
Load byte B6 into
the word
accumulator.
Gate the contents of
word accumulator
and byte B5 with
AND.
Assign the gating
result to byte B8.
December 2001
Syntax:
A (AND)
Operands:
B, W, D, K
Action:
Gate the contents of the word accumulator and the operand with AND. In
accordance with the different data widths of the operands (B = 8 bits; W = 16
bits; D = K = 32 bits), 8, 16 or 32 bits, respectively, are influenced in the
accumulator. Thus, bit 0 of the accumulator is gated with bit 0 of the operand,
bit 1 of the accumulator with bit 1 of the operand, etc. The TNC saves the
result of the operation in the word accumulator.
Example:
Gate the content of byte B5 and byte 6 with AND, and assign the result to byte
B8.
Initial state:
Byte
B5
= 2A (hex)
Byte
B6
= 36 (hex)
Byte
B8
= ?
STL
Accumulator contents [bit]
31..15
..................... 7 ................. 0
L B6
0 ..... 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1 0
A B5
0 ..... 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0
= B8
0 ..... 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0
Commands
Operand contents [bit]
7 ............ 0
0 0 1 1 0 1 1 0
0 0 1 0 1 0 1 0
0 0 1 0 0 0 1 0
7 – 103

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