EasyManua.ls Logo

HEIDENHAIN TNC 430 PA/M - Not Equal

HEIDENHAIN TNC 430 PA/M
1135 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...
December 2001 Commands 7 125
7.7.37 NOT EQUAL (<>)
Syntax: <> (NOT EQUAL)
Operands: B, W, D, K
Action:
This command sets off a direct transition from word to logical processing.
Gate the content of the word accumulator with the content of the addressed
operand. If the word accumulator and the operand are not equal, the condition
is true and the TNC sets the logic accumulator to 1. If they are equal, the logic
accumulator is set to 0. The comparison takes place over the number of bits
corresponding to the operand,
where B = 8 bits, W = 16 bits, and D = K = 32 bits.
Example:
Compare a constant with the content of double word D8, and assign the result
to marker M500.
Initial state:
Constant = 16 000 (dec)
Double word D8 = 15 000 (dec)
Marker M500 = ?
To improve clarity, the contents of the accumulator and operand are shown in
decimal notation. The ten-digit accumulator results from the greatest possible
accumulator content (2 147 483 647).
Function STL Accumulator contents (dec or [bit]) Operand content
(dec or [bits])
x xxx xxx xxx
Load the constant
into the word
accumulator.
L
K16000
16 000
31..15 ..................... 7 ................. 0
Check whether word
accumulator <>
operand; if so, set
logic accumulator
to 1.
<> D8 x ..... x x x x x x x x 1 x x x x x x x 1 5 00 0
Assign the result to
marker M500.
= M500 x ..... x xxxxxxx1xxxxxxx 1

Table of Contents

Related product manuals