Rockwell Automation Allen-Bradley Logix5000 Series Programming Manual
Rockwell Automation Allen-Bradley Logix5000 Series Programming Manual

Rockwell Automation Allen-Bradley Logix5000 Series Programming Manual

Controllers ascii strings
Hide thumbs Also See for Allen-Bradley Logix5000 Series:

Advertisement

Programming Manual
Logix5000 Controllers ASCII Strings
Catalog Numbers 1756-L1, 1756-L55, 1756-L61, 1756-L62, 1756-L63, 1769-L31, 1769-L32C, 1769-L32E, 1769-L35CR, 1769-L35E,
1789-L60, 1794-L34, PowerFlex 700S/SE

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Allen-Bradley Logix5000 Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Rockwell Automation Allen-Bradley Logix5000 Series

  • Page 1 Programming Manual Logix5000 Controllers ASCII Strings Catalog Numbers 1756-L1, 1756-L55, 1756-L61, 1756-L62, 1756-L63, 1769-L31, 1769-L32C, 1769-L32E, 1769-L35CR, 1769-L35E, 1789-L60, 1794-L34, PowerFlex 700S/SE...
  • Page 2 In no event will Rockwell Automation, Inc. be responsible or liable for indirect or consequential damages resulting from the use or application of this equipment.
  • Page 3 There are a number of minor changes throughout this publication that were made to clarify existing information. The major changes are listed below. Change Page Updated sample project folder location. page 22 Updated data type editor image. page 23 Rockwell Automation Publication 1756-PM013C-EN-P - November 2012...
  • Page 4 Summary of Changes Notes: Rockwell Automation Publication 1756-PM013C-EN-P - November 2012...
  • Page 5: Table Of Contents

    ASCII Character Codes........29 Rockwell Automation Publication 1756-PM013C-EN-P - November 2012...
  • Page 6 Table of Contents Rockwell Automation Publication 1756-PM013C-EN-P - November 2012...
  • Page 7: Logix Designer Application

    The Studio 5000 environment is the foundation for the future of Rockwell Automation® engineering design tools and capabilities. It is the one place for design engineers to develop all the elements of their control system.
  • Page 8 Preface Notes: Rockwell Automation Publication 1756-PM013C-EN-P - November 2012...
  • Page 9: Introduction

    1756-EWEB EtherNet/IP Web Server module supports a socket interface that lets Logix5000 controllers exchange ASCII data using TCP or UDP socket services. See the EtherNet/IP Web Server User Manual, publication ENET- UM0527, revision C or later. Rockwell Automation Publication 1756-PM013C-EN-P - November 2012...
  • Page 10: Connect The Ascii Device

    COMMON 6 DSR 6 DSR 7 RTS 7 RTS 8 CTS 8 CTS 42232 3. Attach the cable shield to both connectors. 4. Connect the cable to the controller and the ASCII device. Rockwell Automation Publication 1756-PM013C-EN-P - November 2012...
  • Page 11: Configure The Serial Port

    • For RTS Off Delay, enter the delay (in 20 ms units) between the time the last character is sent and the time that the RTS signal turns off (low). 4. Click Apply. Rockwell Automation Publication 1756-PM013C-EN-P - November 2012...
  • Page 12: Configure The User Protocol

    • If the ASCII device is configured for XON/XOFF flow control, select the XON/XOFF check box. • If the ASCII device is a CRT or is pre-configured for half duplex transmission, select the Echo Mode check box. Rockwell Automation Publication 1756-PM013C-EN-P - November 2012...
  • Page 13 • If echo mode is selected and an ASCII instruction reads the DEL character, the echo returns two characters: / ($2F) followed by the character that was deleted. None of the above Ignore The DEL character ($7F) is treated as any other character. 2. Click OK. Rockwell Automation Publication 1756-PM013C-EN-P - November 2012...
  • Page 14: Create String Data Types

    1. In the controller organizer, right-click Strings and choose New String Type… 2. Type a name for the data type. 3. Type the maximum number characters that this string data type will store. 4. Click OK. 42233 Rockwell Automation Publication 1756-PM013C-EN-P - November 2012...
  • Page 15: Read Characters From The Device

    When the buffer contains at least 24 characters, the controller has received a bar code. The ARD instruction moves the bar code to the bag_bar_code tag. Grtr Than or Eql (A>=B) ASCII Read Source A bar_code_count.pos Channel Destination bag_bar_code Source B SerialPort Control bar_code_read String Length Characters Read 42227 Rockwell Automation Publication 1756-PM013C-EN-P - November 2012...
  • Page 16 MV_msg tag. MV_line.FD ASCII Read Line Channel Destination MV_msg SerialPort Control MV_read String Length Characters Read 42226 Rockwell Automation Publication 1756-PM013C-EN-P - November 2012...
  • Page 17: Send Characters To The Device

    MessageView terminal. (The $14 counts as one character. It is the hex code for the Ctrl-T character.) temp_low ASCII Write Channel Source string[2] '$142224\01$r' SerialPort Control temp_low_write String Length Characters Sent 42229 Rockwell Automation Publication 1756-PM013C-EN-P - November 2012...
  • Page 18 · In MV_msg, the $16 counts as one character. It is the hex code for the Ctrl-V character. MV_update Move ASCII Write Source MV_msg.LEN Channel Source MV_msg Dest MV_write.LEN '$161365\8\1$r' SerialPort Control MV_write String Length Characters Sent 42229 Rockwell Automation Publication 1756-PM013C-EN-P - November 2012...
  • Page 19: Enter Ascii Characters

    The maximum number of characters that the string window. This is the same as the LEN member of the tag can hold. string tag. 2. Enter the characters for the string. 3. Click OK. Rockwell Automation Publication 1756-PM013C-EN-P - November 2012...
  • Page 20 Chapter 1 Communicating with an ASCII Device Notes: Rockwell Automation Publication 1756-PM013C-EN-P - November 2012...
  • Page 21: Introduction

    After the bar code is read (bag_read.EM is on) the MID instruction copies the flight number and destination airport to the bag_flt_and_dest tag. 42808 Rockwell Automation Publication 1756-PM013C-EN-P - November 2012...
  • Page 22: Look Up A Bar Code

    Enter the Product IDs and Lane Numbers. To copy the above components from a sample project, open the samples folder. For version 20 and earlier: …\RSLogix 5000\Projects\Samples For version 21 and later: …\Users\Public\Documents\Studio 5000\Samples\ENU\[version]\Rockwell Automation Open this project. Rockwell Automation Publication 1756-PM013C-EN-P - November 2012...
  • Page 23: Create The Product_Info Data Type

    · Although the previous instruction sets the Length of this instruction, you enter an initial value to verify the project. · The product_id tag contains the bar code characters that you want to find. Rockwell Automation Publication 1756-PM013C-EN-P - November 2012...
  • Page 24: Identify The Lane Number

    After the MOV instruction sets the value of the lane tag, the RES instruction resets the FSC instruction so it can search for the next product ID. Rockwell Automation Publication 1756-PM013C-EN-P - November 2012...
  • Page 25: Enter The Product Ids And Lane Numbers

    Enter this instruction: Equal to specific characters Not equal to specific characters Greater than specific characters Equal to or greater than specific characters Less than specific characters Equal to or less than specific characters Rockwell Automation Publication 1756-PM013C-EN-P - November 2012...
  • Page 26: Convert A Value

    When MV_read.EM is on, the STOD instruction converts the first set of numeric characters in EXAMPLE MV_msg to an integer value. The instruction skips the initial control character ($06) and stops at the delimiter ( \ ). 42620 Rockwell Automation Publication 1756-PM013C-EN-P - November 2012...
  • Page 27: Decode An Ascii Message

    · The start value is the same as the Result value from the FIND instruction. This tells the MID instruction where to start pulling characters from the Source. · The Destination contains the characters you located. Rockwell Automation Publication 1756-PM013C-EN-P - November 2012...
  • Page 28: Build A String

    · The CONCAT instruction puts the node number (in ASCII) after the backslash [ \ ] and stores the final string in msg. ATTENTION: To send the message, an AWA instruction sends the msg tag and appends the carriage return [CR]. 42813 Rockwell Automation Publication 1756-PM013C-EN-P - November 2012...
  • Page 29: Ascii Character Codes

    ASCII Character Codes Character Character Character Character [ctrl-@] NUL SPACE ‘ [ctrl-A] SOH [ctrl-B] STX “ [ctrl-C] ETX [ctrl-D] EOT [ctrl-E] ENQ [ctrl-F] ACK & [ctrl-G] BEL ‘ [ctrl-H] BS [ctrl-I] HT [ctrl-J] LF $l ($0A) [ctrl-K] VT [ctrl-L] FF [ctrl-M] CR $r ($0D) [ctrl-N] SO...
  • Page 30 Automation representative. New Product Satisfaction Return Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility. However, if your product is not functioning and needs to be returned, follow these procedures.

Table of Contents