1688 HEIDENHAIN Technical Manual MANUALplus 620
8.15.23 EXCLUSIVE OR NOT (XON)
Logic processing
with the
EXCLUSIVE OR
NOT command
Syntax: XON (EXCLUSIVE OR NOT)
Operands: M, I, O, T, C
Action:
At the beginning of a logic sequence, this command functions like an LN
command, i.e., the logical state of the operand is loaded into the logic
accumulator. You should always begin a sequence of logical gating
operations with a load command (see L, LN, L–).
Within a logic sequence, gate the content of the logic accumulator and the
logical state of the operand with EXCLUSIVE OR NOT. The control saves the
result of the operation in the logic accumulator.
Example:
Gate the inputs I4 and marker M500 with EXCLUSIVE OR NOT, and assign the
result to output O2.
Initial state:
Input I4 = 0
Marker M500 = 0
Output O2 = ?
Word processing
with the
EXCLUSIVE OR
NOT command
Syntax: XON (EXCLUSIVE OR NOT)
Operands: B, W, D, K
Action:
Gate the contents of the word accumulator and the operand with EXCLUSIVE
OR NOT. 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 control
saves the result of the operation in the word accumulator.
Function STL Accumulator
content
Operand content
Load the operand content
into the logic
accumulator.
L M500 0 0
Gate the content of logic
accumulator and input I4
with EXCLUSIVE OR
NOT.
XON I4 1 0
Assign the gating result to
output O2.
= O2 1 1