![Omron CJ1G-CPUxx Instructions Manual Download Page 275](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491275.webp)
254
Comparison Instructions
Section 3-7
The immediate-refreshing variation (!CMP(020)) can be used with words allo-
cated to external inputs specified in S
1
and/or S
2
. When !CMP(020) 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
Note In CS1 and CJ1 CPU Units, these Flags are turned OFF.
In CS1-H, CJ1-H, CJ1M, and CS1D CPU Units, these Flags are left
unchanged.
Precautions
Do not program another instruction between CMP(020) and an input condition
that accesses the result of CMP(020) because the other instruction might
change the status of the Arithmetic Flags.
3-7-3
DOUBLE COMPARE: CMPL(060)
Purpose
Compares two double unsigned binary values (constants and/or the contents
of specified words) and outputs the result to the Arithmetic Flags in the Auxil-
iary Area.
Ladder Symbol
Variations
Applicable Program Areas
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.)
S
1
: Comparison data 1
S
2
: Comparison data 2
CMPL(060)
S
1
S
2
Variations
Executed Each Cycle for ON Condition
CMPL(060)
Executed Once for Upward Differentiation
Not supported
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Not supported
Block program areas
Step program areas
Subroutines
Interrupt tasks
OK
OK
OK
OK
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 ...