Omron CS1G/H-CPUxx-EV1 Programming Manual page 122

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxx-EV1:
Table of Contents

Advertisement

Comparison Instructions
Instruction
Symbol/Operand
Mnemonic
Code
Symbol Compari-
S
: Comparison
1
son (Double-
data 1
word, signed)
S
: Comparison
2
LD, AND, OR + =,
data 2
<>, <, <=, >, >=
+SL
303 (=)
308 (<>)
313 (<)
318 (<=)
323 (>)
328 (>=)
Time Compari-
LD (LOAD):
son
LD, AND, OR + =
Symbol
DT, <> DT, < DT,
C
<= DT, > DT, >=
DT
S1
341 (= DT)
S2
342 (<> DT)
343 (< DT)
344 (<= DT)
345 (> DT)
AND:
346 (>= DT)
Symbol
(CS/CJ-series
CPU Unit Ver. 2.0
or later only)
S1
S2
OR:
Symbol
S1
S2
C: Control word
S1: 1st word of
present time
S2: 1st word of
comparison
time
UNSIGNED COM-
CMP(020)
PARE
CMP
*1
!CMP
020
S
: Comparison
1
data 1
S
: Comparison
2
data 2
DOUBLE
CMPL(060)
UNSIGNED
COMPARE
CMPL
060
S
: Comparison
1
data 1
S
: Comparison
2
data 2
86
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.
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.
C
C
Compares two unsigned binary values (constants and/or the contents
of specified words) and outputs the result to the Arithmetic Flags in
S
the Auxiliary Area.
1
S
2
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
S
2
S1+1
Function
Unsigned binary
comparison
Arithmetic Flags
(>, >=, =, <=, <, <>)
Unsigned binary
comparison
S2+1
Arithmetic Flags
(>, >=, =, <=, <, <>)
Section 3-5
Location
Execution
condition
LD: Not required
AND, OR:
Required
LD: Not required
AND, OR:
Required
Output
Required
Output
Required

Advertisement

Table of Contents
loading

Table of Contents