Publication 1763-RM001C-EN-P - October 2009
ASCII Instructions
315
The ACL instruction clears the Receive and/or Transmit buffer(s). This
instruction also removes instructions from ASCII queue.
This instruction executes immediately upon the rung transitioning to a
true state. Any ASCII transmissions in progress are terminated when the
ACL instruction executes.
Entering Parameters
Enter the following parameters when programming this instruction:
•
Channel
is the number of the RS-232 port, Channel 0.
•
Receive Buffer
clears the Receive buffer when set to “Yes” and
removes the Receive ASCII port control instructions (ARL and ARD)
from the ASCII queue.
•
Transmit Buffer
clears the Transmit buffer when set to “Yes” and
removes the Transmit ASCII port control instructions (AWA and
AWT) from the ASCII queue.
Addressing Modes and File Types can be used as shown below:
TIP
For MicroLogix 1100, the ACL instruction can also be
used to clear the DF1 communication buffers when the
channel is configured for any of the DF1 communication
drivers.
Select 0 for the channel number that is configured for
DF1 and Yes for both the Receive and Transmit Buffers.
When the ACL instruction is executed, any pending
outgoing DF1 replies, any pending incoming DF1
commands and any pending outgoing DF1 commands
are flushed. Any MSG instructions in progress on that
channel will error out with an error code of 0x0C.
However, this functionality is not applied if DCOMM
(Default communication setting) is selected.
TIP
The ASCII queue may contain up to 16 instructions that
are waiting to run.
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive