DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-220
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
• “Compare to” Starting Address: specifies the beginning V–memory register of the second
group of V–memory registers to be compared to.
• Number of Bytes: specifies the length of each V–memory group to be compared
CMPV Example
The CMPV instruction executes when the AIN instruction is complete. If the compared V–
memory tables are equal, SP61 will turn ON.
Parameter
DL06 Range
Compare from Starting Address All V–memory
Compare to Starting Address
All V–memory
Number of Bytes
K0–127
Strings are equal
C1
OUT
AIN Complete
CMPV
"Compare from" Starting Address: V2001
"Compare to" Starting Address: V10001
Number of Bytes:
K32
C11
SP61
DS
Used
HPP
N/A
SP61 = 1, the result is equal
SP61 = 0, the result is not equal
ASCII Compare (CMPV)
The ASCII Compare instruction compares
two groups of V–memory registers. The
CMPV will compare any data type (ASCII
to ASCII, BCD to BCD, etc.) of one series
(group) of V–memory registers to another
series of V–memory registers for a specified
byte length.
•
“Compare from” Starting Address:
specifies the beginning V–memory register
of the first group of V–memory registers to
be compared from.