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.

ASCII Serial Port <strong>Instructions</strong> (ABL, ACB, ACL, AHL, ARD, ARL, AWA, AWT) 603Structured Textosri_1.InputBit := temp_low;OSRI(osri_1);IF (osri_1.OutputBit) THENtemp_low_write.LEN := 9;AWT(0,string[2],temp_low_write);END_IF;Example 2:When MV_update is set, the AWT instruction sends the characters inMV_msg. Because the number of characters in MV_msg varies, therung first moves the length of the string (MV_msg.LEN) to the SerialPort Control Length of the AWT instruction (MV_write.LEN). InMV_msg, the $16 counts as one character. It is the hex code for theCtrl-V character.Relay LadderMV_updateMoveSourceDestMOVMV_msg.LEN10MV_write.LEN10AWTASCII WriteChannel 0SourceMV_msg'$161365\8\1$r'SerialPort ControlMV_writeSerialPort Control Length 10Characters Sent 10ENDNERStructured Textosri_1.InputBit := MV_update;OSRI(osri_1);IF (osri_1.OutputBit) THENMV_write.LEN := Mv_msg.LEN;AWT(0,MV_msg,MV_write);END_IF;Publication 1756-RM003I-EN-P - January 2007

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

Saved successfully!

Ooh no, something went wrong!