EasyManuals Logo
Home>Omron>Controller>CJ1M-CPU series

Omron CJ1M-CPU series Programming Manual

Omron CJ1M-CPU series
383 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #104 background imageLoading...
Page #104 background image
83
Comparison Instructions Section 3-5
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 COM-
PARE
CMPL
060
Output
Required
SIGNED BINARY
COMPARE
CPS
!CPS
114
Output
Required
DOUBLE
SIGNED BINARY
COMPARE
CPSL
115
Output
Required
MULTIPLE
COMPARE
MCMP
@MCMP
019
Output
Required
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution
condition
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

Table of Contents

Other manuals for Omron CJ1M-CPU series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ1M-CPU series and is the answer not in the manual?

Omron CJ1M-CPU series Specifications

General IconGeneral
BrandOmron
ModelCJ1M-CPU series
CategoryController
LanguageEnglish

Related product manuals