Multiple Compare: Mcmp - Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual

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

Advertisement

Comparison Instructions
3-7-7

MULTIPLE COMPARE: MCMP(019)

Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operands
D0001
D0005
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.
MCMP(019)
S
S
1
S
S
2
R: Result word
R
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Block program areas
OK
OK
S
: First word of set 1
1
Specifies the beginning of the first 16-word range. S
the same data area.
S
: First word of set 2
2
Specifies the beginning of the second 16-word range. S
in the same data area.
R: Result word
Each bit of R contains the result of a comparison between two words in the
16-word sets. Bit n of R (n = 00 to 15) contains the result of the comparison
between words S
+n and S
1
15
14
R
Comparison result for S
Comparison result for S
1234
5678
Comparison
ABCD
EF12
1
: First word of set 1
2
: First word of set 2
Step program areas
Subroutines
OK
+n.
2
1
0
Comparison result for S
Comparison result for S
+14 and S
+14
1
2
+15 and S
+15
1
2
Section 3-7
Flag status
>
(1)
=
(0)
<
(0)
MCMP(019)
@MCMP(019)
Not supported
Interrupt tasks
OK
and S
+15 must be in
1
1
and S
+15 must be
2
2
and S
1
2
+1 and S
+1
1
2
315

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents