317
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