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

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

Advertisement

Instruction Functions
Instruction
Symbol/Operand
Mnemonic
Code
EXPANDED
BCMP2(502)
BLOCK COM-
PARE
BCMP2
@BCMP2
502
(CS1-H, CJ1-H, or
CS1D CPU Unit
S: Source data
Ver. 2.0 or later
T: 1st word of
only)
block
CJ1M CPU Unit
R: Result word
(Pre-Ver. 2.0 or
Unit Ver. 2.0 or
later)
AREA RANGE
ZCP(088)
COMPARE
ZCP
@ZCP
088
(CS1-H, CJ1-H,
CJ1M, or CS1D
only)
CD: Compare
data (1 word)
LL: Lower limit of
range
UL: Upper limit of
range
DOUBLE AREA
ZCPL(116)
RANGE COM-
PARE
ZCPL
@ZCPL
116
(CS1-H, CJ1-H,
CJ1M, or CS1D
CD: Compare
only)
data (2 words)
LL: Lower limit of
range
UL: Upper limit of
range
42
Compares the source data to up to 256 ranges (defined by upper and
lower limits) and turns ON the corresponding bit in the result word when
the source data is within a range.
S
T
R
T+1
T+3
Source data
S
T+2N+1
Note: A can be less than
Compares the 16-bit unsigned binary value in CD (word contents or
constant) to the range defined by LL and UL and outputs the results to
the Arithmetic Flags in the Auxiliary Area.
CD
LL
UL
Compares the 32-bit unsigned binary value in CD and CD+1 (word con-
tents or constant) to the range defined by LL and UL and outputs the
results to the Arithmetic Flags in the Auxiliary Area.
CD
LL
UL
Function
1: In range
0: Not in range
T
N
n=255 max.
D
T+2
Range 0 A
Range 0 B
T+4
Range 1 A
Range 1 B
D+15 max.
T+2N+2
Range N A
Range N B
or equal to B or
greater the B.
Section 2-2
Location
Execution
condition
Output
Required
Bit
0
1
Output
Required
Output
Required
Page
322
326
329

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents