Automationdirect.com DirectLOGIC DL205 Series User Manual page 435

Table of Contents

Advertisement

Chapter 5: Standard RLL Instructions - ASCII
AFIND Search Example
1
In the following example, the AFIND instruction is used to search for the "day" portion of
"Friday" in the ASCII string "Today is Friday.", which had previously been loaded into
V–memory. Note that a Search Starting Index of constant (K) 5 combined with a Forward
2
Direction Seach is used to prevent finding the "day" portion of the word "Today". The Found
Index will be placed into V4000.
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
5–218
DL205 User Manual, 4th Edition, Rev. B
Base Address
Reverse Direction Search
Search start Index Number
Forward Direction Search
Beginning Index Number
End Index Number
Found Index Number =
ASCII Characters
HEX Equivalent
T
0
54h
Low
V3000
o
1
High
6Fh
d
2
64h
Low
V3001
a
3
High
61h
y
4
Low
79h
V3002
5
20h
High
i
69h
6
Low
V3003
s
High
7
73h
8
20h
Low
V3004
F
High
9
46h
r
10
72h
Low
V3005
i
High
11
69h
d
12
64h
Low
V3006
a
High
13
61h
y
14
79h
Low
V3007
.
High
15
2Eh
0012
V4000

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF