Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 300

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

MCMP
Instruction
MULTIPLE COMPARE
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S1
First word of set 1
S2
First word of set 2
R
Result word
S
: First word of set 1
1
S1
Comparison data 0
S1+1
Comparison data 1
S1+15
Comparison data 15
S
: First word of set 2
2
S2
Comparison data 0
S2+1
Comparison data 1
S2+15
Comparison data 15
Operand Specifications
Word addresses
Area
CIO
WR
HR
S1, S2
OK
OK
OK
R
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
MCMP
@MCMP
Block program areas
Step program areas
OK
OK
Description
R: Result word
R
to
Note Specifies the beginning of the first 16-word range. S
to
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Function
code
Compares 16 consecutive words with another 16
consecutive words and turns ON the correspond-
019
ing bit in the result word where the contents of the
words are not equal.
MCMP
MCMP(019)
S
1
S1: First word of set 1
S
2
S2: First word of set 2
R: Result word
R
Subroutines
OK
15
14
1
Comparison result for S
+14 and S
1
Comparison result for S
+15 and S
1
15 must be in the same data area.
Indirect
DM/EM
Registers
Con-
addresses
stants
@DM
*DM
DR
@EM
*EM
---
OK
OK
---
OK
3. Instructions
Function
SFC action or
Interrupt tasks
transition programs
OK
OK
Data type
Size
WORD
16
WORD
16
UINT
0
Comparison result for S
and S
1
Comparison result for S
+1 and S
1
+14
2
+15
2
and S
+ 15 and S
1
1
2
Pulse
TK
CF
bits
Indirect
IR
using IR
---
OK
---
---
---
3
1
2
+1
2
and S
+
2
TR
bits
---
263

Advertisement

Table of Contents
loading

Table of Contents