![Omron CJ1G-CPUxx Instructions Manual Download Page 280](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491280.webp)
259
Comparison Instructions
Section 3-7
gram. In this case, the Equals Flag and output A will be turned ON when S
1
=
S
2
.
Using CPS(114) Results in the Program
Do not program another instruction between CPS(114) and the instruction
controlled by the Arithmetic Flag because the other instruction might change
the status of the Arithmetic Flag. In this case, the results of instruction B might
change the results of CPS(114).
The immediate-refreshing variation (!CPS(114)) can be used with words allo-
cated to external inputs specified in S
1
and/or S
2
. When !CPS(114) is exe-
cuted, input refreshing will be performed for the external input word specified
in S
1
and/or S
2
and that refreshed value will be compared. (Immediate
refreshing cannot be performed on inputs allocated to Group-2 High-density I/
O Units or Units mounted to Slave Racks.)
Flags
CPS
S1
S2
A
Arithmetic Flag
(Example: Equal Flag)
Correct Use of CPS(114)
CPS
S1
S2
A
Arithmetic Flag
(Example: Equal Flag)
Incorrect Use of CPS(114)
Instruction
B
Name
Label
Operation
Error Flag
ER
OFF or unchanged (See note.)
Greater Than Flag
>
ON if S
1
> S
2
.
OFF in all other cases.
Greater Than or Equal Flag
> =
ON if S
1
≥
S
2
.
OFF in all other cases.
Equal Flag
=
ON if S
1
= S
2
.
OFF in all other cases.
Not Equal Flag
<>
ON if S
1
≠
S
2
.
OFF in all other cases.
Less Than Flag
<
ON if S
1
< S
2
.
OFF in all other cases.
Less Than or Equal Flag
< =
ON if S
1
≤
S
2
.
OFF in all other cases.
Negative Flag
N
OFF or unchanged (See note.)
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...