Chapter 17
ASCII Serial Port Instructions (ABL, ACB, ACL, AHL, ARD, ARL, AWA, AWT)
ASCII Write Append (AWA)
AWA
ASCII Write Append
Channel
Source
SerialPort Control
SerialPort Control Length
Characters Sent
Operand
Type
Channel
DINT
Source
string
SINT
INT
DINT
Serial Port
SERIAL_PORT_
Control
CONTROL
Serial Port Control
DINT
Length
Characters Sent
DINT
598
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
?
?
Format
Immediate
Tag
Tag
Tag
Immediate
Immediate
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Enter
0
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.
Tag that controls the operation
Number of characters to send
0
Notes
·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
·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.
During execution, displays the number of characters
that were sent.