Rockwell Automation Logix 5000 Series Programming Manual
Hide thumbs Also See for Logix 5000 Series:

Advertisement

Quick Links

Logix 5000 Controllers
ASCII Strings
1756 ControlLogix, 1756 GuardLogix, 1769 CompactLogix,
1769 Compact GuardLogix, 1789 SoftLogix, 5069
CompactLogix, 5069 Compact GuardLogix, Studio 5000
Logix Emulate
Programming Manual
Rockwell Automation Publication 1756-PM013H-EN-P - March 2022
Supersedes Publication 1756-PM013G-EN-P - September 2020
Original Instructions

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Logix 5000 Series and is the answer not in the manual?

Questions and answers

Summary of Contents for Rockwell Automation Logix 5000 Series

  • Page 1 Logix 5000 Controllers ASCII Strings 1756 ControlLogix, 1756 GuardLogix, 1769 CompactLogix, 1769 Compact GuardLogix, 1789 SoftLogix, 5069 CompactLogix, 5069 Compact GuardLogix, Studio 5000 Logix Emulate Rockwell Automation Publication 1756-PM013H-EN-P - March 2022 Supersedes Publication 1756-PM013G-EN-P - September 2020 Programming Manual Original Instructions...
  • Page 2 Protective Equipment (PPE). Rockwell Automation recognizes that some of the terms that are currently used in our industry and in this publication are not in alignment with the movement toward inclusive language in technology. We are proactively collaborating with industry peers to find alternatives to such terms and making changes to our products and content.
  • Page 3 Change Topic Updated Legal notices. Legal notices New or enhanced features None in this release. Rockwell Automation Publication 1756-PM013H-EN-P - March 2022...
  • Page 5: Table Of Contents

    Check the Bar Code characters ..............22 Convert a value ...................23 Decode an ASCII message ................ 24 Build a string ..................... 25 Appendix A ASCII character codes ASCII character codes ................27 Index Rockwell Automation Publication 1756-PM013H-EN-P - March 2022...
  • Page 7: Summary Of Changes Studio 5000 Environment

    The Studio 5000® environment is the foundation for the future of Rockwell Automation® engineering design tools and capabilities. The Studio 5000 environment is the one place for design engineers to develop all elements of their control system.
  • Page 8: Legal Notices

    Rockwell Automation distributor or sales representative. Legal Notices Rockwell Automation publishes legal notices, such as privacy policies, license agreements, trademark disclosures, and other terms and conditions on the Legal Notices page of the Rockwell Automation website.
  • Page 9: Communicating With An Ascii Introduction

    To connect to the ASCII device, use these steps. 1. On the serial port of the ASCII device, determine which pins send signals and which pins receive signals. 2. Connect sending pins to corresponding receiving pins and attach jumpers. Rockwell Automation Publication 1756-PM013H-EN-P - March 2022...
  • Page 10: Configure The Serial Port

    Configure the Serial Port To configure the serial port, use these steps. 1. On the Online toolbar, click the Controller Properties button. 2. On the Controller Properties dialog box, click the Serial Port tab. Rockwell Automation Publication 1756-PM013H-EN-P - March 2022...
  • Page 11 • in the RTS Off Delay box, type 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-PM013H-EN-P - March 2022...
  • Page 12: Configure The User Protocol

    XON/XOFF check box. • If the ASCII device is a CRT or pre-configured for half duplex transmission, select the Echo Mode check box. • Choose the Delete Mode using the following considerations: Rockwell Automation Publication 1756-PM013H-EN-P - March 2022...
  • Page 13: Create String Data Types

    If you Then Make a string data type smaller • The data truncates. • The LEN does not change. Make a string data type larger The data and LEN resets to zero. Rockwell Automation Publication 1756-PM013H-EN-P - March 2022...
  • Page 14: Read Characters From The Device

    ACB instruction continuously counts the characters in the buffer. When the buffer contains at least 24 characters, the controller received a bar code. The ARD instruction moves the bar code to the bag_bar_code tag. Rockwell Automation Publication 1756-PM013H-EN-P - March 2022...
  • Page 15: Send Characters To The Device

    EXAMPLE When the temperature reaches the low limit (temp_low is on), the AWT instruction sends nine characters from the string[2] tag to a MessageView terminal. (The $14 counts as one character. The hex code for the Ctrl-T character.) Rockwell Automation Publication 1756-PM013H-EN-P - March 2022...
  • Page 16: Enter Ascii Characters

    IMPORTANT This String Browser window shows the characters up to the value of the LEN member of the string tag. The string tag may contain additional data, which the String Browser window does not show. Rockwell Automation Publication 1756-PM013H-EN-P - March 2022...
  • Page 17 New line ($0D$0A) The maximum number of characters that the string tag can hold. Form feed ($0C) 2. In the text box, type the characters for the string. 3. Click OK. Rockwell Automation Publication 1756-PM013H-EN-P - March 2022...
  • Page 19: Processing Ascii Characters

    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. Rockwell Automation Publication 1756-PM013H-EN-P - March 2022...
  • Page 20: Look Up A Bar Code

    Identifies the destination for an item based on an ASCII string of characters that identify the item Members Name Data Type Style Description Product_ID STRING ASCII characters that identify the item Lane DINT Decimal Destination for the item, based on its ID Rockwell Automation Publication 1756-PM013H-EN-P - March 2022...
  • Page 21: Search For The Characters

    When the FSC instruction finds the product ID within the sort_table array, the instruction sets the FD bit. The POS member indicates the element number within the sort_table array of the match. The corresponding LANE member indicates the lane number of the match. Rockwell Automation Publication 1756-PM013H-EN-P - March 2022...
  • Page 22: Reject Bad Characters

    • When the two strings are sorted, as in a telephone directory, the order of the strings determines which one is greater. Use one of the following compare instruction. To see if the string is: Enter this instruction: Rockwell Automation Publication 1756-PM013H-EN-P - March 2022...
  • Page 23: Convert A Value

    EXAMPLE When MV_read.EM is on, the STOD instruction converts the first set of numeric characters in MV_msg to an integer value. The instruction skips the initial control character ($06) and stops at the delimiter ( \ ). Rockwell Automation Publication 1756-PM013H-EN-P - March 2022...
  • Page 24: 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-PM013H-EN-P - March 2022...
  • Page 25: Build A String

    • The CONCAT instruction puts the node number (in ASCII) after the backslash [ \ ] and stores the final string in msg. IMPORTANT To send the message, an AWA instruction sends the msg tag and appends the carriage return [CR]. Rockwell Automation Publication 1756-PM013H-EN-P - March 2022...
  • Page 27 [ctrl-P] DLE [ctrl-Q] DC1 [ctrl-R] DC2 [ctrl-S] DC3 [ctrl-T] DC4 [ctrl-U] NAK [ctrl-V] SYN [ctrl-W] ETB [ctrl-X] CAN [ctrl-Y] EM [ctrl-Z] SUB ctrl-[ ESC [ctrl-\] FS < ctrl-] GS [ctrl-^] RS > [ctrl-_] US Rockwell Automation Publication 1756-PM013H-EN-P - March 2022...
  • Page 29 13 data ASCII 13 enter ASCII characters 16 enter ASCII characters 16 manipulate string 19 organize strings 13 read ASCII characters 14 send ASCII characters 15 serial configure port for ASCII 10 string Rockwell Automation Publication 1756-PM013H-EN-P - March 2022...
  • Page 30 At the end of life, this equipment should be collected separately from any unsorted municipal waste. Rockwell Automation maintains current product environmental information on its website at rok.auto/pec. Allen-Bradley, expanding human possibility, Logix, Rockwell Automation, and Rockwell Software are trademarks of Rockwell Automation, Inc. EtherNet/IP is a trademark of ODVA, Inc.

Table of Contents

Save PDF