DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-216
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
ASCII Find (AFIND)
The ASCII Find instruction locates a specific ASCII string or portion of an ASCII string within
a range of V–memory registers and places the string’s Found Index number (byte number
where desired string is found), in Hex, into a specified V–memory register. Other features
include, Search Starting Index number for skipping over unnecessary bytes before beginning
the FIND operation, Forward or Reverse direction search, and From Beginning and From End
selections to reference the Found Index Value.
•
Base Address
: specifies the beginning V–memory register where the entire ASCII string is
stored in memory
•
Total Number of Bytes
: specifies the total number of bytes to search for the desired ASCII
string
•
Search Starting Index
: specifies which byte to skip to (with respect to the Base Address)
before beginning the search
•
Direction
: Forward begins the search from lower numbered V–memory registers to higher
numbered V–memory registers. Reverse does the search from higher numbered V–memory
registers to lower numbered V–memory registers.
•
Found Index Value
: specifies whether the Beginning or the End byte of the ASCII string
found will be loaded into the Found Index register
•
Found Index
: specifies the V–memory register where the Found Index Value will be stored. A
value of FFFF will result if the desired string is not located in the memory registers specified.
•
Search for String
: up to 128 characters.
Parameter
DL06 Range
Base Address
All V–memory
Total Number of Bytes
All V–memory or K1–128
Search Starting Index
All V–memory or K0–127
Found Index
All V–memory
DS
Used
HPP
N/A