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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

600 ASCII Serial Port <strong>Instructions</strong> (ABL, ACB, ACL, AHL, ARD, ARL, AWA, AWT)ASCII Write (AWT)The AWT instruction sends a specified number of characters of theSource tag to a serial device.Operands:Relay LadderAWTASCII WriteChannel ?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 TextAWT(Channel,Source,SerialPortControl);The operands are the same as those for the relay ladderAWT 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 listPublication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!