231
Comparison Instructions Section 3-6
Variations
Applicable Program Areas
Operands S
1
: First word of set 1
Specifies the beginning of the first 16-word range. S
1
and S
1
+15 must be in
the same data area.
S
2
: First word of set 2
Specifies the beginning of the second 16-word range. S
2
and S
2
+15 must be
in the same data area.
R: Result word
Each bit of R contains the result of a comparison between two words in the
16-word sets. Bit n of R (n = 00 to 15) contains the result of the comparison
between words S
1
+n and S
2
+n.
Operand Specifications
Variations Executed Each Cycle for ON Condition MCMP(019)
Executed Once for Upward Differentiation @MCMP(019)
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification Not supported
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK
15 014
R
1
Comparison result for S1 and S2
Comparison result for S1+1 and S2+1
Comparison result for S
1+14 and S2+14
Comparison result for S
1+15 and S2+15
Area S
1
S
2
R
CIO Area CIO 0 to CIO 6128 CIO 0 to
CIO 6143
Work Area W0 to W496 W0 to W511
Holding Bit Area H0 to H496 H0 to H511
Auxiliary Bit Area A0 to A944 A448 to A959
Timer Area T0000 to T4080 T0000 to T4095
Counter Area C0000 to C4080 C0000 to C4095
DM Area D0 to D32752 D0 to D32767
Indirect DM addresses
in binary
@ D0 to @ D32767
Indirect DM addresses
in BCD
*D0 to *D32767
Constants ---
Data Registers --- DR0 to DR15
Index Registers ---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15