DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-218
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
AFIND Example Combined with AEX Instruction
When an AIN instruction has executed, its Complete bit can be used to trigger an AFIND
instruction to search for a desired portion of the ASCII string. Once the string is found, the
AEX instruction can be used to extract the located string.
AIN Complete
C1
Give delay time for
AFIND instruction
to complete
C7
Give delay time for
AFIND instruction
to complete
Give delay time for
AFIND instruction
to complete
Give delay time for
AFIND instruction
to complete
Delay for
AFIND to complete
Give delay time for
AFIND instruction
to complete
Delay time for
AFIND to complete
T0
C10
Search string not found
in table
V2200
Kffff
Data not found with
AFIND
C7
C7
C7
C10
SET
SET
RST
TMR
T0
K2
RST
AEX
Source Base Address: V2001
Extract at Index: K0
Number of Bytes:
K4
Shift ASCII Option:
None
Byte Swap:
All
Convert ASCII: To BCD (HEX)
Destination Base Address: V3000
AFIND
Base Address: V2001
Total Number of Bytes: K32
Search Starting Index: K0
Direction:
Forward
Found Index Value: From Beginning
Found Index: V2200
Code 39
Data not found with
AFIND
15
16
17
18
C7