EasyManua.ls Logo

Omron CPM1

Omron CPM1
541 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
Loading...
249
Comparison Instructions Section 5-18
type of programming, 10200, 10201, and 10202 are changed only when
CMP(20) is executed.
5-18-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 DM word is non-existent. (Content of *DM word
is not BCD, or the DM area boundary has been exceeded.)
CMP(20)
010
HR 09
00000
25505
10200
25507
10202
TR
0
25506
10201
Greater Than
Equal
Less Than
Address Instruction Operands Address Instruction Operands
00000 LD 00000
00001 OUT TR 0
00002 CMP(20)
HR 09
010
00003 AND 25505
00004 OUT 10200
00005 LD TR 0
00006 AND 25506
00007 OUT 10201
00008 LD TR 0
00009 AND 25507
00010 OUT 10202
CD: Compare data
IR, SR, DM, HR, TC, LR, #
TB: First comparison table word
IR, SR, DM, HR, TC, LR
Ladder Symbols
Operand Data Areas
R: Result word
IR, SR, DM, HR, TC, LR
TCMP(85)
CD
TB
R
@TCMP(85)
CD
TB
R

Table of Contents

Other manuals for Omron CPM1

Related product manuals