
265
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-7
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
S: Source data
T: First word of table
R: Result word
TCMP(085)
S
T
R
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 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 ...