EasyManuals Logo

Omron CJ2 CPU UNIT SOFTWARE User Manual

Omron CJ2 CPU UNIT SOFTWARE
670 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 #499 background imageLoading...
Page #499 background image
A-15
Appendices
CJ2 CPU Unit Software User’s Manual
A-1 Instruction Functions
App
A-1-5 Comparison Instructions
Time Compari-
son
LD, AND,
OR + = DT,
<> DT, < DT,
<= DT, > DT,
>= DT
341 (=
DT)
342 (<>
DT)
343 (<
DT)
344 (<=
DT)
345 (>
DT)
346 (>=
DT)
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 com-
parison so it is easy to create calendar timer functions.
LD:
Logic
start
AND,
OR:
Contin-
ues on
rung
LD: Not
required
AND, OR:
Required
UNSIGNED
COMPARE
CMP
!CMP
020 Output Required
DOUBLE
UNSIGNED
COMPARE
CMPL 060 Output Required
SIGNED
BINARY COM-
PAR E
CPS
!CPS
114 Output Required
DOUBLE
SIGNED
BINARY COM-
PAR E
CPSL 115 Output Required
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
S1
C
S2
LD (LOAD):
AND:
OR:
S1
C
S2
S1
C
S2
C: Control word
S1: 1st word of
present time
S2: 1st word of
comparison time
Symbol
Symbol
Symbol
CMP(020)
S
1
S
2
S1: Comparison
data 1
S
2: Comparison
(>, >=, =, <=, <, <>)
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
CPS(114)
S
1
S
2
S1: Comparison
data 1
S
2: Comparison
data 2
(>, >=, =, <=, <, <>)
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.
Signed binary
comparison
Arithmetic Flags
CPSL(115)
S
1
S
2
S1: Comparison
data 1
S
2: Comparison
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.
Signed binary
comparison
Arithmetic Flags

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ2 CPU UNIT SOFTWARE and is the answer not in the manual?

Omron CJ2 CPU UNIT SOFTWARE Specifications

General IconGeneral
BrandOmron
ModelCJ2 CPU UNIT SOFTWARE
CategorySoftware
LanguageEnglish

Related product manuals