Omron CS1G/H-CPUxxH Instructions Manual page 59

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

Advertisement

Instruction Functions
Instruction
Symbol/Operand
Mnemonic
Code
TABLE COM-
TCMP(085)
PARE
TCMP
@TCMP
085
S: Source data
T: 1st word of
table
R: Result word
UNSIGNED
BCMP(068)
BLOCK COM-
PARE
BCMP
@BCMP
068
S: Source data
T: 1st word of
table
R: Result word
EXPANDED
BCMP2(502)
BLOCK COM-
PARE
BCMP2
@BCMP2
502
(CJ1M only)
S: Source data
T: 1st word of
block
R: Result word
38
Compares the source data to the contents of 16 words and turns
ON the corresponding bit in the result word when the contents are
S
equal.
Comparison
T
R
Compares the source data to 16 ranges (defined by 16 lower limits
and 16 upper limits) and turns ON the corresponding bit in the result
word when the source data is within the range.
S
T
R
T
Source data
S
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
Function
R
Ranges
Lower limit
Upper limit
to T+1
T+2
to T+3
to T+29
T+28
T+30
to T+31
1: In range
0: Not in range
N n=255 max.
D
Range 0 A
T+2
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
1: Data are
equal.
0: Data aren't
equal.
Output
Required
1: In range
0: Not in range
R
0
1
14
15
Output
Required
Bit
0
1
Page
265
268
270

Advertisement

Table of Contents
loading

Table of Contents