![Omron CJ1G-CPUxx Instructions Manual Download Page 58](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491058.webp)
37
Instruction Functions
Section 2-2
Symbol Compari-
son (Double-
word, signed)
LD, AND, OR + =,
<>, <, <=, >, >=
+SL
303 (=)
308 (<>)
313 (<)
318 (<=)
323 (>)
328 (>=)
S
1
: Comparison
data 1
S
2
: Comparison
data 2
Symbol comparison instructions (double-word, signed) compare two
values (constants and/or the contents of specified double-word data) in
signed 32-bit binary (8-digit hexadecimal) and create an ON execution
condition when the comparison condition is true. There are three types
of symbol comparison instructions, LD (LOAD), AND, and OR.
LD: Not
required
AND, OR:
Required
UNSIGNED COM-
PARE
CMP
!CMP
020
Output
Required
DOUBLE
UNSIGNED
COMPARE
CMPL
060
Output
Required
SIGNED BINARY
COMPARE
CPS
!CPS
114
Output
Required
DOUBLE
SIGNED BINARY
COMPARE
CPSL
115
Output
Required
MULTIPLE COM-
PARE
MCMP
@MCMP
019
Output
Required
Instruction
Mnemonic
Code
Symbol/Operand
Function
Location
Execution
condition
Page
S
1
: Comparison
data 1
S
2
: Comparison
data 2
CMP(020)
S
1
S
2
Unsigned binary
comparison
Arithmetic Flags
(>, >=, =, <=, <, <>)
Compares two unsigned binary values (constants and/or the contents
of specified words) and outputs the result to the Arithmetic Flags in
the Auxiliary Area.
S
1
: Comparison
data 1
S
2
: Comparison
data 2
CMPL(060)
S
1
S
2
Unsigned binary
comparison
Arithmetic Flags
(>, >=, =, <=, <, <>)
S1+1
S2+1
Compares two double unsigned binary values (constants and/or the
contents of specified words) and outputs the result to the Arithmetic
Flags in the Auxiliary Area.
S
1
: Comparison
data 1
S
2
: Comparison
data 2
CPS(114)
S
1
S
2
Signed binary
comparison
Arithmetic Flags
(>, >=, =, <=, <, <>)
Compares two signed binary values (constants and/or the contents of
specified words) and outputs the result to the Arithmetic Flags in the
Auxiliary Area.
S
1
: Comparison
data 1
S
2
: Comparison
data 2
CPSL(115)
S
1
S
2
Signed binary
comparison
Arithmetic Flags
(>, >=, =, <=, <, <>)
S1+1
S2+1
Compares two double signed binary values (constants and/or the
contents of specified words) and outputs the result to the Arithmetic
Flags in the Auxiliary Area.
S
1
: 1st word of
set 1
S
2
: 1st word of
set 2
R: Result word
MCMP(019)
S
1
S
2
R
Compares 16 consecutive words with another 16 consecutive words
and turns ON the corresponding bit in the result word where the
contents of the words are not equal.
Comparison
0: Words
are equal.
1: Words
aren't
equal.
R
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 ...