




免费预览已结束,剩余23页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
System 800xA trainingChapter 4 Project FrameworkTABLE OF CONTENTSChapter 4 Project Framework14.1 General Information24.1.1 Objectives24.1.2 Legend24.2 Automation Solution34.2.1 Control Project44.2.2 When Working in Engineering Workplace / Plant Explorer44.2.3 When Working in Project Explorer44.2.4 How to create a Control Network54.2.5 How to create a Control Project74.2.6 How to start the Control Builder M84.3 Project Explorer Overview114.3.1 Online Help124.3.2 Toolbar Buttons134.3.3 Project Tree134.3.4 Limits164.4 The POU Editor174.4.1 Program Organization Units174.4.2 Editor overview184.4.3 Declaration Pane204.4.4 Message Pane214.4.5 Code Pane234.5 Test (Simulation) Mode254.6 Control Structure Project Explorer274.6.1 Synchronization2827 / 284.1 General Information 4.1.1 ObjectivesOn completion of this chapter you will be able to: Create a new Project in the 800xA system. Navigate in the Project Explorer. Structure the Application Describe the POU editor Interpret a Functional Specification.4.1.2 LegendIndicates a key name.|Indicates when you go from one menu to a sub-menu.BoldIndicates a menu name or an option in a menu, or file structures“ “Indicates dialog box buttons, tabs, instructions etc.FIndicates start/explanation of student activity4.2 Automation SolutionAn Automation Solution is the integrated automation system for administration, maintenance and control. In System 800xA, you can create and handle many Control Projects which can comprise libraries, applications, controllers, security, graphic, history logs, etc.The Project Explorer in Control Builder M and the Plant Explorer / Engineering Workplace should be considered as two separate interfaces for building and maintaining Control projects. As an engineer you will continuously shift between the Project Explorer (Control Builder M) and the Plant Explorer (800xA workplace) while building Control Projects. Control Builder M Professional is the certified tool to configure SIL certified applications. SIL stands for Safety Integrity Level, as specified in the standard IEC-61508. To run SIL certified AC 800M applications, you need the SIL certified AC 800M High Integrity controller.4.2.1 Control ProjectEngineers, who are new with the Control Builder M programming tool, typically equate a program to a Control project. It is not the same thing. Control projects are the traditional programs for control within each geographical plant area (Control Network). They hold all the applications and controllers for controls like library objects, IEC 61131-3 code, hardware configuration, faceplates, etc.4.2.2 Working in the Engineering Workplace / Plant ExplorerThe following actions can/should only take place from the Engineering Workplace Plant Explorer: View Aspects in Structures Editing graphics with Visual Basic Working with the Import/Export Tool for subsets of an Automation System Maintaining Backup and Restore for a complete Automation Solution Configuring security Maintaining Libraries via Library version definition aspect Creating new library versions4.2.3 Working in the Project Explorer of Control Builder MThe following actions can/should only take place from the Project Explorer: Creating hardwareThe Project Explorer only provides (lists) the relevant modules that can be connected to a certain object. Setting an application in Test and Simulate mode Upgrading applications Downloading applications to controllers Setting task connections4.2.4 How to Create a Control NetworkNote that building operations for libraries and applications can be done to a great extent in the Project Explorer as well as in the Engineering Workplace. The Engineering Workplace should be used to create the Control Network and establish a Control Project. A Control Network is used to group connected OPC Servers.NOTE! The “Control Network” in the Control Structure corresponds to the physical Control Network.1. Select the Control Structure in the Plant Explorer Workplace. This is the structure used to create Control Networks, set the OPC data source definition aspect, and create Control Projects.2. Right mouse click on the Root and select “New Object” from the Context menu.3. Select the object type “Control Network” and give a suitable name.4. The result will look like this: 4.2.5 How to Create a Control ProjectAfter you have created a Control Network, create a Control Project. A Control Project groups applications and controllers together from the Project Explorer. Several Control Projects can be created in one Control Network.1. Right mouse click on the Control Network object and select “New Object” from the Context menu.2. Select a controller from the 800xA family (in our case select AC 800M)3. Type in the name for the Control Project, such as “Project_XX”.4.2.6 How to Start the Control Builder MWhen you created the Control Project object in the Engineering workplace the Control Builder M application will automatically open.If the Control Builder M application does not open automatically, right mouse click on the Project_XX, Control Project of the Control Structure and select “Open Project” from the context menu. You can also start Control Builder M Professional from the start menu of Windows.Start | Programs | ABB Industrial IT | 800xA Engineer IT Control Builder MIt is also possible to use the shortcut on the desktop if this was installed.4.3 Project Explorer Overview The Project Explorer is a separate window with a menu bar and a Toolbar. The window is split into two separate viewing areas (panes). In the upper pane, the project is displayed in a tree view control with folders and in the lower pane there are three tab controls for Description, Check and Message.The Project Explorer is a tool you can use to create, modify and navigate in a project. You can select all objects such as data types; functions and function block types and display them in an editor. Lower Pane / Description TabA description, written in the editor (e.g. the program editor), of the selected object in the tree view control is displayed in the Description tab.Lower Pane / Check PaneA check of a selected object, e.g., an Application and its contents is performed when you select Check in the pop-up menu (click with the right mouse button). If any errors are found, they are displayed in the Check pane. Double-click on an error to locate the exact position of the error in an editor. Lower Pane / Message TabThe Message tab displays system activity messages, e.g., going from offline to online mode and opening files.4.3.1 Online HelpThere is a powerful online help feature in the Control Builder.Start the help with the help icon or select Help | Help Topics from the menu bar. You can also press , which provides context sensitive help on the item currently selected.The Help Topics dialog box enables you to locate topics in the help files by using the table of contents (Contents tab), by selecting keywords that are assigned to topics (Index tab), or by searching for words within the file (Find tab). 4.3.2 Toolbar ButtonsThe Toolbar provides quick access to frequently used commands or optionsTest ModeUse this button for offline testing of the user programs, with no controller required. It compiles and simulates the project. All tasks are executed locally in the PC.OnlineF5Use this button to connect to the controller, e.g., if you want to debug the program code in running mode.Download Project and Go OnlineCTRL-DThe program code in the application is compiled and downloaded for execution in the controller. The application automatically enters Online mode (see above). NOTE! Downloads should be done always from the same Engineering Station.4.3.3 Project TreeThe project is displayed in a tree view with the contents indented in an outline based on their logical hierarchical relationship. The objects in the Project Explorer are each represented by a name and an icon. By clicking on the button with a plus or minus sign beside the folder, you can expand or collapse an icon and the corresponding container.The Project Tree contains 3 directories:4.3.3.1 LibrariesThe Libraries folder contains all libraries used in a project. By inserting a library in to a project, its type will become available to connect to an application. The libraries System, BasicLib, and IconLib are available in the Project Explorer by default when the Project is created. There are a number of additional libraries that can be inserted. The libraries contain type definitions such as Data Types, Functions and Function Block Types and Control Module Types that can be used in the project. 4.3.3.2 ApplicationsA Control Project may contain one or more applications. The application is the largest organizational unit in any controller. However a controller may execute several applications. Each application may be considered as an independent object in the controller.In the application create the Program(s) or Control Modules containing the program code to be compiled and downloaded for execution in the Controller(s). Each application to be used must be connected to a Controller by adding the Application to the Applications folder of the Controllers folder. An application may contain up to 64 Programs. This means that you can split the control strategy into different parts, depending on required interval times and priorities.NOTE! In this document the word “Code” refers to any instructions that the controller can execute.You may choose to write code in any one of 5 language editors in Control Builder:All languages are available for both Programs and Control Modules. Choose the language that most suites your needs or preference.There are two types of container that can be used to hold code in a control builder application: Control Modules Programs Programs have a traditional look and feel and represent a traditional approach to application design and build. Within each program a selection of language editors may be used. Each program may be divided into Code Blocks or Tabs, which may be thought of as sub-programs. In some editors you may divide the tab into several pages.Control Modules are another way of compiling code which has many advantages over the traditional programs applications written with control modules will use less memory and execute faster than those written with programs.4.3.3.3 ControllersThe hardware definition and the I/O connection are done in the Controllers folder. In the root of the Controllers folder of each project, several controllers can be created. When you create a new project or insert a new controller, is it suitable to select the controller you intend to use in the project (AC800M or AC800M_Highintegrity). The access variables are used for communication between applications, which may exist in the same controller or in different controllers. Hardware units are added to the tree structure representing physical hardware units.The Applications containing the code are not executed unless a “work scheduler” - a Task - is connected and serves as an “engine” running the code in the controller. In the root of the Tasks folder of each Controller, several tasks can be created. Each Controller has three default Tasks labeled Fast, Normal and Slow with their interval times set to 50ms, 250ms and 1000ms respectively. Each application to be used must be connected to a controller, by adding the application to the Connected Applications folder of the Controllers folder4.3.4 Limits Max 64 programs per application Max 256 applications per project Max 8 applications per controller Max 32 tasks per controller Max 32 controller per projectNOTE! Application programming can be done from any Engineering Station in the system at the same time.There is no access management. That means any changes will be overwritten by the last person who saves.4.4 The POU Editor4.4.1 Program Organization UnitsThe IEC 61131 standard describes Programs, Function Blocks and Functions as Program Organization Units or POUs. These units help you organize your automation project into code blocks to minimize code writing and optimize the code structure and code maintenance. The Function Blocks and Functions POUs are not limited to “one-time-use”. You can use them repeatedly and in a recursive structure. In addition to these two POUs, there is the Program. Although the program is the only POU that cannot be reused in any of the other POUs it is defined as a POU. As can be seen, one can use both the Function Block and the Function recursively to an unlimited “depth” whereas the program is a “top-level” POU.The Application contains the program code that is to be compiled and downloaded for execution in the controller. An application should be seen as a container more than as a programming object, since it does not contain any code of its own. The application is the top hierarchical level. 4.4.2 Editor OverviewOpen the POU editor by double clicking on a Program, or right mouse click and choose Editor. The POU editors of Program, Function Blocks and Control Modules have basically the same look and functionality. This section describes the functions and functionality of a Program. The configuration of Control Modules and Function Blocks are covered later in this course. Toolbar Icons The tables below describe menu commands, toolbar icons and keyboard short cuts common to all editors. Editor-specific functions are described in the chapter of respective editors.Toolbar iconKeyboard hot keyDescriptionCtrl + USaves the changes and closes the editor. Ctrl + WSave the changes but does not close the editor.Ctrl + BChecks the editor contents for errors. The result is displayed in the Check tab in the output pane. Double-click on the lines with error messages to jump directly to the place where an error occurred.Ctrl + PPrints the current pane on a printer.Ctrl + JDisplays a screen preview of printer output.Ctrl + ZUndoes the most recent action. You can undo several steps, except in the ST code editor, which only supports undoing the most recent action. Not available in the SFC editor.Ctrl + YRecalls the last undo action. Not available in the ST code and the SFC editor.Ctrl + XCut.Ctrl + CCopy.Ctrl + VPaste.Ctrl + FStandard find function. Note: the function only searches the current pane and present code block.F3Finds the next occurrence of a specified text string. Note: the function only searches the current pane and present code block.Standard find function, but searches all panes and all code blocks (find in the Editor).Toggles the display of the lower pane - the message pane.Ctrl + IInserts statements like if-then-else, for-loop, etc.Ctrl + SpaceFills in the rest of the name, for example, a variable name in the code pane (complete word).Ctrl + JInserts a variable, data type or attribute in the declaration pane or in the code pane.INSInserts a function or function block.Ctrl + LInserts a function.Ctrl + EEdits a type. The type can be write protected, for example if it is a system-protected type or an user-protected type.Ctrl + MEdit Parameter List. Opens the connection editor for parameter input assistance.4.4.3 Declaration PaneUse the declaration pane to declare variables and Function Blocks. Depending on which editor you use, different declaration grids can be displayed by selecting the tabs at the bottom of the declaration pane. NOTE! Copy/paste from Excel is possible.VariablesThe variables in the program are the holders of values. They are declared by giving each a name and by assigning a data type. A single program may contain many variables and they must be declared when they are used. Variables can be written in Microsoft Excel and then copied and pasted to the declaration pane of the POU editor.Function BlocksFunction Blocks must be declared in the Function Blocks tab before they are used in the ST or IL languages (Not necessary in the FBD or LD editors)4.4.4 Message PaneThe message pane consists of three tabs: Description, Check and Find in Editor.DescriptionIn the description tab, you can write notes in plain ASCII text. The notes are common to all code blocks and grids. It does not change depending on which tab is activated. The description is displayed in the lower pane of the tree view control by marking the edited object (for which a description has been written), e.g. a program in the tree view control and after that selecting the Description tab.CheckWhen you are validating code, error messages are displayed in this pane. Double-click an error message to quickly go to the place where the error occurred.Find in EditorYou can use the Find in Editor command to search for a word in the entire current editor. The result is presented as a list in the message pane under the Find In Editor tab. You can double-click the row in the message pane to go quickly to the occurrence of
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 时间机器课件
- 时间与影子的课件
- 2025版节能门窗安装与性能检测服务合同
- 二零二五年度公路养护化学品供应承包合同范本
- 二零二五年度租赁房屋租金调整合同样本
- 二零二五年担保借款合同范本
- 2025第一部分合同协议书-绿色环保技术合作
- 二零二五年度房屋产权转让与配套设施物业管理合作协议
- 二零二五年度高校教职工工作用餐协议
- 二零二五年度二手房购买及室内风水布局设计施工合同
- 2025年山西省教师职称考试(理论知识)历年参考题库含答案详解(5套)
- 2025年保定高阳县招聘社区工作者考试试题(含答案)
- 数据中台技术方案
- 数字时代教育中人机协同关系构建与实践路径研究
- 药品委托运输协议书范本
- 2025国库知识竞赛题库及参考答案
- 分级保护测评流程(宣)
- 焊接工艺评定报告样本
- DB32T 991-2022 电能计量装置配置规范(修订)
- 纸基饰面材料发展现状与新技术
- 会计学专业建设规划
评论
0/150
提交评论