Professional Documents
Culture Documents
CH112-04 Project Framework - RevB PDF
CH112-04 Project Framework - RevB PDF
CH112-04 Project Framework - RevB PDF
TABLE OF CONTENTS
Chapter 4 Project Framework ........................................................................................................................................................ 1
4.1 General Information............................................................................................................................................................. 2
4.1.1 Objectives ..................................................................................................................................................................... 2
4.1.2 Legend .......................................................................................................................................................................... 2
4.2 Automation Solution............................................................................................................................................................ 3
4.2.1 Control Project.............................................................................................................................................................. 4
4.2.2 Working in the Plant Explorer / Engineering Workplace ............................................................................................. 4
4.2.3 Working in the Project Explorer of Control Builder M ................................................................................................ 4
4.2.4 How to Create a Control Network ................................................................................................................................ 5
4.2.5 How to Create a Control Project................................................................................................................................... 7
4.2.6 How to Start the Control Builder M.............................................................................................................................. 8
4.3 Project Explorer Overview ............................................................................................................................................. 10
4.3.1 Online Help................................................................................................................................................................. 11
4.3.2 Toolbar Buttons .......................................................................................................................................................... 12
4.3.3 Project Tree................................................................................................................................................................. 12
4.3.4 Limits.......................................................................................................................................................................... 16
4.4 The POU Editor ................................................................................................................................................................. 17
4.4.1 Program Organization Units ....................................................................................................................................... 17
4.4.2 Editor Overview.......................................................................................................................................................... 18
4.4.3 Declaration Pane ......................................................................................................................................................... 20
4.4.4 Message Pane.............................................................................................................................................................. 21
4.4.5 Code Pane ................................................................................................................................................................... 23
4.5 Test (Simulation) Mode ..................................................................................................................................................... 25
4.6 Project Explorer Plant Explorer ...................................................................................................................................... 26
4.6.1 Synchronization .......................................................................................................................................................... 28
1 / 28
4.1.2 Legend
2 / 28
<>
Bold
800xA System
Plant Explorer /
Engineering Workplace
Control Builder M
Project Explorer
Handles one
Control project
Builds
Control projects
Download to
AC 800M controller
Control system
AC800M
Aspect System
Handles many
Control projects
Administer
Control projects
Faceplates and
Alarm Lists
Operator Workplace
As an engineer you will continuously shift between the Project Explorer (Control
Builder M) and the Plant Explorer (800xA workplace) while building Control
Projects.
3 / 28
Configuring security
4 / 28
Creating hardware
The Project Explorer only provides (lists) the relevant modules that can be
connected to a certain object.
Upgrading applications
2. Right mouse click on the Root and select New Object from the Context menu.
5 / 28
3. Select the object type Control Network and give a suitable name.
6 / 28
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)
7 / 28
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.
8 / 28
You can also start Control Builder M Professional from the start menu of Windows.
Start | Programs | ABB Industrial IT | 800xA Engineer IT Control Builder M
It is also possible to use the shortcut on the desktop if this was installed.
9 / 28
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.
10 / 28
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).
11 / 28
Test Mode
Online
F5
Download Project
and Go Online
CTRL-D
NOTE!
12 / 28
4.3.3.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.
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 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 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!
13 / 28
You may choose to write code in any one of 5 language editors in Control Builder:
Instruction List
LD
ANDN
ST
Ladder Diagram
A B
AND
Step 1
FILL
Transition 1
Structured Text
Step 2
S Empty
Transition 2
-| |--|/|----------------( )
Step 3
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.
Application
14 / 28
Control
Module 1
Control
Module 2
Control
Module N
Program 1
Program 2
Program N
4.3.3.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.
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 folder
15 / 28
4.3.4 Limits
4.3.4.1 General Limits
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!
16 / 28
17 / 28
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.
18 / 28
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
icon
Keyboard
hot key
Description
Ctrl + U
Ctrl + W
Ctrl + B
Ctrl + P
Ctrl + J
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
Ctrl + X
Cut.
Ctrl + C
Copy.
Ctrl + V
Paste.
Ctrl + F
F3
Ctrl + I
Ctrl + Space
Ctrl + J
INS
Ctrl + L
Inserts a function.
Ctrl + E
Ctrl + M
19 / 28
NOTE!
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. Variables can be written in
Microsoft Excel and then copied and pasted to the declaration pane of the POU editor.
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)
20 / 28
Description
In 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.
Check
When you are validating code, error messages are displayed in this pane. Doubleclick an error message to quickly go to the place where the error occurred.
21 / 28
Find in Editor
You 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 the word.
NOTE!
22 / 28
NOTE!
23 / 28
Select the new Language for the code block and click OK.
NOTE!
Code blocks can be rearranged, deleted and renamed by right click on the code tab.
24 / 28
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.
25 / 28
On the first view there are some objects which do not have corresponding objects on
the other working side. But some objects are located on different places.
26 / 28
Some more interrelations between the Project Explorer and the Plant Explorer are
explained here.
27 / 28
4.6.1 Synchronization
Control Builder M is continuously synchronized with the Aspect Directory on System
800xA.
This synchronization mechanism works in both ways i.e. if you do something in
Control Builder it is mirrored to the Aspect Directory and vice versa.
28 / 28