DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-212
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
ASCII Input (AIN)
The ASCII Input instruction allows the CPU to receive ASCII strings through the specified
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 specified
termination character(s). Other features include, Byte Swap preferences, Character Timeout,
and user defined flag bits for Busy, Complete and Timeout Error.
AIN Fixed Length Configuration
No data will be stored at the Data Destination V–memory location. The bit will reset when the
AIN instruction permissive bits are disabled. 0ms selection disables this feature.
•
First Character Timeout
: if the amount of time from when the AIN is enabled to the time the
first character is received exceeds the set time, the specified First Character Timeout bit will
be set. The bit will reset when the AIN instruction permissive bits are disabled. 0ms selection
disables this feature.
•
Byte Swap
: swaps the high–byte and low–byte within each V–memory register of the Fixed
Length ASCII string. See the SWAPB instruction for details.
•
Busy Bit
: is ON while the AIN instruction is receiving ASCII data
•
Complete Bit
: is set once the ASCII data has been received for the specified fixed length and
reset when the AIN instruction permissive bits are disabled.
•
Inter–character Timeout Error Bit
: is set when the Character Timeout is exceeded. See
Character Timeout explanation above.
•
First Character Timeout Error Bit
: is set when the First Character Timeout is exceeded. See
First Character Timeout explanation above.
DS
Used
HPP
N/A
•
Length Type:
select fixed length
based on the length of the ASCII
string that will be sent to the
CPU port
•
Port Number
: must be DL06
port 2 (K2)
•
Data Destination
: specifies
where the ASCII string will be
placed in V–memory
•
Fixed Length
: specifies the
length, in bytes, of the fixed
length ASCII string the port will
receive
•
Inter–character Timeout
: if
the amount of time between
incoming ASCII characters
exceeds the set time, the
specified Timeout Error bit will
be set.