![Omron CJ1G-CPUxx Instructions Manual Download Page 288](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491288.webp)
267
Comparison Instructions
Section 3-7
Description
TCMP(085) compares the source data (S) to each of the 16 words T through
T+15 and turns ON the corresponding bit in word R when the data are equal.
Bit n of R is turned ON if the content of T+n is equal to S and it is turned OFF
if they are not equal.
S is compared to the content of T and bit 00 of R is turned ON if they are
equal or OFF if they are not equal, S is compared to the content of T+1 and bit
01 of R is turned ON if they are equal or OFF if they are not equal, ..., and S is
compared to the content of T+15 and bit 15 of R is turned ON if they are equal
or OFF if they are not equal.
Flags
Example
When CIO 000000 is ON in the following example, TCMP(085) compares the
content of D00100 with the contents of words D00200 through D00215 and
turns ON the corresponding bits in D00300 when the contents are equal or
OFF when the contents are not equal.
Comparison
1: Data are equal.
0: Data aren't equal.
R
Name
Label
Operation
Error Flag
ER
OFF
Equals Flag
=
ON if the result word is 0000.
(None of the 16 words in the table equals S.)
OFF in all other cases.
S: D00100
T:
R: D00300
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...