Cj2 Cpu Unit Software User's Manual - Omron CJ2 CPU - REV 10-2010 User Manual

Cj2 cpu unit software
Table of Contents

Advertisement

Instruction
Mnemonic
Time Compari-
LD, AND,
341 (=
son
OR + = DT,
DT)
<> DT, < DT,
342 (<>
<= DT, > DT,
DT)
>= DT
343 (<
DT)
344 (<=
DT)
345 (>
DT)
346 (>=
DT)
UNSIGNED
CMP
020
COMPARE
!CMP
DOUBLE
CMPL
060
UNSIGNED
COMPARE
SIGNED
CPS
114
BINARY COM-
!CPS
PARE
DOUBLE
CPSL
115
SIGNED
BINARY COM-
PARE

CJ2 CPU Unit Software User's Manual

Code
Symbol/Operand
LD (LOAD):
Symbol
C
S1
S2
AND:
Symbol
C
S1
S2
OR:
Symbol
C
S1
S2
C:
Control word
S1: 1st word of
present time
S2: 1st word of
comparison time
CMP(020)
S
1
S
2
S
: Comparison
1
data 1
S
: Comparison
2
CMPL(060)
S
1
S
2
S
: Comparison
1
data 1
S
: Comparison
2
data 2
CPS(114)
S
1
S
2
S
: Comparison
1
data 1
S
: Comparison
2
data 2
CPSL(115)
S
1
S
2
S
: Comparison
1
data 1
S
: Comparison
2
Function
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.
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
(>, >=, =, <=, <, <>)
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
S1+1
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.
Signed binary
comparison
Arithmetic Flags
(>, >=, =, <=, <, <>)
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
S1+1
Arithmetic Flags
(>, >=, =, <=, <, <>)
Appendices
Execution
Location
condition
LD:
LD: Not
Logic
required
start
AND, OR:
AND,
Required
OR:
Contin-
ues on
rung
Output
Required
Output
Required
S2+1
Output
Required
Output
Required
S2+1
A-15

Advertisement

Table of Contents
loading

Table of Contents