Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 302

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

TCMP
Instruction
TABLE COMPARE
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S
Source data
T
First word of table
R
Result word
T: First word of table
T
Comparison data 0
T+1
Comparison data 1
to
Comparison data 15
T+15
Operand Specifications
Word addresses
Area
CIO
WR
HR
S
T
OK
OK
OK
R
Flags
Name
Error Flag
Equals Flag
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
TCMP
@TCMP
Block program areas
Step program areas
OK
OK
Description
to
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Label
ER
OFF
=
• ON if the result word is 0000.
(The two 16-word sets contain the same data.)
• OFF in all other cases.
Function
code
Compares the source data to the contents of 16
consecutive words and turns ON the correspond-
085
ing bit in the result word when the contents of the
words are equal.
TCMP
TCMP(085)
S
S: Source data
T
T: First word of table
R: Result word
R
Subroutines
OK
R: Result word
15
14
R
Comparison result for S and T+14
Comparison result for S and T+15
Indirect
DM/EM
Registers
Con-
addresses
stants
@DM
*DM
DR
@EM
*EM
OK
OK
OK
OK
---
---
OK
Operation
3. Instructions
Function
SFC action or
Interrupt tasks
transition programs
OK
OK
Data type
Size
WORD
WORD
16
UINT
1
0
Comparison result for S and T
Comparison result for S and T+1
Pulse
TK
CF
bits
Indirect
IR
using IR
---
OK
---
---
---
3
1
1
TR
bits
---
265

Advertisement

Table of Contents
loading

Table of Contents