Omron CJ - INSTRUCTIONS Reference Manual page 1146

Table of Contents

Advertisement

3. Instructions
Flags
Name
Error Flag
Greater Than Flag
Greater Than or Equals Flag
Equals Flag
Not Equal Flag
Less Than Flag
Less Than or Equals Flag
Note When the Error Flag is ON, an OFF execution condition will be output to the next instruction.
Function
i
String comparison instructions compare the text
strings designated by S1 and S2. If the result of
the comparison is true, an ON execution condition
is created in the ladder diagram. The maximum
number of characters for either S1 or S2 is 4,095
(0FFF hex).
The input comparison instructions are treated just
like the LD, AND, and OR instructions to control
the execution of subsequent instructions.
Input type
LD
The instruction can be connected directly to the
left bus bar.
AND
The instruction cannot be connected directly to
the left bus bar.
OR
The instruction can be connected directly to the
left bus bar.
String comparison instructions are expressed by
18 types of mnemonics.
1108
Label
ER
• ON if more than 4,095 characters are designated by S1 or S2.
• OFF in all other cases.
>
• ON if the comparison results in S1 greater than S2.
• OFF in all other cases.
>=
• ON if the comparison results in S1 greater than or equal to S2.
• OFF in all other cases.
=
• ON if the comparison results in S1 equal to S2.
• OFF in all other cases.
<>
• ON if the comparison results in S1 not equal to S2.
• OFF in all other cases.
<
• ON if the comparison results in S1 less than S2.
• OFF in all other cases.
<=
• ON if the comparison results in S1 less than or equal to S2.
• OFF in all other cases.
Operation
Operation
LD connection
ON execution condition when
comparison result is true.
<
S1
S2
AND connection
<
S1
S2
OR connection
<
S1
ON execution condition when
S2
comparison result is true.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
ON execution condition when
comparison result is true.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents