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) 599Example 2:When alarm is set, the AWA instruction sends the specified number ofcharacters in alarm_msg and appends a termination character (s).Because the number of characters in alarm_msg varies, the rung firstmoves the length of the string (alarm_msg.LEN) to the Serial PortControl Length of the AWA instruction (alarm_write.LEN). Inalarm_msg, the $14 counts as one character. It is the hex code for theCtrl-T character.Relay LadderalarmMoveSourceDestMOValarm_msg.LEN5alarm_write.LEN5AWAASCII Write AppendChannel 0Sourcealarm_msg'$1425\1'SerialPort Control alarm_writeSerialPort Control Length 5Characters Sent 6ENDNERStructured Textosri_1.InputBit := alarm;OSRI(osri_1);IF (osri_1.OutputBit) THENalarm_write.LEN := alarm_msg.LEN;AWA(0,alarm_msg,alarm_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!