EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 269

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
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...
236
Comparison Instructions Section 3-6
R: Result word
Each bit of R contains the result of a comparison between S and one of the 16
ranges defined the 32-word block. Bit n of R (n = 00 to 15) contains the result
of the comparison between S and the n
th
pair of words.
Operand Specifications
Description BCMP(068) compares the source data (S) to the 16 ranges defined by pairs
of lower and upper limit values in B through B+31. The first word in each pair
(B+2n) provides the lower limit and the second word (B+2n+1) provides the
upper limit of range n (n = 0 to 15). If S is within any of these ranges (inclusive
of the upper and lower limits), the corresponding bit in R is turned ON. The
rest of the bits in R will be turned OFF.
B
S B+1 Bit 00 of R
B+2
S B+3 Bit 01 of R
B+4
S B+5 Bit 02 of R
B+6
S B+7 Bit 03 of R
B+8
S B+9 Bit 04 of R
B+10
S B+11 Bit 05 of R
15 014
R
1
Comparison result for S
and range B B+1
Comparison result for S
and range B+2 B+3Comparison result for S
and range B+28 B+29
Comparison result for S
and range B+30 B+31
Area S B R
CIO Area CIO 0 to
CIO 6143
CIO 0 to
CIO 6112
CIO 0 to
CIO 6143
Work Area W0 to W511 W0 to W480 W0 to W511
Holding Bit Area H0 to H511 H0 to H480 H0 to H511
Auxiliary Bit Area A0 to A959 A0 to A928 A448 to A959
Timer Area T0000 to T4095 T0000 to T4064 T0000 to T4095
Counter Area C0000 to C4095 C0000 to C4064 C0000 to C4095
DM Area D0 to D32767 D0 to D32736 D0 to D32767
Indirect DM addresses
in binary
@ D0 to @ D32767
Indirect DM addresses
in BCD
*D0 to *D32767
Constants #0000 to #FFFF
(binary)
&0 to &65535
(unsigned deci-
mal)
32768 to 0 to
32767 (signed
decimal)
---
Data Registers DR0 to DR15 --- DR0 to DR15
Index Registers ---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15

Table of Contents

Related product manuals