DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-219
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
ASCII Extract (AEX)
The ASCII Extract instruction extracts a specified number of bytes of ASCII data from one
series of V–memory registers and places it into another series of V–memory registers. Other
features include, Extract at Index for skipping over unnecessary bytes before beginning the
Extract operation, Shift ASCII Option, for One Byte Left or One Byte Right, Byte Swap and
Convert data to a BCD format number.
•
Source Base Address
: specifies the beginning V–memory register where the entire ASCII
string is stored in memory
•
Extract at Index
: specifies which byte to skip to (with respect to the Source Base Address)
before extracting the data
•
Number of Bytes
: specifies the number of bytes to be extracted
•
Shift ASCII Option
: shifts all extracted data one byte left or one byte right to displace
“unwanted” characters if necessary
•
Byte Swap
: swaps the high–byte and the low–byte within each V–memory register of the
extracted data. See the SWAPB instruction for details.
•
Convert BCD(Hex) ASCII to BCD (Hex)
: if enabled, this will convert ASCII numerical
characters to Hexadecimal numerical values
•
Destination Base Address
: specifies the V–memory register where the extracted data will be
stored
See the previous page for an example using the AEX instruction.
Parameter
DL06 Range
Source Base Address
All V–memory
Extract at Index
All V–memory or K0–127
Number of Bytes
“Convert BCD (HEX) ASCII”
not checked
Constant range:
K1–128
V-memory location
containing BCD value:
1–128
Number of Bytes
“Convert BCD (HEX) ASCII”
checked
Constant range:
K1–4
V-memory location
containing BCD value:
1–4
Destination Base
Address
All V–memory
DS
Used
HPP
N/A