![background image](http://html1.mh-extra.com/html/omron/sysmac-c200h/sysmac-c200h_operation-manual_742423154.webp)
141
5-15
Data Comparison
This section describes the instructions used for comparing data. CMP(20) is
used to compare the contents of two words; BCMP(68) is used to determine
within which of several preset ranges the content of one word lies; and
TCMP(85) is used to determine which of several preset values the content of
one word equals.
5-15-1
MULTI-WORD COMPARE – MCMP(19)
TB1: First word of table 1
IR, SR, AR, DM, HR, TC, LR
TB2: First word of table 2
IR, SR, AR, DM, HR, TC, LR
Ladder Symbols
Operand Data Areas
R: Result word
IR, AR, DM, HR, TC, LR
MCMP(19)
TB1
TB2
R
@MCMP(19)
TB1
TB2
R
Limitations
Can be performed with the CPU11-E only.
When the execution condition is OFF, MCMP(19) is not executed. When the
execution condition is ON, MCMP(19) compares the content of TB1 to TB2,
TB1+1 to TB2+1, TB1+2 to TB2+2, ..., and TB1+15 to TB2+15. If the first pair
is equal, the first bit in R is turned OFF, etc., i.e., if the content of TB1 equals
the content of TB2, bit 00 is turned OFF, if the content of TB1+1 equals the
content of TB2+1, bit 01 is turned OFF, etc. The rest of the bits in R will be
turned ON.
Flags
ER:
One of the tables (i.e., TB1 through TB1+15, or TB2 through
TB2+15) exceeds the data area.
Indirectly addressed DM word is non-existent. (Content of
*
DM word
is not BCD, or the DM area boundary has been exceeded.)
Description
Data Comparison
Section 5-15
Summary of Contents for SYSMAC C200H
Page 1: ...OPERATION MANUAL C200H CPU01 E 03 E 11 E SYSMAC Programmable Controllers Cat No W130 E1 05 ...
Page 2: ...C200H Programmable Controllers CPU01 E 03 E 11 E Operation Manual Revised June 2003 ...
Page 3: ...iv ...
Page 5: ...vi ...
Page 8: ...TABLE OF CONTENTS ix Glossary 345 Index 363 Revision History 369 ...
Page 342: ...336 Programmer Program Date Page Word Contents Notes Word Contents Notes Data Storage ...
Page 374: ...Cat No W130 E1 05 C200H Programmable Controllers CPU01 E 03 E 11 E OPERATION MANUAL ...