EasyManuals Logo
Home>Omron>Controller>CQM1H - PROGRAM

Omron CQM1H - PROGRAM User Manual

Omron CQM1H - PROGRAM
602 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
282
Comparison Instructions Section 5-19
5-19-2 TABLE COMPARE – TCMP(85)
Limitations DM 6144 to DM 6655 cannot be used for R.
Description When the execution condition is OFF, TCMP(85) is not executed. When the
execution condition is ON, TCMP(85) compares CD to the content of TB,
TB+1, TB+2, ..., and TB+15. If CD is equal to the content of any of these
words, the corresponding bit in R is set, e.g., if the CD equals the content of
TB, bit 00 is turned ON, if it equals that of TB+1, bit 01 is turned ON, etc. The
rest of the bits in R will be turned OFF.
Flags ER: The comparison table (i.e., TB through TB+15) exceeds the data
area.
Indirectly addressed EM/DM word is non-existent.
(Content of *EM/*DM word is not BCD, or the EM/DM area boundary
has been exceeded.)
Example The following example shows the comparisons made and the results provided
for TCMP(85). Here, the comparison is made during each cycle when IR
00000 is ON.
CD: Compare data
IR, SR, DM, EM, HR, TIM/CNT, LR, #
TB: First comparison table word
IR, SR, DM, EM, HR, TIM/CNT, LR
Ladder Symbols
Operand Data Areas
R: Result word
IR, SR, DM, EM, HR, TIM/CNT, LR
TCMP(85)
CD
TB
R
@TCMP(85)
CD
TB
R
R: 216
DM 0000 0100 IR 21600 0
DM 0001 0200 IR 21601 0
DM 0002 0210 IR 21602 1
DM 0003 0400 IR 21603 0
DM 0004 0500 IR 21604 0
DM 0005 0600 IR 21605 0
DM 0006 0210 IR 21606 1
DM 0007 0800 IR 21607 0
DM 0008 0900 IR 21608 0
DM 0009 1000 IR 21609 0
DM 0010 0210 IR 21610 1
DM 0011 1200 IR 21611 0
DM 0012 1300 IR 21612 0
DM 0013 1400 IR 21613 0
DM 0014 0210 IR 21614 1
DM 0015 1600 IR 21615 0
00000
Compare the data in IR 001
with the given ranges.
Address Instruction Operands
00000 LD 00000
00001 TCMP(85)
001
DM 0000
216
TCMP(85)
001
DM 0000
216
IR 001 0210
CD: 001 Upper limits

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Omron CQM1H - PROGRAM Specifications

General IconGeneral
BrandOmron
ModelCQM1H - PROGRAM
CategoryController
LanguageEnglish

Related product manuals