![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268357.webp)
318
Comparison Instructions
Section 3-7
Flags
Example
When CIO 000000 is ON in the following example, MCMP(019) compares
words D00100 through D00115 in order to words D00200 through D00215
and turns ON the corresponding bits in D00300 when the words
are not
equal.
3-7-8
TABLE COMPARE: TCMP(085)
Purpose
Compares the source data to the contents of 16 consecutive words and turns
ON the corresponding bit in the result word when the contents of the words
are
equal.
Ladder Symbol
Variations
Applicable Program Areas
Name
Label
Operation
Error Flag
ER
OFF
Equals Flag
=
ON if the result word is 0000.
(The two 16-word sets contain the same data.)
OFF in all other cases.
S1:
S2:
R: D00300
TCMP(085)
S
T
R
S
: Source data
T
: First word of table
R
: Result word
Variations
Executed Each Cycle for ON Condition
TCMP(085)
Executed Once for Upward Differentiation
@TCMP(085)
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
Summary of Contents for SYSMAC CS1D-CPU**
Page 3: ...iv...
Page 29: ...xxx...
Page 185: ...146 List of Instructions by Function Code Section 2 4...
Page 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Page 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Page 1391: ...1352 ASCII Code Table Appendix A...