Professional Documents
Culture Documents
H651-05.1 Project Framework and Control Builder M - RevE
H651-05.1 Project Framework and Control Builder M - RevE
H651-05.1 Project Framework and Control Builder M - RevE
TABLE OF CONTENTS
Chapter 5 - 1
761688177.doc
5.1.1 Objectives
On 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
5.1.2 Legend
> Indicates when you go from one menu to a sub-menu
Italic Indicates object and file names
“ “ Indicates dialog box buttons, tabs, menus etc.
Bold Indicates important topics
Indicates start/explanation of student activity
Chapter 5 - 2
800xA Minerals Training
800xA System
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 is also 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.
Chapter 5 - 3
761688177.doc
Chapter 5 - 4
800xA Minerals Training
Chapter 5 - 5
761688177.doc
2. Right click on the Root object and select “New Object” from the context menu.
3. Select the object type “Control Network” and give a suitable name.
Chapter 5 - 6
800xA Minerals Training
2. Select a controller from the 800xA family (in our case select AC 800M). Type in
the name for the Control Project, such as Sxx_Project.
Chapter 5 - 7
761688177.doc
If the Control Builder M application does not open automatically, right click on the
Sxx_Project object in the Control Structure and select “Open Project”.
You can also start Control Builder M Professional from the start menu of Windows.
“Start > Programs > ABB Industrial IT 800xA > Engineering > Control Builder M”
Chapter 5 - 8
800xA Minerals Training
It is also possible to use the shortcut on the desktop if this was installed.
Then the Control Project can be opened using the “Open Project.” command.
Chapter 5 - 9
761688177.doc
5.3.1 Overview
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.
The Project Explorer is a separate window with a menu bar and a toolbar. The window
is split into two separate viewing areas (panes).
NOTE! Select the top of the area divider to any of the arrows
shown to position the areas.
In the upper pane, the project is displayed in a tree view control with folders and in the
lower pane there are three tabs for Description, Check and Message.
Description Tab
Displays a description, written in the editor (e.g.: the program editor), of the selected
object in the tree view control.
Check Tab
A 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” tab. Double click on an error to
locate the exact position of the error in an editor.
Message Tab
Displays system activity messages, e.g.: going from offline to online mode and
opening files.
Chapter 5 - 10
800xA Minerals Training
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).
Chapter 5 - 11
761688177.doc
Chapter 5 - 12
800xA Minerals Training
5.3.4.1 Libraries
The 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.
When a project is created, the libraries folder contains the System folder (containing
firmware functions that can be used throughout your applications) and two libraries
that are always connected to a project, the Basic and the Icon libraries. There are a
number of additional libraries available 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.
Chapter 5 - 13
761688177.doc
5.3.4.2 Applications
A 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 programs or control modules containing the program
code to be compiled and downloaded for execution in the controllers. Each application
to be used must be connected to a controller.
One Application
Control Modules
Programs
The applications could also contain application folders which allows to structure or
group the applications.
NOTE! In this document the word “Code” refers to any
instruction that the controller can execute.
You may choose to write code in any one of 5 language editors in Control Builder:
A B C Transition 2
AND
A C -| |--|/|----------------( )
B Step 3
All languages are available for both programs and control modules. Choose the
language that most suites your needs or preference.
Chapter 5 - 14
800xA Minerals Training
There are two types of container that can be used to hold code in a Control Builder
application:
Control Modules
Programs
Application
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 usually execute faster than those written with programs. The Minerals
Applications are mainly using Control Modules.
Chapter 5 - 15
761688177.doc
5.3.4.3 Controllers
The 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.
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 or 500ms and 1000ms respectively.
Chapter 5 - 16
800xA Minerals Training
Chapter 5 - 17
761688177.doc
5.4.1 Entities
Only some objects, so-called entities, can be reserved. Unless you have reserved an
entity, parts of the Project Explorer will be read-only, for example, some context menu
items will be disabled, and dialog boxes may be read-only.
The following objects are entities:
Projects, applications, controllers
Libraries
Control modules types
Function block types
Function diagrams (created by Function Designer)
NOTE! An entity can be part of another entity. For example,
applications and controllers are part of a project.
When you reserve an entity, you also reserve all its objects that are no entities. For
example, when you reserve:
A controller, you also reserve all objects part of the controller, such as hardware
units and tasks.
An application, you also reserve its programs and data types, but not necessarily
its function block types or control module types.
Chapter 5 - 18
800xA Minerals Training
User “Engineer1”
reserved this project
When you are finished modifying an entity, you can release it in a similar way: Right
click on the entity and select “Release Reservation”. Use the Release Reservation
dialog box to select what reservations to release.
Chapter 5 - 19
761688177.doc
5.4.4 Example
1. Reserve an application when logged in as the user “Engineer3”.
2. Switch to another user and you can see that the icons changed.
Chapter 5 - 20
800xA Minerals Training
3. When you try to reserve the same application that is reserved by another user, you
get the following message in the dialog box:
The same thing occurs when you try to reserve a controller that is already reserved
by another user.
Chapter 5 - 21
761688177.doc
Chapter 5 - 22
800xA Minerals Training
5. Take over the entities reserved by another user to release them. This user must
have the “Break reservation” permission.
Chapter 5 - 23
761688177.doc
Libraries
Data Types
Function Block Types
Control Module Type
s
Connected Libraries
Chapter 5 - 24
800xA Minerals Training
Control Modules
SCM
CM
FBs
(used inside CM)
CM
FBs
(used inside SCM)
Programs
FBs
FBs
(used inside FB)
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.
Chapter 5 - 25
761688177.doc
The POU editors of programs, function block types and control module types have
basically the same look and functionality. This section describes the POU editor of a
program (control modules and function blocks are covered later in this course).
Chapter 5 - 26
800xA Minerals Training
Toolbar Icons
The tables below describe the main menu commands, toolbar icons and keyboard
short cuts common to all editors. Editor-specific functions are described in the chapter
of respective editors.
Ctrl + W Save the changes but does not close the editor.
Ctrl + B Checks 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.
Reserve the relevant entity (only available for some editors).
Ctrl + Z Undoes 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 + Y Recalls the last undo action. Not available in the ST code
and the SFC editor.
Ctrl + F Standard find function. Note: the function only searches the
current pane and present code block.
F3 Finds 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 + Space Fills in the rest of the name, for example, a variable name in
the code pane (complete word).
Ctrl + J Inserts a variable, data type or attribute in the declaration
pane or in the code pane.
INS Inserts a function or function block.
Ctrl + E Edits a type. The type can be write protected, for example if
it is a system-protected type or an user-protected type.
Ctrl + M Edit Parameter List. Opens the connection editor for
parameter input assistance.
Filters different columns inside the POU editor both in
Online and Offline modes.
Sort the items in a column A to Z sequence. If no column is
selected, the Name column will be sorted.
Sort the items in a column Z to A sequence. If no column is
selected, the Name column will be sorted.
Chapter 5 - 27
761688177.doc
Variables
The 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.
Communication Variables
These variables support the Inter Application Communication (IAC). The CBM
compiler recognizes the declared communication variables and generates the code for
the communication between different applications.
Function Blocks
Function 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).
Chapter 5 - 28
800xA Minerals Training
Description
In the description tab, you can write notes in plain ASCII text. The notes are common
to all code blocks and grids. The description is displayed in the lower pane of the
Project Explorer tree view by marking the edited object (for which a description has
been written), e.g. a program.
Check
When 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 Editor
You can use the “Find in Editor” command to search for a word in the entire current
editor and the result is presented as a list. You can double click the row in the message
pane to go quickly to the occurrence of the word.
Chapter 5 - 29
761688177.doc
The code blocks may be inserted, deleted, renamed and rearranged by clicking right
on the “Code” tab. The language can only be changed if there is no program code in
the block.
Chapter 5 - 30
800xA Minerals Training
…click continue…
Error Messages
If there is an error in the project when you request a Check or when you try to go to
Test Mode, an error message is written in the “Message” tab of the Project Explorer.
Chapter 5 - 31
761688177.doc
Chapter 5 - 32