Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 361

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Comparison Instructions
Description
Area
EM Area with bank
Indirect DM/EM
addresses in binary
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
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+2
S
B+4
S
B+6
S
B+8
S
B+10
S
B+12
S
B+14
S
B+16
S
B+18
S
B+20
S
B+22
S
B+24
S
B+26
S
B+28
S
B+30
S
For example, bit 00 of R is turned ON if S is within the first range (B
B+1), bit 01 of R is turned ON if S is within the second range (B+2
..., and bit 15 of R is turned ON if S is within the fifteenth range (B+30
B+31). All other bits in R are turned OFF.
S
En_00000 to
En_00000 to
En_32767
En_32736
(n = 0 to C)
(n = 0 to C)
@ D00000 to @ D32767
@ E00000 to @ E32767
@ En_00000 to @ En_32767
(n = 0 to C)
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
#0000 to #FFFF
---
(binary)
DR0 to DR15
---
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
B+1
Bit 00 of R
B+3
Bit 01 of R
B+5
Bit 02 of R
B+7
Bit 03 of R
B+9
Bit 04 of R
B+11
Bit 05 of R
B+13
Bit 06 of R
B+15
Bit 07 of R
B+17
Bit 08 of R
B+19
Bit 09 of R
B+21
Bit 10 of R
B+23
Bit 11 of R
B+25
Bit 12 of R
B+27
Bit 13 of R
B+29
Bit 14 of R
B+31
Bit 15 of R
Section 3-7
B
R
En_00000 to
En_32767
(n = 0 to C)
DR0 to DR15
S
B+3),
321
S
S

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents