Equal To (==) - HEIDENHAIN iTNC 530 HSCI Technical Manual

Hide thumbs Also See for iTNC 530 HSCI:
Table of Contents

Advertisement

9.8.31 EQUAL TO (==)

July 2013
== (EQUAL)
Syntax:
B, W, D, K
Operands:
Action:
This command sets off a direct transition from word to logical processing.
Compare the content of the word accumulator with the content of the
addressed operand. If the word accumulator and the operand are equal, the
condition is true and the iTNC sets the logic accumulator to 1. If they are not
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
M300 = ?
Function
Load the constant into the
word accumulator.
Compare the content of
the word accumulator
with the operand content
D8; if not equal, set the
logic accumulator to 0.
Assign the result to
marker M500.
9.8 Command Set
STL
Accumulator
content
L
16000
K16000
== D8
0
= M500 0
Operand content
15000
0
1793

Advertisement

Table of Contents
loading

Table of Contents