6 unequal (<>) – HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual
Page 582

3.15.6 UNEQUAL (<>)
Abbreviation for PLC Editor:
<> (NOT EQUAL)
Execution time [µs]
< 100
Number of bytes
STRING memory
12
Immediate STRING
20 + n
STRING from error message or dialogue files
26
Operands: S
Operation:
With this command a direct transition from STRING- to logic execution takes place. The content of
the STRING Accumulator is compared with the STRING in the Argument.
If the STRING Accumulator is not equal to the operand, the condition is true and the Logic
Accumulator is set to 1. If the STRING Accumulator is equal to the operand the Logic Accumulator is
set to 0.
Example of STRING execution
An Immediate STRING is to be compared with the content of the STRING-Memory S0. Depending
on the comparison result, Module 50 is called.
Initial state:
STRING memory S0:
SPINDLE 2
Immediate STRING:
SPINDLE 1
...xxxxxx
1
xxxxxx
7
0
bit 31 ...
CMT 50
2
<> S0
3
1
L S "SPINDLE 1"
1
S P I N D L E 2
S0
S1
Line
Instruction
STRING Accumulator
128
1
128
S P I N D L E 1
S P I N D L E 2
Line 1:
Load the Immediate STRING into the STRING Accumulator.
Line 2:
The content of the STRING Accumulator is compared with the content of the STRING
memory S0 according to the command.
Line 3:
Since the result of the comparison is "true", the Logic Accumulator is set and the Call
Module is processed.