
315
Comparison Instructions
Section 3-7
3-7-7
MULTIPLE COMPARE: MCMP(019)
Purpose
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.
Ladder Symbol
Variations
Applicable Program Areas
Operands
S
1
: First word of set 1
Specifies the beginning of the first 16-word range. S
1
and S
1
+15 must be in
the same data area.
S
2
: First word of set 2
Specifies the beginning of the second 16-word range. S
2
and S
2
+15 must be
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
1
+n and S
2
+n.
(1)
(0)
(0)
>
=
<
1234
5678
ABCD
EF12
D0001
D0005
Flag status
Comparison
MCMP(019)
S
1
S
2
R
S
1
: First word of set 1
S
2
: First word of set 2
R
: Result word
Variations
Executed Each Cycle for ON Condition
MCMP(019)
Executed Once for Upward Differentiation
@MCMP(019)
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Not supported
Block program areas
Step program areas
Subroutines
Interrupt tasks
OK
OK
OK
OK
15
0
14
R
1
Comparison result for S
1
and S
2
Comparison result for S
1
+1 and S
2
+1
Comparison result for S
1
+14 and S
2
+14
Comparison result for S
1
+15 and S
2
+15
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...