Omron CS1G/H-CPUxx-EV1 Programming Manual page 124

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxx-EV1:
Table of Contents

Advertisement

Comparison Instructions
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
only)
CD: Compare
data (2 words)
LL: Lower limit of
range
UL: Upper limit of
range
88
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
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
N
n=255 max.
D
Bit
T+2
0
Range 0 A
Range 0 B
T+4
Range 1 A
1
Range 1 B
D+15 max.
T+2N+2
Range N A
Range N B
or equal to B or
greater the B.
Section 3-5
Location
Execution
condition
Output
Required
Output
Required
Output
Required

Advertisement

Table of Contents
loading

Table of Contents