DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-214
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
AIN Variable Length Configuration:
•
Length Type
: select Variable Length if the ASCII string length followed by termination
characters will vary in length
The Timeout Error 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 Variable
Length ASCII string. See the SWAPB instruction for details.
•
Termination Code Length
: consists of either 1 or 2 characters. Refer to Appendix G, ASCII
Table.
•
Busy Bit
: is ON while the AIN instruction is receiving ASCII data
•
Complete Bit
: is set once the ASCII data has been received up to the termination code
characters. It will be 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.
•
Overflow Error Bit
: is set when the ASCII data received exceeds the Maximum Variable
Length specified.
•
Port Number
: must be DL06 port
2 (K2)
•
Data Destination
: specifies where
the ASCII string will be placed in
V–memory
•
Maximum Variable Length
:
specifies, in bytes, the maximum
length of a Variable Length ASCII
string the port will receive
•
Inter–character Timeout
: if the
amount of time between incoming
ASCII characters exceeds the set
time, the Timeout Error bit will
be set. No data will be stored at
the Data Destination V–memory
location.