您好,欢迎访问联智博库

上传文档

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

Logix5000 Controllers Structured Text Programming Manual

  • 小库
  • 44 人阅读
  • 0 人下载
  • 2019-02-20 11:08:03

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

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

¥ 0 元,已有44人购买

免费阅读

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

¥ 1 元,已有0人下载

付费下载

文档部分内容文本提取

Logix5000 Controllers Structured TextCatalog Numbers 1756 ControlLogix, 1769 CompactLogix, 1789 SoftLogix, 1794 FlexLogix, PowerFlex 700S with DriveLogixProgramming ManualImportant 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://www.rockwellautomation.com/literature/) 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-PM007C-EN-P - October 20093Table of ContentsTable of ContentsPrefacePurpose of this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5How to Use this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5Chapter 1Program Structured TextIntroduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7Assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9Specify a Non-retentive Assignment. . . . . . . . . . . . . . . . . . . . . . . . 10Assign an ASCII Character to a String. . . . . . . . . . . . . . . . . . . . . . 11Expressions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11Use Arithmetic Operators and Functions . . . . . . . . . . . . . . . . . . . 13Use Relational Operators. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14Use Logical Operators. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16Use Bitwise Operators. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17Determine the Order of Execution . . . . . . . . . . . . . . . . . . . . . . . . 17Instructions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18Constructs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19Some Key Words Are Reserved for Future Use . . . . . . . . . . . . . . 19IF...THEN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20CASE...OF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23FOR…DO. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26WHILE…DO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29REPEAT…UNTIL. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354Publication 1756-PM007C-EN-P - October 2009Table of Contents5Publication 1756-PM007C-EN-P - October 20095PrefacePurpose of this ManualThis manual shows how to program Logix5000 controllers with the structured text programming language. 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 Structured Text Programming Manual

评论

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

Powered by DS文库

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