Publication 1763-RM001C-EN-P - October 2009
ASCII Instructions
331
Instruction Operation
When the rung goes from false-to-true, the Enable bit (EN) is set. When
the instruction is placed in the ASCII queue, the Queue bit (EU) is set. The
Running bit (RN) is set when the instruction is executing. The DN bit is set
on completion of the instruction.
Once the requested number of characters are in the buffer, the characters
are moved to the destination string. The number of characters moved is
put in the POS field of the control data file. The number in the POS field
is continuously updated and the Done bit (DN) is not set until all of the
characters are read.
ARL - ASCII Read Line
Instruction Type: output
Use the ARL instruction to read characters from the buffer, up to and
including the Termination characters, and store them in a string. The
Termination characters are specified via the Channel Configuration screen.
Entering Parameters
Enter the following parameters when programming this instruction:
•
Channel
is the number of the RS-232 port, Channel 0.
•
Destination
is the string element where you want the string stored.
•
Control
is the control data file. See page 313.
•
String Length
(LEN) is the number of characters you want to read
from the buffer. The maximum is 82 characters. If you specify a
length larger than 82, only the first 82 characters are read and
moved to the destination. (A length of “0” defaults to 82.) This is
word 1 in the control data file.
TIP
For information on the timing of this instruction, see the
timing diagram on page 336.
EN
DN
ER
ARL
ASCII Read Line
Channel
0
Dest
ST10:5
Control
R6:4
String Length
15<
Characters Read
0<
Error
0<
ARL
Execution Time for the ARL Instruction
Controller
When Instruction Is:
True
False
MicroLogix 1100
13.96
μ
s/character
14.25
μ
s
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive