233
Comparison Instructions Section 3-6
3-6-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
Operands T: First word of table
Specifies the beginning of the 16-word table. T and T+15 must be in the same
data area.
R: Result word
Each bit of R contains the result of a comparison between S and a word in the
16-word table. Bit n of R (n = 00 to 15) contains the result of the comparison
between S and T+n.
Operand Specifications
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
15 014
R
1
to
to
Comparison result for S and T
Comparison result for S and T+1
Comparison result for S and T+14
Comparison result for S and T+15
Comparison data 0
Comparison data 1
Comparison data 15
Area S T R
CIO Area CIO 0 to
CIO 6143
CIO 0 to
CIO 6128
CIO 0 to
CIO 6143
Work Area W0 to W511 W0 to W496 W0 to W511
Holding Bit Area H0 to H511 H0 to H496 H0 to H511
Auxiliary Bit Area A0 to A959 A0 to A944 A448 to A959
Timer Area T0000 to T4095 T0000 to T4080 T0000 to T4095
Counter Area C0000 to C4095 C0000 to C4080 C0000 to C4095
DM Area D0 to D32767 D0 to D32752 D0 to D32767