12.07.2015 Views

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ASCII Serial Port <strong>Instructions</strong> (ABL, ACB, ACL, AHL, ARD, ARL, AWA, AWT) 595ASCII Write Append (AWA)The AWA instruction sends a specified number of characters of theSource tag to a serial device and appends either one or twopredefined characters.Operands:Relay LadderAWAASCII Write AppendChannel ?Source ???SerialPort Control ?SerialPort Control Length ?Characters Sent ?ENDNEROperand Type Format Enter NotesChannel DINT immediate 0SourceSerial PortControlSerial PortControl LengthstringSINTINTDINTSERIAL_PORT_CONTROLtagtagtagtag that contains thecharacters to send:• For a string data type,enter the name of thetag.• For a SINT, INT, or DINTarray, enter the firstelement of the array.tag that controls theoperationDINT immediate number of characters tosend• If you want to compare, convert, ormanipulate the characters, use a string datatype.• String data types are:• default STRING data type• any new string data type that you create• The Serial Port Control Length must be lessthan or equal to the size of the Source.• If you want to set the Serial Port ControlLength equal to the number of characters inthe Source, enter 0.Characters Sent DINT immediate 0 During execution, displays the number ofcharacters that were sent.Structured TextAWA(Channel,Source,SerialPortControl);The operands are the same as those for the relay ladderAWA instruction. However, you specify the Serial Port Control Lengthand the Characters Sent values by accessing the .LEN and .POSmembers of the SERIAL_PORT_CONTROL structure, rather than byincluding the values in the operand list.Publication 1756-RM003I-EN-P - January 2007

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!