EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #307 background imageLoading...
Page #307 background image
269
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Comparison Instructions
3
TCMP
TCMP
Applicable Program Areas
Operands
z Operand Specifications
Flags
Instruction Mnemonic Variations
Function
code
Function
TABLE COMPARE TCMP @TCMP 085
Compares the source data to the contents of 16
consecutive words and turns ON the correspond-
ing bit in the result word when the contents of the
words are equal.
Symbol
TCMP
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage OK OK OK OK OK OK
Operand Description Data type Size
S Source data WORD 1
T First word of table WORD 16
R Result word UINT 1
T: First word of table R: Result word
Area
Word addresses
Indirect
DM/EM
addresses
Con-
stants
Registers
TK CF
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
S
OK OK OK OK OK OK OK OK OK OK
OK OK
--- OK --- --- --- ---T
---
---
R OK
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.
TCMP(085)
S
T
R
S: Source data
T: First word of table
R: Result word
T
T+1
T+15
to
to
Comparison data 0
Comparison data 1
Comparison data 15
15 014
R
1
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

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals