Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 359

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

Advertisement

Comparison Instructions
Description
Flags
Example
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.
Comparison
Name
Label
Error Flag
ER
Equals Flag
=
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.
S: D00100
R
Operation
OFF
ON if the result word is 0000.
(None of the 16 words in the table equals S.)
OFF in all other cases.
T:
Section 3-7
1: Data are equal.
0: Data aren't equal.
R: D00300
319

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents