EasyManuals Logo
Home>Omron>Controller>SYSMAC CJ - REFERENCE MANUAL 08-2008

Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 User Manual

Omron SYSMAC CJ - REFERENCE MANUAL 08-2008
1405 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 #80 background imageLoading...
Page #80 background image
40
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
291
Time Compari-
son
LD, AND, OR + =
DT, <> DT, < DT,
<= DT, > DT, >=
DT
341 (= DT)
342 (<> DT)
343 (< DT)
344 (<= DT)
345 (> DT)
346 (>= DT)
(CS/CJ-series
CPU Unit Ver. 2.0
or later only)
Time comparison instructions compare two BCD time values and create
an ON execution condition when the comparison condition is true.
There are three types of time comparison instructions, LD (LOAD),
AND, and OR. Time values (year, month, day, hour, minute, and second)
can be masked/unmasked in the comparison so it is easy to create cal-
endar timer functions.
LD: Not
required
AND, OR:
Required
297
UNSIGNED COM-
PARE
CMP
!CMP
*1
020
Output
Required
303
DOUBLE
UNSIGNED
COMPARE
CMPL
060
Output
Required
306
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution
condition
Page
S1
C
S2
LD (LOAD):
AND:
OR:
S1
C
S2
S1
C
S2
Symbol
Symbol
Symbol
C: Control word
S1: 1st word of
present time
S2: 1st word of
comparison
time
CMP(020)
S
1
S
2
S1: Comparison
data 1
S
2: Comparison
data 2
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.
Unsigned binary
comparison
Arithmetic Flags
(>, >=, =, <=, <, <>)
CMPL(060)
S
1
S
2
S1: Comparison
data 1
S
2: Comparison
data 2
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.
Unsigned binary
comparison
Arithmetic Flags
(>, >=, =, <=, <, <>)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 and is the answer not in the manual?

Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Specifications

General IconGeneral
BrandOmron
ModelSYSMAC CJ - REFERENCE MANUAL 08-2008
CategoryController
LanguageEnglish

Related product manuals