Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 81

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Instruction Functions
Instruction
Symbol/Operand
Mnemonic
Code
SIGNED BINARY
CPS(114)
COMPARE
CPS
*1
!CPS
114
S
: Comparison
1
data 1
S
: Comparison
2
data 2
DOUBLE
CPSL(115)
SIGNED BINARY
COMPARE
CPSL
115
S
1
: Comparison
data 1
S
2
: Comparison
data 2
MULTIPLE COM-
PARE
MCMP(019)
MCMP
@MCMP
019
S
1
: 1st word of
set 1
S
2
: 1st word of
set 2
R: Result word
TABLE COM-
TCMP(085)
PARE
TCMP
@TCMP
085
S: Source data
T: 1st word of
table
R: Result word
UNSIGNED
BCMP(068)
BLOCK COM-
PARE
BCMP
@BCMP
068
S: Source data
T: 1st word of
table
R: Result word
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 16 consecutive words with another 16 consecutive words
and turns ON the corresponding bit in the result word where the
contents of the words are not equal.
S
1
Comparison
S
2
R
Compares the source data to the contents of 16 words and turns
ON the corresponding bit in the result word when the contents are
S
equal.
Comparison
T
R
Compares the source data to 16 ranges (defined by 16 lower limits
and 16 upper limits) and turns ON the corresponding bit in the result
word when the source data is within the range.
S
T
R
Source data
S
Function
Signed binary
comparison
Arithmetic Flags
(>, >=, =, <=, <, <>)
Signed binary
comparison
S2+1
Arithmetic Flags
(>, >=, =, <=, <, <>)
R
Ranges
Lower limit
Upper limit
to
T+1
T
T+2
to
T+3
to
T+29
T+28
T+30
to
T+31
Section 2-2
Location
Execution
condition
Output
Required
Output
Required
Output
Required
R
0: Words
are equal.
1: Words
aren't
equal.
Output
Required
1: Data are
equal.
0: Data aren't
equal.
Output
Required
1: In range
0: Not in range
R
0
1
14
15
Page
309
312
315
317
320
41

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents