1038
Text String Processing Instructions Section 3-31
Flags
Note String comparison instructions are used to rearrange the order of text strings
in order of ASCII. For example, the ASCII order from lower to higher is the
order of the alphabet from A to Z, so text strings can be arranged in alphabet-
ical order.
Precautions Please a right-hand instruction after these instructions. The String Compari-
son Instructions cannot appear on the right side of the ladder diagram.
These instructions cannot be used on the last rung of a logic block.
The maximum number of characters that can be compared is 4,095 (0FFF
hex). If that number is exceeded (i.e., if there is no NUL before the 4,096th
character), an error will occur and the Error Flag will turn ON. When this hap-
pens, an OFF execution condition will be output to the next instruction.
Name Label Operation
Error Flag ER ON if more than 4,095 characters are designated by S1
or S2.
OFF in all other cases.
Greater Than
Flag
> ON if the comparison results in S1 greater than S2.
OFF in all other cases.
Greater Than or
Equals Flag
>= ON if the comparison results in S1 greater than or equal
to S2.
OFF in all other cases.
Equals Flag = ON if the comparison results in S1 equal to S2.
OFF in all other cases.
Not Equal Flag <> ON if the comparison results in S1 not equal to S2.
OFF in all other cases.
Less Than Flag < ON if the comparison results in S1 less than S2.
OFF in all other cases.
Less Than or
Equals Flag
<= ON if the comparison results in S1 less than or equal to
S2.
OFF in all other cases.