598 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 17 ASCII Serial Port Instructions (ABL, ACB, ACL, AHL, ARD, ARL, AWA, AWT)
ASCII Write Append (AWA)
The AWA instruction sends a specified number of characters of the Source tag to
a serial device and appends either one or two predefined characters.
Operands:
Relay Ladder
EN
DN
ER
ASCII Write Append
Channel ?
Source ?
??
SerialPort Control ?
SerialPort Control Length ?
Characters Sent ?
AWA
Operand Type Format Enter Notes
Channel DINT Immediate
Tag
0
Source string
SINT
INT
DINT
Tag Tag that contains the
characters to send:
·For a string data type, enter
the name of the tag.
·For a SINT, INT, or DINT
array, enter the first
element of the array.
·If you want to compare, convert, or manipulate
the characters, use a string data type.
·String data types are:
· Default STRING data type
· Any new string data type that you create
Serial Port
Control
SERIAL_PORT_
CONTROL
Tag Tag that controls the operation
Serial Port Control
Length
DINT Immediate Number of characters to send ·The Serial Port Control Length must be less than
or equal to the size of the Source.
·If you want to set the Serial Port Control Length
equal to the number of characters in the Source,
enter 0.
Characters Sent DINT Immediate 0 During execution, displays the number of characters
that were sent.