EasyManua.ls Logo

HEIDENHAIN iTNC 530 HSCI - Example; Result to Double Word D8

HEIDENHAIN iTNC 530 HSCI
1966 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
Loading...
1784 HEIDENHAIN Technical Manual iTNC 530 HSCI
Word processing
with the
EXCLUSIVE OR
command
Syntax: XO (EXCLUSIVE OR)
Operands: B, W, D, K
Action:
Gate the contents of the word accumulator and the operand with EXCLUSIVE
OR. 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 iTNC
saves the result of the operation in the word accumulator.
Example:
Gate the contents of byte B5 and byte B6 with EXCLUSIVE OR, and assign the
result to word W8.
Initial state:
Byte B5 = 2A (hex)
Byte B6 = 36 (hex)
Word W8 = ?
Function STL Accumulator
content
Operand content
Load byte B6 into the
word accumulator.
L B6 36 36
Gate the contents of the
word accumulator and
byte B5 with EXCLUSIVE
OR.
XO B5 1C 2A
Assign the gating result to
word W8.
= W8 1C 1C

Table of Contents

Other manuals for HEIDENHAIN iTNC 530 HSCI

Related product manuals