EasyManua.ls Logo

Omron SYSMAC CV Series - Page 535

Omron SYSMAC CV Series
636 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...
Appendix AInstruction Set
525
Name, mnemonic, variations,
and symbol
PageOperand data
areas
Function
BLOCK COMPARE
BCMP, jBCMP
(022)
BCMP S CB R
Compares a 1-word binary value (S) with the
16 ranges given in the comparison table (CB
is the starting word of the comparison block).
If the value falls within any of the ranges, the
corresponding bits in the result word (R) is
turned ON (set to 1). The comparison block
must be within one data area.
S
CB CB+1
CB+2 CB+3
CB+4 CB+5
CB+30 CB+31
1
0
1
0
Lower limit Upper limit
Lower limit S Upper limit 1
Result
S:
CIO
G
A
T/C
#
DM
DR
IR
CB:
CIO
G
A
T/C
DM
R:
CIO
G
A
T/C
DM
DR
IR
208
TABLE COMPARE
TCMP, jTCMP
(023)
TCMP S TB R
Compares a 4-digit hexadecimal value (S)
with values in table consisting of 16 words
(TB is the first word of the comparison table).
If the value of S equals the content of a word
in the table, the corresponding bit in result
word (R) is set (1 for agreement, and 0 for
disagreement). The table must be entirely
within one data area.
S
TB
TB+1
TB+13
TB+14
TB+15
1: agreement
0: disagreement
0
1
1
0
1
R
0
S:
CIO
G
A
T/C
#
DM
DR
IR
TB:
CIO
G
A
T/C
DM
R:
CIO
G
A
T/C
DM
DR
IR
210
MULTIPLE COMPARE
MCMP, jMCMP
(024)
MCMPTB
1
TB
2
R
Compares the contents of the 16 words TB
1
through TB
1
+15 to the contents of the 16
words TB
2
through TB
2
+15, and turns ON
the corresponding bit in word R when the
contents are not equal. (In the example
below, the contents of TB
1
and TB
2
are not
equal, and the contents of TB
1
+1 and TB
2
+1
are equal.) The table must be entirely within
one data area.
TB
2
+1
TB
2
+13
TB
2
+14
TB
2
+15
0: agreement
1: disagreement
0
1
1
0
1
R
0
TB
1
+1
TB
1
+13
TB
1
+14
TB
1
+15
TB
1
TB
2
TB
1
:
CIO
G
A
T/C
DM
TB
2
:
CIO
G
A
T/C
DM
R:
CIO
G
A
DM
DR
IR
211

Table of Contents

Related product manuals