Chapter 5: Standard RLL Instructions - ASCII
Managing the ASCII Strings
1
The following instructions can be helpful in managing the ASCII strings within the CPUs
V-memory:
2
ASCII Find (AFIND) – Finds where a specific portion of the ASCII string is located in
continuous V-memory addresses. Forward and reverse searches are supported.
ASCII Extract (AEX) – Extracts a specific portion (usually some data value) from the ASCII
3
find location or other known ASCII data location.
Compare V-memory (CMPV) – This instruction is used to compare two blocks of
4
V-memory addresses and is usually used to detect a change in an ASCII string. Compared
data types must be of the same format (i.e. BCD, ASCII, etc.).
5
Swap Bytes (SWAPB) – usually used to swap V-memory bytes on ASCII data that was
written directly to V-memory from an external HMI or similar master device via a
6
communications protocol. The AIN and AEX instructions have a built–in byte swap feature.
7
ASCII Input (AIN)
The ASCII Input instruction allows the CPU to receive ASCII strings through the specified
8
230
communications port and places the string into a series of specified V-memory registers. The
ASCII data can be received as a fixed number of bytes or as a variable length string with a
240
specified termination character(s). Other features include, Byte Swap preferences, Character
9
250-1
Timeout, and user defined flag bits for Busy, Complete and Timeout Error.
260
10
DS
Used
HPP
N/A
11
12
13
14
A
B
C
D
5–212
DL205 User Manual, 4th Edition, Rev. B
Need help?
Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?