![Omron CJ1G-CPUxx Instructions Manual Download Page 278](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491278.webp)
257
Comparison Instructions
Section 3-7
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 CMPL(060) and an input condi-
tion that accesses the result of CMPL(060) because the other instruction
might change the status of the Arithmetic Flags.
Example
When CIO 000000 is ON in the following example, the eight-digit unsigned
binary data in CIO 0011 and CIO 0010 is compared to the eight-digit
unsigned binary data in CIO 0009 and CIO 0008 and the result is output to
the Arithmetic Flags. The results recorded in the Greater Than, Equals, and
Less Than Flags are immediately saved to CIO 000200 (Greater Than),
CIO 000201 (Equals), and CIO 000202 (Less Than).
3-7-4
SIGNED BINARY COMPARE: CPS(114)
Purpose
Compares two signed binary values (constants and/or the contents of speci-
fied words) and outputs the result to the Arithmetic Flags in the Auxiliary Area.
Ladder Symbol
Variations
Note Immediate refreshing is not supported by the CS1D CPU Units.
Applicable Program Areas
Operand Specifications
(0)
(0)
(1)
>
=
<
Flag status
Comparison
Result
S
1
: Comparison data 1
S
2
: Comparison data 2
CPS(114)
S
1
S
2
Variations
Executed Each Cycle for ON Condition
CPS(114)
Executed Once for Upward Differentiation
Not supported
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification (See note.)
!CPS(114)
Block program areas
Step program areas
Subroutines
Interrupt tasks
OK
OK
OK
OK
Area
S
1
S
2
CIO Area
CIO 0000 to CIO 6143
Work Area
W000 to W511
Holding Bit Area
H000 to H511
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 ...