ASCII Compare (CMPV)
The ASCII Compare instruction compares two groups of V–memory registers. The CMPV
230
will compare any data type (ASCII to ASCII, BCD to BCD, etc.) of one series (group) of
240
V–memory registers to another series of V–memory registers for a specified byte length.
250-1
"Compare from" Starting Address:
260
specifies the begining V–memory register
of the first group of V–memory registers
to be compared from.
DS
Used
HPP
N/A
"Compare to" Starting Address:
specifies the begining 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
SP61 = 1 (ON), the result is equal
SP61 = 0 (OFF), the result is not equal
Discrete Bit Flags
SP53
SP61
SP71
CMPV Example
The CMPV instruction executes when the AIN instruction is complete. If the compared
V–memory tables are equal, SP61 will turn ON.
AIN Complete
C1
SP61
Parameter
Compare from Starting Address
Compare to Starting Address
Number of Bytes
On if the CPU cannot execute the instruction.
On when result is equal.
On when a value used by the instruction is invalid.
Chapter 5: Standard RLL Instructions - ASCII
DL260 Range
All V-memory (See page 3 - 56)
All V-memory (See page 3 - 56)
All V-memory (See page 3 - 56)
or K0-127
Description
CMPV
"Compare from" Starting Address: V3400
"Compare to" Starting Address:
Number of Bytes:
Strings are equal
C11
OUT
DL205 User Manual, 4th Edition, Rev. B
10
11
12
13
14
A
V3500
K12
D
5–221
1
2
3
4
5
6
7
8
9
B
C
Need help?
Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?