Omron SYSMAC CS Series Programming Manual page 99

Hide thumbs Also See for SYSMAC CS Series:
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
<>, <, <=, >, >=
+SL
303 (=)
308 (<>)
313 (<)
318 (<=)
323 (>)
328 (>=)
COMPARE
CMP(020)
CMP
!CMP
020
S
: Comparison
1
data 1
S
: Comparison
2
data 2
DOUBLE COM-
CMPL(060)
PARE
CMPL
060
S
: Comparison
1
data 1
S
: Comparison
2
data 2
SIGNED BINARY
CPS(114)
COMPARE
CPS
!CPS
114
S
: Comparison
1
data 1
S
: Comparison
2
data 2
DOUBLE
CPSL(115)
SIGNED BINARY
COMPARE
CPSL
115
S
: Comparison
1
data 1
S
: Comparison
2
data 2
TABLE
TCMP(085)
COMPARE
TCMP
@TCMP
085
S: Source data
T: 1st word of
table
R: Result word
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.
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
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
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
S
2
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
S
2
S1+1
Compares the source data to the contents of 16 consecutive words
and turns ON the corresponding bit in the result word when the
contents of the words are equal.
S
Comparison
T
R
Function
Unsigned binary
comparison
Arithmetic Flags
(>, >=, =, <=, <, <>)
Unsigned binary
comparison
S2+1
Arithmetic Flags
(>, >=, =, <=, <, <>)
Signed binary
comparison
Arithmetic Flags
(>, >=, =, <=, <, <>)
Signed binary
comparison
S2+1
Arithmetic Flags
(>, >=, =, <=, <, <>)
R
Section 3-5
Location
Execution
condition
LD: Not
required
AND, OR:
Required
Output
Required
Output
Required
Output
Required
Output
Required
Output
Required
1: Data are
equal.
0: Data aren't
equal.
79

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1g/h-cpu-ev1 seriesCj1g-cpu seriesSysmac cj series

Table of Contents