您好,欢迎访问联智博库

上传文档

当前位置:首页 > 工控技术 > PLC > Logix5000 Controllers ASCII Strings Programming Manual

Logix5000 Controllers ASCII Strings Programming Manual

  • 小库
  • 35 人阅读
  • 0 人下载
  • 2019-02-20 11:06:12

还剩... 页未读,继续阅读

免费阅读已结束,点击付费阅读剩下 ...

¥ 0 元,已有35人购买

免费阅读

阅读已结束,您可以下载文档离线阅读

¥ 1 元,已有0人下载

付费下载

文档部分内容文本提取

Programming ManualCatalog 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/SELogix5000 Controllers ASCII StringsImportant User InformationSolid state equipment has operational characteristics differing from those of electromechanical equipment. Safety Guidelines for the Application, Installation and Maintenance of Solid State Controls (publication SGI-1.1 available from your local Rockwell Automation sales office or online at http://literature.rockwellautomation.com) describes some important differences between solid state equipment and hard-wired electromechanical devices. Because of this difference, and also because of the wide variety of uses for solid state equipment, all persons responsible for applying this equipment must satisfy themselves that each intended application of this equipment is acceptable.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.The examples and diagrams in this manual are included solely for illustrative purposes. Because of the many variables and requirements associated with any particular installation, Rockwell Automation, Inc. cannot assume responsibility or liability for actual use based on the examples and diagrams.No patent liability is assumed by Rockwell Automation, Inc. with respect to use of information, circuits, equipment, or software described in this manual.Reproduction of the contents of this manual, in whole or in part, without written permission of Rockwell Automation, Inc., is prohibited.Throughout this manual, when necessary, we use notes to make you aware of safety considerations.Allen-Bradley, Rockwell Automation, and TechConnect are trademarks of Rockwell Automation, Inc.Trademarks not belonging to Rockwell Automation are property of their respective companies.WARNINGIdentifies information about practices or circumstances that can cause an explosion in a hazardous environment, which may lead to personal injury or death, property damage, or economic loss.IMPORTANTIdentifies information that is critical for successful application and understanding of the product.ATTENTIONIdentifies information about practices or circumstances that can lead to personal injury or death, property damage, or economic loss. Attentions help you identify a hazard, avoid a hazard, and recognize the consequenceSHOCK HAZARDLabels may be on or inside the equipment, for example, a drive or motor, to alert people that dangerous voltage may be present.BURN HAZARDLabels may be on or inside the equipment, for example, a drive or motor, to alert people that surfaces may reach dangerous temperatures.3Publication 1756-PM013B-EN-P - July 20083Table of ContentsPrefacePurpose of this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5How to Use this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5Chapter 1Communicating with an ASCII DeviceIntroduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7Connect the ASCII Device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8Configure the Serial Port. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9Configure the User Protocol. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10Create String Data Types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11Read Characters from the Device. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12Send Characters to the Device. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15Enter ASCII Characters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17Chapter 2Processing ASCII CharactersIntroduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19Extract a Part of a Bar Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19Look Up a Bar Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20Create the PRODUCT_INFO Data Type. . . . . . . . . . . . . . . . . . . 21Search for the Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21Identify the Lane Number. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22Reject Bad Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22Enter the Product IDs and Lane Numbers . . . . . . . . . . . . . . . . . . 23Check the Bar Code Characters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23Convert a Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24Decode an ASCII Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25Build a String . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26ASCII Character Codes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294Publication 1756-PM013B-EN-P - July 2008Table of Contents5Publication 1756-PM013B-EN-P - July 20085PrefacePurpose of this ManualThis manual shows how to manipulate ASCII strings in Logix5000 controllers. This manual is one of a set of related manuals that show common procedures for programming and operating Logix5000 controllers. For a complete list of common procedures manuals, see the Logix 5000 Controllers Common Procedures Programming Manual, publication 1756-PM001.The term Logix5000 controller refers to any controller that is based on the Logix5000 operating system, such as:·CompactLogix controllers·ControlLogix controllers·DriveLogix controllers·FlexLogix controllers·SoftLogix5800 controllersHow to Use this ManualSome text is formatted differently from the rest of the text.Text that isIdentifiesFor exampleMeansItalicthe actual name of an item that you see on your screen or in an exampleRight-click User-Defined …Right-click the item that is named User-Defined.courier information that you must supply based on your application (a variable)Right-click name_of_program …You must identify the specific program in your application. Typically, it is a name or variable that you have defined.enclosed in bracketsa keyboard keyPress [Enter].Press the Enter key.

小库

523篇文档

文档介绍: Logix5000 Controllers ASCII Strings Programming Manual

评论

发表评论
< /32 > 付费下载 ¥ 1 元

Powered by DS文库

Copyright © 联智博库 All Rights Reserved. 鲁ICP备18004091号-4
×
保存成功