July 2013 9.10 Commands for String Processing 1827
9.10.10 NOT EQUAL Command for String Processing (<>)
Syntax: <> (NOT EQUAL)
Operands: S <arg>
Action:
This command sets off a direct transition from string to logical processing.
Compare the content of the string accumulator with the string in the
argument. If the string accumulator is not equal to the operand, the condition
is true and the iTNC sets the logic accumulator to 1. If the string accumulator
is equal to the operand, it sets the logic accumulator to 0.
Example:
This example of string processing also applies to the commands =, <, >, <=,
>=, <>.
Compare the immediate string with the content of the string memory S0.
Depending on the result, call Module 50.
Initial state:
String memory S0 = SPINDLE 2
Immediate string = SPINDLE 1
String memory (characters)
1 128
S0 S P I N D L E 2
... ...
Function STL String accumulator (characters), or logic
accumulator
1 128
Load the immediate
string into the string
accumulator
L S "SPINDLE 1" S P I N D E L 1
Gate the content of
string memory S0
with content of
string accumulator
(=, <, >, >=, ...)
<> S0 S P I N D E L 2
If the condition is
fulfilled, set logic
accumulator to 1 and
call the module.
CMT 50 Logic accumulator = 1