Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 266

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Comparison Instructions
3-6-8
TABLE COMPARE: TCMP(085)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operands
Operand Specifications
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.
TCMP(085)
S
S: Source data
T
T: First word of table
R
R: Result word
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Block program areas
OK
OK
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.
Comparison data 0
Comparison data 1
to
to
Comparison data 15
15
14
R
Comparison result for S and T+14
Comparison result for S and T+15
Area
CIO Area
Work Area
Holding Bit Area
Auxiliary Bit Area
Timer Area
Counter Area
DM Area
Step program areas
Subroutines
OK
1
0
Comparison result for S and T
Comparison result for S and T+1
S
CIO 0 to
CIO 0 to
CIO 6143
CIO 6128
W0 to W511
W0 to W496
H0 to H511
H0 to H496
A0 to A959
A0 to A944
T0000 to T4095
T0000 to T4080
C0000 to C4095
C0000 to C4080
D0 to D32767
D0 to D32752
Section 3-6
TCMP(085)
@TCMP(085)
Not supported
Interrupt tasks
OK
T
R
CIO 0 to
CIO 6143
W0 to W511
H0 to H511
A448 to A959
T0000 to T4095
C0000 to C4095
D0 to D32767
233

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents