HEIDENHAIN TNC 426 PB/M Technical Manual page 958

Table of Contents

Advertisement

Word processing
with the OR NOT
command
Function
Load W6 into the
word accumulator.
Gate the content of
word accumulator
and word W4 with
OR NOT.
Assign the gating
result to word W8.
December 2001
Syntax:
ON (OR NOT)
Operands:
B, W, D, K
Action:
Gate the contents of the word accumulator and the operand with OR NOT. In
accordance with the different sizes of operand (B = 8 bit; W = 16 bit; D = K =
32 bit), 8, 16 or 32 bits will be 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 words W4 and W6 with OR NOT, and assign the result to
word W8.
Initial state:
Word W4
= 36 AA (hex)
Word W6
= 3C 36 (hex)
Word W8
= ?
STL
Accumulator contents [bit]
31..15 ..................... 7 ................. 0 1 5 .......... 8 7 ............ 0
L W6
0 ..... 0 0 1 1 1 1 0 0 0 0 1 1 0 1 1 0 0 0 1 1 1 1 0 0 0 0 1 1 0 1 1 0
ON W4
1 ......1 1 1 1 1 1 0 1 0 1 1 1 0 1 1 1 0 0 1 1 0 1 1 0 1 0 1 0 1 0 1 0
= W8
1 ......1 1 1 1 1 1 0 1 0 1 1 1 0 1 1 1 1 1 1 1 1 1 0 1 0 1 1 1 0 1 1 1
Commands
Operand contents [bit]
7 – 109

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