Getting Started
Getting Started
ABB may have one or more patents or pending patent applications protecting the intellectual property in the ABB
products described in this document.
The information in this document is subject to change without notice and should not be construed as a commitment
by ABB. ABB assumes no responsibility for any errors that may appear in this document.
Products described or referenced in this document are designed to be connected, and to communicate information and
data via a secure network. It is the sole responsibility of the system/product owner to provide and continuously ensure
a secure connection between the product and the system network and/or any other networks that may be connected.
The system/product owners must establish and maintain appropriate measures, including, but not limited to, the
installation of firewalls, application of authentication measures, encryption of data, installation of antivirus programs,
and so on, to protect the system, its products and networks, against security breaches, unauthorized access, interference,
intrusion, leakage, and/or theft of data or information.
ABB Ltd and its affiliates are not liable for damages and/or losses related to such security breaches, any unauthorized
access, interference, intrusion, leakage and/or theft of data or information.
ABB verifies the function of released products and updates. However system/product owners are ultimately responsible
to ensure that any system update (including but not limited to code changes, configuration file changes, third-party
software updates or patches, hardware change out, and so on) is compatible with the security measures implemented.
The system/product owners must verify that the system and associated products function as expected in the environment
they are deployed.
In no event shall ABB be liable for direct, indirect, special, incidental or consequential damages of any nature or kind
arising from the use of this document, nor shall ABB be liable for incidental or consequential damages arising from use
of any software or hardware described in this document.
This document and parts thereof must not be reproduced or copied without written permission from ABB, and the
contents thereof must not be imparted to a third party nor used for any unauthorized purpose.
The software or hardware described in this document is furnished under a license and may be used, copied, or disclosed
only in accordance with the terms of such license. This product meets the requirements specified in EMC Directive
2014/30/EU and in Low Voltage Directive 2014/35/EU.
Trademarks
All rights to copyrights, registered trademarks, and trademarks reside with their respective owners.
Table of Contents
1 Introduction
1.1 General ............................................................................................................. 13
1.2 Product Overview .............................................................................................. 13
1.2.1 ABB Start Menu ................................................................................... 14
1.2.2 Project Explorer ................................................................................... 15
1.2.3 Libraries ............................................................................................... 16
1.2.4 Control Builder Functions .................................................................... 17
1.2.5 Multi-User Engineering ........................................................................ 19
1.2.6 Manuals ............................................................................................... 19
1.2.7 Online Help .......................................................................................... 21
2 Installing Software
2.1 Installation Prerequisites ................................................................................... 24
2.2 Step-by-Step Instructions .................................................................................. 24
2.2.1 Installing the Software .......................................................................... 25
2.2.2 Coexistence with Previous Versions .................................................... 27
3BSE041584-610 A 5
Table of Contents
4 MyDoors Project
4.1 Introduction ....................................................................................................... 45
4.2 Building a Shop Door Project ............................................................................ 45
4.2.1 Specifications ....................................................................................... 46
4.2.2 Defined Variables ................................................................................. 46
4.2.3 Creating MyDoors Project .................................................................... 48
4.2.4 Diagrams .............................................................................................. 49
4.2.5 Variables and Signals .......................................................................... 50
4.2.6 Create Logic for Door Timer and Counters .......................................... 57
4.2.7 Testing MyDoors Project ...................................................................... 72
5 Hardware Configuration
5.1 Configure Hardware .......................................................................................... 77
5.1.1 Changing a CPU Unit .......................................................................... 78
5.1.2 Adding the IO Modules DO814 and DI810 .......................................... 79
5.2 Connect Signals to I/O Channels ...................................................................... 82
5.2.1 Configure Photo Cell Signal for Input I/O Channel .............................. 82
5.2.2 Configure Motor Signals for Output I/O Channels ............................... 83
5.2.3 Reading I/O addresses from the Application ....................................... 84
5.3 Ethernet I/O Wizard ........................................................................................... 84
3BSE041584-610 A 6
Table of Contents
3BSE041584-610 A 7
Table of Contents
Appendix C Upgrade
C.1 Save Application and Configuration Data ......................................................... 151
C.2 Save Gain Schedule Settings in PidAdvancedCC ............................................ 152
C.3 Remove Products ..............................................................................................156
C.4 Install Products ..................................................................................................156
3BSE041584-610 A 8
Table of Contents
3BSE041584-610 A 9
3BSE041584-610 A 10
About this User Manual
User Manual Conventions
Welcome to Compact Control Builder AC 800M. This manual is produced for anyone
intending to use the programming tool Control Builder for the first time. It is focused on
getting you quickly started and acquainted with the product. Therefore, as much 'in-depth'
information as possible has been separated from the main sections and placed in
appendices instead.
If this is your first time working with the programming tool, it is recommended that you
start by reading Section 1 Introduction and then work yourself through each section.
The sections are organized in this manner:
Section 1 Introduction, gives you an overview of the product Control Builder.
Section 3 Control Builder User Interface is a brief introduction to the Control Builder’s
core interface Project Explorer.
Section 4 MyDoors Project, encourages you to build a small project example to get
yourself acquainted with the Control Builder environment.
Section 5 Hardware Configuration, teaches you how to add hardware units to your project.
Section 6 Connecting the Controller and Go Online, starts with the prerequisites for
connecting a controller (correct firmware and system identity) and then guide you through
downloading a project and Go online.
3BSE041584-610 A 11
About this User Manual
User Manual Conventions
Electrical warning icon indicates the presence of a hazard that could result in electrical
shock.
Warning icon indicates the presence of a hazard that could result in personal injury.
Required action icon indicates actions that are required for the product or system to
function as intended.
Tip icon indicates advice on, for example, how to design your project or how to use
a certain function.
Although Warning hazards are related to personal injury, and Caution hazards are
associated with equipment or property damage, it should be understood that operation
of damaged equipment could, under certain operational conditions, result in degraded
process performance leading to personal injury or death. Therefore, fully comply with
all Warning and Caution notices.
3BSE041584-610 A 12
1 Introduction
1.1 General
1 Introduction
1.1 General
Compact Control Builder is a programming tool for creating control solutions when using
the AC 800M hardware.
The Control Builder comes with type solutions for simple logic control, device control,
opened and closed loop control, alarm handling, packaged as libraries.
It provides different wizard functions for e.g. uploading hardware configuration from
Ethernet based I/O, and generating hardware definition files,
It also provides support for multi-user engineering and an evaluation mode for testing,
and evaluating new applications against a running application.
Control Builder supports five different programming languages according to IEC 61131-3.
They are Function Block Diagram (FBD), Structured Text (ST), Instruction List (IL), Ladder
Diagram (LD), and Sequential Function Chart (SFC).
In addition to these, Control Builder supports creation of logic using Diagrams (which
use the Function Diagram (FD) language) and Control Modules using Control Module
Diagrams (CMD). Other useful functionality are online debugger, test and simulation
mode.
3BSE041584-610 A 13
1 Introduction
1.2 Product Overview
Control Builder provides tools for programming applications and configure hardware
units from the AC 800M family. It is accessed through the Project Explorer interface.
This manual gives an introduction to the Project Explorer interface. Once you are familiar
with the basics within this user manual, you are advised to look up the manual Compact
Control Builder AC 800M Configuration (3BSE040935*) which describes more thoroughly
the 800xA programming functions that can be accessed through the Project Explorer.
It is possible to pin the Start Menu tool to the taskbar for an easy access of the tool.
3BSE041584-610 A 14
1 Introduction
1.2 Product Overview
3BSE041584-610 A 15
1 Introduction
1.2 Product Overview
1.2.3 Libraries
Control Builder is delivered with an extensive set of predefined type solutions stored in
libraries. These include data types, functions, function block types, control module types,
and diagram types, which can be used in your projects.
All standard libraries are included during the installation and are available in your projects.
The installation provides the following libraries:
• The Basic library. It contains basic building blocks for AC 800M control software like
data types, function block types, and control module types, with extended
functionality, designed by ABB.
The contents inside the Basic library can be categorized as follows: IEC 61131-3
Function Block Types, Other Function Block Types and Control Module Types.
• The Communication Libraries. They include function blocks for MMS, ModBus RTU,
Modbus TCP, SattBus, COMLI, UDP and TCP, MOD5-to-MOD5 (MTM), Siemens
3964R protocols, and IOCommLib for PROFINET.
• The Control Libraries. They include single PID control and cascade PID control
function blocks, control modules, etc.
• The Binary Process Libraries, contain types for controlling motors, valves, ABB
Drives and Insum Devices. Most types in these libraries are templates, that is, you
can copy and modify them to fit your particular process.
• The Alarm and Event Library contain function blocks for alarm and event detection,
and alarm printouts on a local printer.
• The Signal Libraries contain types for adding supervision, alarm handling and error
handling to I/O signals, and also for the overview and forcing of boolean and real
signals.
A complete list of libraries delivered with the installation can be found in the manual
Compact Control Builder AC 800M Binary and Analog Handling (3BSE041488*).
Hardware Libraries
An extensive set of predefined hardware types, stored in standard hardware libraries,
are delivered with Control Builder. These hardware types can be used in your projects
when configuring the controller hardware.
3BSE041584-610 A 16
1 Introduction
1.2 Product Overview
All standard hardware libraries are included during the installation and are available in
your projects. The installation provides the following libraries:
• The basic hardware libraries. They contain basic hardware types for controller
hardware, such as types for AC 800M, CPUs, Ethernet communication link, Com
port, ModuleBus etc.
• PROFIBUS and PROFInet hardware libraries. They contain hardware types for
PROFIBUS and PROFInet communication interfaces, ABB Drives, and ABB Panel
800.
• Communication hardware libraries. They contain hardware types for the
communication interfaces Foundation Fieldbus HSE, MasterBus 300,
Modbus TCP, IEC 61850, PROFIBUS, PROFINET IO, MOD5, AF 100, EtherNet/IP
and DeviceNet, INSUM, DriveBus, RS-232C, and UDP and TCP.
• Hardware libraries for serial communication protocols. They contain hardware types
for SerialProtocol, COMLI, ModBus and Siemens 3964R.
• Hardware libraries for I/O Systems. They include hardware types for I/O
communication interfaces, I/O adapters, and I/O units; S100 (incl. S100 Rack), S200,
S800, S900, and Select I/O.
3BSE041584-610 A 17
1 Introduction
1.2 Product Overview
Functions in 800xA
Additional functionality for building DCS type of control solutions can be used by the
Control Builder M Professional, available in the ABB 800xA DCS system.
The 800xA Control Builder (the Control Builder Professional) adds the following functions
to the set of functions available in Compact Control Builder:
• Online Upgrade.
• Load Evaluate Go.
• Batch handling.
• Audit Trail.
• SFC Viewer.
• High Integrity Controller for SIL applications.
• CI860 for FF HSE, and CI862 for TRIO I/O.
• Information routing via HART protocol.
• User access control. Possibility to control a user’s authority to perform different
operations and tasks.
• Loop check tool.
The additional functions from 800xA are not included in the Compact Control Builder
AC 800M.
3BSE041584-610 A 18
1 Introduction
1.2 Product Overview
To OPC Client
Ethernet
Figure 1.3: Programmers can share the same project. Multi-user engineering stores
projects on a shared network drive
1.2.6 Manuals
All online manuals exist as pdf files. The files are stored on your local disk after installation.
Online manuals can be accessed from the Project Explorer. Select Help > Manuals >.
3BSE041584-610 A 19
1 Introduction
1.2 Product Overview
This manual, Getting Started introduces you to the basic functions necessary to create
and download a small control project to a controller. The installation provide a number
of additional online manuals in pdf format:
• The manual Compact Control Builder AC 800M Configuration (3BSE040935*)
describes the basic functions in Control Builder.
• The manual Compact Control Builder AC 800M Planning (3BSE044222*) describes
design issues and programming languages.
• The manual Compact Control Builder AC 800M Binary and Analog Handling
(3BSE041488*), describes the Control Builder standard libraries and how to use
them to build complex automation solutions.
• There is also pdf versions of fieldbus and I/O manuals, that is, documentation
regarding FOUNDATION Fieldbus, PROFIBUS, PROFINET IO, AF 100, EtherNet/IP
and DeviceNet, TRIO, Satt IO, S200 I/O, S800 I/O, and S900 I/O.
Full-Text Search
The Figure 1.4 shows Full-Text search window. The link on the page opens the
full-text index file CCB_Manuals_Catalog_file.pdx of the Compact Control Builder.
manuals. Use the Search command of this full-text catalog index file to search the entire
set of documents quickly.
3BSE041584-610 A 20
1 Introduction
1.2 Product Overview
Compact Control Builder AC 800M Page 1 of 2
—
Compact Control Builder AC 800M Manuals
This link opens the full-text index file CCB_Manuals_Catalog_file.pdx, of the CCB manuals. Use the Search command of this full-text
search the entire set of documents quickly.
You can browse for a manual in the alphabetical listing below. Click a title to open the corresponding manual.
AC 800M Manuals
Control
AC 800M -Builder Online(3BSE036351*)
Controller Hardware Help can be accessed in the following ways:
AC 800M - Interfacing SATT I/O (3BSE042821*)
• Context-sensitive help. Select an object in e.g. Project Explorer and press F1.
AC 800M - Library Object Style Guide (3BSE042835*)
Another way to use context-sensitive help is to push the Help button in dialogs. The
AC 800M - Ethernet/IP
online help is DeviceNet
started Configuration
and the (9ARD000014*)
relevant topic is selected.
AC 800M - IEC 61850 Configuration for CI868 (9ARD171385*)
• Via menu command Help>Help Topics. This will bring up online help with the
Advant Fieldbus 100 - Installation, Configuration and Operation (3BSE000506*)
Control Builder topic selected.
I/O Manuals
• Via menu command Help>Help About (browser/editor) This will bring up online
S200 I/O - Hardware (3BSE021356*)
help with the topic for the current browser/editor selected.
S200L I/O and I/O 200C - Hardware (3BSE021357*)
• Via menu command Help>Show Help About... This will bring up a dialog where
S800 I/O - Getting Started (3BSE020923*)
other help files can be reached. This could be either user specific help files or help
S800 I/O - Modules and Termination Units (3BSE020924*)
S800 I/O - Modules and Termination Units with Intrinsic Safety Interface (3BSE020927*)
Once the online help window has been opened, it is possible to navigate to other topics
via links in the help topics or via the different tabs in the help window:
• Contents: The table of contents lists all help topics in a structured way. Navigate
to the relevant topic and select it.
• Index: The index table lists interesting keywords. Scroll through the list or use the
search field to find the keyword you want to view. Double-click on the keyword and
the relevant topic is displayed.
• Search: The text search goes through all topics and shows all the matches, based
on the text you enter. For better results, enter the specific text that is relevant to the
concept that you are searching.
Note that it is not always possible to find information about a single object by entering
its name, for example “CI860” or “Level6CC”. Try searching for the category instead,
for example “I/O units” or “data types”. This will normally take you to a list of objects
or units, from which you can jump to the one you are interested in.
If you are looking for information about a specific library object, or information about
a specific hardware unit, the easiest way to find this information is to select the object
in Project Explorer and press F1. Control Builder will then take you to the right topic.
3BSE041584-610 A 22
2 Installing Software
2 Installing Software
This section explains how to install and start up a single-user configuration, which means
a Compact Control Builder and an OPC Server installed together on the same PC station.
The delivered software consists of three parts -
the ABB Common 3rd Party Install kit, the Compact Control Builder AC 800M, and the
OPC Server for AC 800M. Each of these is installed with the help of installation wizards.
• The first installation wizard installs the common 3rd party software required to work
with ABB Compact Control Builder AC 800M. This is different from the software
mentioned in Product Overview on page 13.
• The second installation wizard installs Compact Control Builder, Base Software for
SoftController, MMS Server, RNRP, and User Documentation.
• The third installation wizard installs OPC Server for AC 800M, MMS Server, and
RNRP.
Run the Compact Control Builder installation before running the OPC Server
installation.
The Compact Control Builder opens the projects stored in a project folder which is
created during the installation.
If the project folder path is changed in a recent installation, the previous projects
cannot be found by the Control Builder. This problem is solved by either changing
the project folder path back to previous location, or copying the previous projects
from the Windows explorer into the current Project folder location.
3BSE041584-610 A 23
2 Installing Software
2.1 Installation Prerequisites
1. Go to Control Panel > Programs and Features to remove the old version.
3BSE041584-610 A 24
2 Installing Software
2.2 Step-by-Step Instructions
3BSE041584-610 A 25
2 Installing Software
2.2 Step-by-Step Instructions
• The Install Software button activates the installation procedure. The Install Software
dialog opens as shown in Figure 2.2.
• The Exit button quits the installation procedure.
3BSE041584-610 A 26
2 Installing Software
2.2 Step-by-Step Instructions
For more information about setting up an OPC Server for multi-user engineering, see
Setting Up OPC Server on page 109.
License Key
The products in the Compact Suite requires a valid license key. How to get a license
key is described in Compact Control Builder AC 800M Product Guide (3BSE041586*).
The license key is entered using the Setup Wizard of any of the products. This is e.g.
described in Product Settings for Compact Control Builder on page 101. Without a valid
license key, the products will be running in demo mode.
3BSE041584-610 A 27
2 Installing Software
2.2 Step-by-Step Instructions
This is possible only if the required Compact Control Builder options are installed:
1. To include coexistence, change the installed features. From the Control Panel,
select Programs and Features, right-click ABB Compact Control Builder
AC 800M, and select Change. Select the Modify option. The Custom Setup dialog
is displayed.
2. Select the version(s) for coexistence. For example, if any project saved in Compact
Control Builder 5.1.1 need to be used, select AC 800M Coexistence 5.1.1.
3. Click Next to proceed with the installation.
3BSE041584-610 A 28
3 Control Builder User Interface
3.1 Introduction
3.1 Introduction
The core interface of Control Builder is the Project Explorer. After getting familiarized
with Project Explorer in this section, you can refer to
Section 4 MyDoors Project, to create a new project and its logic.
3BSE041584-610 A 29
3 Control Builder User Interface
3.1 Introduction
Figure 3.1: Sequence for building a project and making a download to the controllers
3BSE041584-610 A 30
3 Control Builder User Interface
3.2 Project Templates
2. An empty project template contains only the compulsory system firmware functions, with no additional
application or hardware functions.
3BSE041584-610 A 31
3 Control Builder User Interface
3.3 Project Explorer
Title bar
Menu bar
Tool bar
Project
Explorer
Message
pane
3BSE041584-610 A 32
3 Control Builder User Interface
3.3 Project Explorer
Libraries
Applications
Controllers
Figure 3.3: The Project Explorer pane, showing the three main folders Libraries,
Applications, and Controllers.
3BSE041584-610 A 33
3 Control Builder User Interface
3.3 Project Explorer
Besides these three libraries, the Libraries folder also contains the Hardware folder with
the library containing the basic hardware types:
• BasicHWLib (if AC800M, EmptyProject, or SoftController template is used for creating
the project).
After the project is created, both standard libraries and user-defined libraries can be
created or inserted into the Libraries folder and the Hardware folder.
When a new library is created, the subfolders – Data Types, Diagram Types, Control
Module Types, and Function Block Types – are not visible since they do not contain
any objects.
Right-click the library to open the context menu, and go to New which displays the
option to create the different types (see Figure 3.4). Once the types are created, they
are displayed under the corresponding subfolders in the library.
3BSE041584-610 A 34
3 Control Builder User Interface
3.3 Project Explorer
A library can only be added to an application if it has first been added to the Libraries
folder. A hardware unit (type) can only be connected in a controller configuration if the
corresponding hardware library is added to the Hardware folder.
For more information on libraries and library handling, see the manual Compact
Control Builder AC 800M Configuration (3BSE040935*) and the manual Compact
Control Builder AC 800M Binary and Analog Handling (3BSE041488*).
3BSE041584-610 A 35
3 Control Builder User Interface
3.3 Project Explorer
Figure 3.5: Creating a new application folder inside the Applications folder
The application folders helps to structure or group the applications in the Project Explorer.
It is also possible to move applications and application folders in the folder structure
using the drag-and-drop operation.
The Connected Libraries folder under the application contains all libraries that are
connected to the particular application. To connect a library to an application, right click
the Connected Libraries folder, select Connect Library, and select the required library
from the drop down list.
The types that can be created under the application are Data Types, Diagram Types,
Function Block Types, Control Module Types. The created types can be used in the
application. If a library is connected to the application, the types from that library can
also be used in the application.
In the application, the code is organized in any of the following folders:
• Control Modules
• Diagrams
• Programs
3BSE041584-610 A 36
3 Control Builder User Interface
3.3 Project Explorer
For more information, refer to the manual Compact Control Builder AC 800M Configuration
(3BSE040935*).
The Diagrams folder in the default application contains three diagrams. These three
diagrams are connected to three default tasks, see Controllers Folder on page 39. You
can change these task connections, as well as add your own tasks and diagrams.
When a new application is created, the subfolders – Data Types, Control Module
Types, Diagram Types, Function Block Types, Control Modules, Diagrams, and
Programs – are not visible because they do not contain any objects.
Right-click the application to open the context menu, and go to New, which displays
the option to create the different types, control modules, diagrams, and programs
(see Figure 3.6). Once these are created, they are displayed under the corresponding
subfolders in the application.
3BSE041584-610 A 37
3 Control Builder User Interface
3.3 Project Explorer
Figure 3.6: Creating types, control modules, diagrams, or programs under an application.
From the objects in the Applications folder, a number of software editors can be
opened, see Editors on page 41.
To check the code for errors, click the Check icon on the toolbar. If there are errors in
the project, these are indicated by a red triangle next to the object (in Offline mode). The
descriptions of the errors are displayed in the Check tab of the message pane.
3BSE041584-610 A 38
3 Control Builder User Interface
3.3 Project Explorer
Only hardware libraries that are added to the project can be connected to a controller
(see Libraries Folder on page 33).
For each controller there is a hardware folder where a CPU unit is located. Other units,
such as I/O units and communication interface units can be added to this hardware
folder. The controller structure mirrors the physical structure, which means that all ports
and buses have their own corresponding unit (icon) in Project Explorer.
For more information about hardware configuration and the Controllers folder, see
Section 5 Hardware Configuration.
The Controllers folder also contains a Tasks sub-folder and an Access Variables container.
The Tasks folder contains tasks that are used to control the execution of your applications.
By default, the Tasks folder contains three tasks: Fast, Normal, and Slow. However, you
can add the tasks you need for your applications.
For more information on tasks and task execution, see the manual Compact Control
Builder AC 800M Configuration (3BSE040935*).
Double-clicking the Tasks folder will display a task overview. Double-clicking an individual
task will display the Task Properties dialog for that particular task.
From objects in the Controllers folder (CPU units, I/O units, communication ports,
communication interfaces, etc.), a number of hardware editors can be opened, see
Editors on page 41.
3BSE041584-610 A 39
3 Control Builder User Interface
3.3 Project Explorer
3BSE041584-610 A 40
3 Control Builder User Interface
3.3 Project Explorer
Figure 3.7: Object created in diagram as a result of dragging a type and dropping it in
the drawing area
3.3.9 Editors
Control Builder contains a number of editors. The editors can be accessed from Project
Explorer. To access an editor, right-click the object (it could be a controller, a hardware
unit, an application, a diagram, a program, or a type) and select Editor from the context
menu.
3BSE041584-610 A 41
3 Control Builder User Interface
3.3 Project Explorer
Figure 3.8: Diagram Editor with declaration pane, code pane, and message pane
Among many things, editors are used to declare variables, create control logic, and
connecting to I/O channels.
3BSE041584-610 A 42
3 Control Builder User Interface
3.3 Project Explorer
3BSE041584-610 A 43
3BSE041584-610 A 44
4 MyDoors Project
4.1 Introduction
4 MyDoors Project
4.1 Introduction
This section helps you to build a small project and get yourself familiar with Control
Builder. The guidelines that come with this example suggests that you build a project
called MyDoors that simulates the entrance to a store. While working with the MyDoors
project, you will learn about diagrams and declaration of variables and function blocks
in diagrams, and much more.
Control Builder comes with a ready-made project example called ShopDoors installed
on your local disk, see Project Examples in Compact Control Builder on page 114 for
locating the ShopDoors example or any other Control Builder examples.
If you do not have access to an AC 800M controller or IO modules, you can still follow
this example with a SoftController. Look for SoftController specific instructions
throughout MyDoors project example.
The SoftController is a test and debugging tool used for basic program tests. Execution
of specific functions differs between SoftController and a hardware controller in several
aspects, for example, execution performance, floating point precision (64 versus 32
bit), communication capabilities and so on.
After finishing your study of the MyDoors project, you are advised to continue with the
remaining sections in this manual.
3BSE041584-610 A 45
4 MyDoors Project
4.2 Building a Shop Door Project
4.2.1 Specifications
This project will simulate the entrance to a store. The following specifications are given:
• The entrance consists of two sliding doors that open when a customer activates a
photocell.
• Each door is opened and closed by its own motor.
• The doors return to default position (closed) five seconds after the last activation of
the photocell. Consequently, several customers arriving one after the other will
extend the time the door remains open.
• The number of customers is recorded for statistics. Manual reset of this counter
should be possible.
• The total number of times the doors have opened since they were last serviced
should be recorded.
• Each opening of the doors should increment a counter. When the counter reaches
a preset limit, a flag should indicate that service is required. Manual reset of the flag
should be possible.
3BSE041584-610 A 46
4 MyDoors Project
4.2 Building a Shop Door Project
3BSE041584-610 A 47
4 MyDoors Project
4.2 Building a Shop Door Project
1. From the Project Explorer, select File > New Project, or click the icon. A New
Project window opens.
2. Select the AC800M template and type MyDoors in the Name field.
3BSE041584-610 A 48
4 MyDoors Project
4.2 Building a Shop Door Project
The Libraries folder contains the standard libraries Basic library (BasicLib), Icon library
(IconLib) and Basic hardware library (BasicHwLib).
The System library is always automatically inserted into a project. It contains basic
data types and firmware functions. The System library cannot be removed from the
project or changed by the user.
4.2.4 Diagrams
In Control Builder, the control logic can be created in diagrams, which are created under
an application. The diagrams use a graphical programming language.
The diagram editor allows mixing of functions, function blocks, control modules, and
other diagrams, and allows graphical connection between the blocks to achieve a
particular logic.
In this example project, you are going to create the logic in a diagram.
In the MyDoors project, expand Application_1 to view the Diagrams folder and the three
default diagrams.
Open the Diagram editor for Diagram2.
3BSE041584-610 A 49
4 MyDoors Project
4.2 Building a Shop Door Project
3BSE041584-610 A 50
4 MyDoors Project
4.2 Building a Shop Door Project
3. Select the Variables tab, and place the cursor in the upper left-hand cell in the
declaration pane and type Photo_Cell.
4. Move one cell to the right by pressing the tab key. The default values retain and
hidden are automatically shown in the “Start Attribute” and “Attributes” columns.
The default setting retain means that the variable will keep its value at a warm
restart. The default setting hidden means that the variable is not visible as an OPC
variable.
5. Type BoolIO in the “Data Type” column.
3BSE041584-610 A 51
4 MyDoors Project
4.2 Building a Shop Door Project
6. Skip the “Initial Value” column. Since BoolIO is a structured data type it is not relevant
to enter any initial value. The initial values defined in the data type definition will be
applied.
7. Skip the “I/O address” and “Access Variables” read-only columns. The I/O address
will be automatically filled in later when connecting variables to I/O channels.
8. The last column “Description” is reserved for you to use freely. Your first row should
now look like this:
9. Prepare the code pane by changing the name of page 1. At first the code pane only
has one diagram page, but many pages can be added. To make navigation easier
it is possible to set a textual name on a page in addition to just numbers 1, 2, 3 and
so on. To do this, click in the code pane background and press F2. Set the page
name to Motors_Doors:
3BSE041584-610 A 52
4 MyDoors Project
4.2 Building a Shop Door Project
10. The next step is to insert a declared variable in the code pane by drag and drop.
First go to the declaration pane and select the Photo_Cell cell in the Name column.
Then drag and drop (keep left mouse button down while moving the cursor) the
variable name in the code pane.
Figure 4.6: Variable is displayed as graphical object in the code pane after the drag
and drop operation.
3BSE041584-610 A 53
4 MyDoors Project
4.2 Building a Shop Door Project
11. Declare the next variable Motor_1 and use the option to declare a signal with the
same name. Right click the code pane and select New > Variable. In the New
Variable dialog enter Motor_1 as name and BoolIO as data type. Use the option to
declare a signal at the same time. In the New Variable dialog mark the Add signal
check box and change Direction to out. Fill in the remaining values according to
the dialog below and click OK.
The new variable, Motor_1 gets inserted as a graphical object in the code pane. It
also appears as a variable in the Declaration Pane:
3BSE041584-610 A 54
4 MyDoors Project
4.2 Building a Shop Door Project
Furthermore, Motor_1 appears as a signal in the Declaration Pane with path to the
corresponding variable:
12. Declare the next variable Motor_2 by the same method. Add signal also for Motor_2.
3BSE041584-610 A 55
4 MyDoors Project
4.2 Building a Shop Door Project
13. Declare the remaining variables in the declaration pane, row 4 to row 8:
Note the attribute constant of the variable Openings_Total. You can either explicitly
type “constant”, or scroll through the available formats using Alt-key together with the
up and down arrow keys, or press CTRL+J to display the list of attributes and then
select constant.
14. Select the Communication Variables tab in the Diagram editor, and declare the
Service_Req communication variable:
15. Select the Signals tab. The Signal tab already show the Motor_1 and Motor_2
signals added by previous steps. Place the cursor in the left-hand cell on row 3 in
the declaration pane and type Photo_Cell. The Path defines the variable that will
be linked to an I/O channel. Set the cursor in Path column on row 3 and press Ctrl+J.
Double click on the Photo_Cell variable name shown in the entry assistance dialog.
Fill in the remaining values:
3BSE041584-610 A 56
4 MyDoors Project
4.2 Building a Shop Door Project
3BSE041584-610 A 57
4 MyDoors Project
4.2 Building a Shop Door Project
2. In the New Object dialog, select the TOf function block type from any of the two
tabs:
• The List tab contains alphabetical list of all objects available in the inserted
libraries in Project Explorer. Select TOf (Timer Off).
• The Tree tab displays a tree structure to navigate to the required object.
Go to Connected Libraries > BasicLib > Function Block Types, and select
TOf.
3BSE041584-610 A 58
4 MyDoors Project
4.2 Building a Shop Door Project
4. Click Insert, and then click Close to close the dialog. The OpenDoors function block
is inserted in the code pane and also in the declaration pane.
For more information about the TOf and the CTU function blocks, open the Control
Builder Online Help. Simply place the cursor in the Function Block Type cell (for
example TOf), and press F1.
3BSE041584-610 A 59
4 MyDoors Project
4.2 Building a Shop Door Project
5. In the declaration pane for Function Blocks, add the description ‘Timer for Motor’
for the OpenDoors function block.
6. The triangle in the lower right corner of the OpenDoors graphical block indicates
that not all ports are shown. Make all ports visible by selecting the OpenDoors block
in the code pane and then clicking on the Show All Ports tool bar button:
Figure 4.16: Tool bar buttons for changing port visibility. The left button means Show
All Ports as visible in tool tip.
3BSE041584-610 A 60
4 MyDoors Project
4.2 Building a Shop Door Project
7. A variable can be created directly from a block port. This shall be done for the PT
and ET ports of the OpenDoors block. Do this by right-clicking on the PT port and
selecting the Add Variable... command in the context menu. The New Variable
dialog will be shown and suggest a variable name based on the block and port
names, and a data type based on the port data type. Enter 'T#5s' as Initial value
and 'Time duration that doors should be opened' as Description and then click OK.
Figure 4.17: The New Variable dialog opened from the PT port of the OpenDoors
function block.
3BSE041584-610 A 61
4 MyDoors Project
4.2 Building a Shop Door Project
8. Repeat for the ET port of the OpenDoors block. Leave the Initial value empty and
enter 'Elapsed time after photo cell has been activated' as Description and then
click OK. If necessary, adjust the position of the created variable objects by dragging
them. Now the code block shall look like this:
Figure 4.18: The logic after creating variables directly from the PT and ET ports.
3BSE041584-610 A 62
4 MyDoors Project
4.2 Building a Shop Door Project
9. Make a graphical connection between the Photo_Cell variable and the In port of
the OpenDoors function block. Do this by clicking on the right port on the Photo_Cell
variable object and while keeping the left mouse button pressed down, start moving
the cursor. An uncompleted connection is shown:
Move the cursor to the In port of the OpenDoors function block and release the
mouse button. If the two ports involved are of the same data type the graphical
connection is simply completed. But in this case, the source port is of BoolIO data
type, which is a structured data type, and the destination port is of bool data type,
which is a simple data type. Therefore a Select Component dialog will be shown:
3BSE041584-610 A 63
4 MyDoors Project
4.2 Building a Shop Door Project
The dialog shows the components that match the data type of the destination port.
Select the Value component and click OK.
10. Repeat this for the Motor_1 and Motor_2 variables. Select the left hand port of the
variable objects and make a graphical connection to the Q port of the OpenDoors
function block. For both variables, select the Value component and click OK in the
Select Component dialog. After this is done the logic shall look like this:
3BSE041584-610 A 64
4 MyDoors Project
4.2 Building a Shop Door Project
2. Open the Number_of_customers page. In the code pane, right-click and select New
> Object from the context menu. The New Object dialog opens.
3. Select CTU from the list and enter Customer_Count_Up in the Name field. Click
Insert and close the dialog.
4. A Customer_Count_Up function block is created in the code pane. Add the
description in the declaration pane according to figure below:
5. Add variables in the code pane by selecting Insert... in the background area context
menu. Select the variables Photo_Cell, Reset_Counter, and Customers_Qty
(multiple select in the list by using Control key down while clicking) and then click
the Insert button. Close the Insert dialog. Move the Customers_Qty variable to a
position to the right of the CTU block. Move the Photo_Cell and Reset_Counter
variables to a position to the left of the CTU block.
3BSE041584-610 A 65
4 MyDoors Project
4.2 Building a Shop Door Project
3BSE041584-610 A 66
4 MyDoors Project
4.2 Building a Shop Door Project
2. Open the Service_On_Doors page. In the code pane, right-click and select New >
Object from the context menu. The New Object dialog opens.
3. Select CTU from the list and enter Service_Count_Doors in the Name field. Click
Insert and close the dialog.
4. A Service_Count_Doors function block is created in the code pane. Add the
description in the declaration pane according to figure below:
5. Add variables in the code pane by selecting Insert... in the background area context
menu. Insert the Serviced, Openings_Total, Service_Req, and Openings_Freq
variables. Move the Service_Req and Openings_Freq variables to the right of the
CTU block.
3BSE041584-610 A 67
4 MyDoors Project
4.2 Building a Shop Door Project
7. The CU parameter shall be connected to the Q port of the OpenDoors function block
on diagram page 1. It is possible to make graphical connections to object on other
pages by the use of page connectors. Go to diagram page 1 and left click on the Q
port. The port becomes marked:
3BSE041584-610 A 68
4 MyDoors Project
4.2 Building a Shop Door Project
Figure 4.27: Completing the connection by using the Connect to Previous Selection
context menu command.
3BSE041584-610 A 69
4 MyDoors Project
4.2 Building a Shop Door Project
9. This will create the graphical connection to the object on diagram page 1 with page
connectors shown on diagram pages 1 and 3:
Figure 4.28: On page 1 the page connector on the right hand side shows that the
graphical connection goes to the CU port on the Service_Count_Doors object on
page 3.
Figure 4.29: On page 3 the page connector on the left hand side shows that the
graphical connection comes from Q port of the OpenDoors object on page 1.
3BSE041584-610 A 70
4 MyDoors Project
4.2 Building a Shop Door Project
3BSE041584-610 A 71
4 MyDoors Project
4.2 Building a Shop Door Project
Before running the diagram in Test mode, there is an option to enable the Difference
Report window. However, the Difference Report function is not important for this
example since it does not generate a report in Test mode.
For details on how to enable this function, see Difference Report on page 126. This
example assumes that the Difference Report has the default setting (not enabled).
1. In Project Explorer, click Test Mode . The Test Mode Analysis window opens.
2. Click Cold Restart All.
3. Click Continue.
3BSE041584-610 A 72
4 MyDoors Project
4.2 Building a Shop Door Project
3BSE041584-610 A 73
4 MyDoors Project
4.2 Building a Shop Door Project
Figure 4.31: Changing online value for a variable in the declaration pane.
Figure 4.32: Changing online value for a variable component in the code pane.
3BSE041584-610 A 74
4 MyDoors Project
4.2 Building a Shop Door Project
3. Right-click Photo_Cell and select On, then QUICKLY select Off again.
Simulating that a customer has activated the photocell. Both the number of openings
is increased and customers increase.
4. Wait until the doors close. Right-click Photo_Cell and QUICKLY select On, Off,
On, Off, On, Off.
Simulating that three customers are passing the photocell one by one. Notice that
the clock starts when the first customer passes the photocell and resets to 0 when
the next customer passes. Consequently, the opening time is extended for a new
period of 5 seconds, and so on. Note also that the number of times the doors open
only increases by one, whereas the number of customers is increased by three. You
should have three openings of the doors and five customers registered.
5. In the variables list, right-click Reset_Counter and select On, then select Off again.
Reset the customer counter.
6. Activate the photocell so the number of openings (Openings_Freq) passes
Openings_Total. Service_Req will then become True.
7. Right-click Serviced and select On, then select Off again.
Study the reaction of the counters and flags. Note that the variable Openings_Freq
resets.
8. Close Diagram editor.
9. From Control Builder Menu bar, select Tools > Stop Test Mode.
3BSE041584-610 A 75
3BSE041584-610 A 76
5 Hardware Configuration
5.1 Configure Hardware
5 Hardware Configuration
This section teaches you how to add or remove hardware units from the tree structure
in the Project Explorer. It covers the necessary steps for building a software model that
represents a limited part of a hardware configuration in the plant.
Figure 5.1: Hardware position for IO modules (for example DO814 at position 1 and
DI810 at position 2).
3BSE041584-610 A 77
5 Hardware Configuration
5.1 Configure Hardware
In this example, a default CPU PM860 will be replaced with a CPU PM864.
To replace a CPU:
1. Expand Controllers > Controller_1 > Hardware AC 800M until you see the PM860
/ TP830 item in the Project Explorer tree.
2. Right-click the PM860 / TP830 item and select Replace Unit in the context menu.
A ‘Replace’ window opens.
3. Expand Connected Libraries and select, for example PM864/TP830.
3BSE041584-610 A 78
5 Hardware Configuration
5.1 Configure Hardware
Hardware Folder
Figure 5.3: The hardware folder located inside Libraries folder in the Project Explorer.
Among the hardware libraries listed under the Hardware folder, the
S800IoModulebusHwLib library contains S800 IO units for the Modulebus.
2. Expand Controllers > Controller_1 until you see the Connected Libraries folder
in the Project Explorer tree.
3. Right-click the Connected Libraries folder, select Connect Library, and select
S800IoModulebusHwLib from the window.
4. Click OK.
Adding the IO modules from the hardware library:
1. Expand Controllers > Controller_1 > Hardware AC 800M > PM864/TP830 until
you see the ModuleBus item in the Project Explorer tree.
2. Right-click the ModuleBus item and select Insert Unit in the context menu. A ‘Insert
Unit for ModuleBus’ window opens.
3BSE041584-610 A 79
5 Hardware Configuration
5.1 Configure Hardware
3. Expand Connected Libraries > S800Io ModulebusHwLib > Hardware types and
select DO814.
4. Keep default position 1 from Position drop-down menu and click Insert.
3BSE041584-610 A 80
5 Hardware Configuration
5.1 Configure Hardware
To remove a hardware unit, right-click the object in the tree structure and select
Delete.
3BSE041584-610 A 81
5 Hardware Configuration
5.2 Connect Signals to I/O Channels
Figure 5.6: The entry assistance shows the available signals with direction 'in'.
3BSE041584-610 A 82
5 Hardware Configuration
5.2 Connect Signals to I/O Channels
Figure 5.8: The entry assistance shows the available signals with direction 'out'.
4. Double click on Motor_1. Press the ENTER key. Focus is moved to the second row.
3BSE041584-610 A 83
5 Hardware Configuration
5.3 Ethernet I/O Wizard
5. Type Ctrl + J to open the entry assistance again, this time select Motor_2.
6. The motor variables in Diagram2 have now been connected to the D0814 I/O
channels by use of the corresponding signals.
Figure 5.9: The signals added to the first two I/O channels.
Figure 5.10: The I/O Address column shows how variables are connected to I/O channels.
Changes made to I/O connections in the hardware editor will be reflected in both editors.
Your project has now been tested offline and the hardware configuration is complete.
3BSE041584-610 A 84
6 Connecting the Controller and Go Online
6.1 Firmware Upgrade
This section contains the prerequisites for connecting a controller and the general
procedure for downloading a project to the controller.
If you have created a project according to Section 4 MyDoors Project and then followed
the instructions in Section 5 Hardware Configuration, you can continue with downloading
the application in MyDoors project to a controller.
If you do not have access to a controller or IO modules, you can still follow this example
by using a SoftController. If you prefer to run with a SoftController; jump directly to the
subsection, Setting the System Identity in Control Builder on page 93.
3BSE041584-610 A 85
6 Connecting the Controller and Go Online
6.1 Firmware Upgrade
4. Select Settings > COM Port from the drop-down menu. Make sure the settings
correspond to the physical COM port, on the PC to which your cable is connected.
3BSE041584-610 A 86
6 Connecting the Controller and Go Online
6.1 Firmware Upgrade
5. Click Connect and then press the Init push-button on the Controller until the Run
LED starts to blink. Wait about a minute until a message appears. If connection was
successful, a confirmation text will occur in the Firmware Version text field (Figure
6.2).
In the event of an error message “Connection failed”, you must check the cables and
repeat these steps again.
3BSE041584-610 A 87
6 Connecting the Controller and Go Online
6.2 Setting IP Addresses
6. Select Firmware version3 from the drop-down menu and click Upgrade. File
transmission starts to the controller. This operation may takes a few minutes. A
confirmation window opens when the controller is upgraded, see Figure 6.3.
7. Click OK.
8. Click Exit.
9. Press the Init push-button on the Controller until the Run LED starts to blink.
3. The firmware version must be supported by the installed Control Builder version.
3BSE041584-610 A 88
6 Connecting the Controller and Go Online
6.2 Setting IP Addresses
Preparations
Connecting the cable between the Control Builder and the Controller are exactly the
same as described in Firmware Upgrade on page 85.
1. Connect a serial cable between the Control Builder PC and the Controller, as
specified in Table 6.2. For the type of cable, see Appendix Communication Cables.
3BSE041584-610 A 89
6 Connecting the Controller and Go Online
6.2 Setting IP Addresses
2. From the dialog menu Settings, select the Com port connected to the controller.
3BSE041584-610 A 90
6 Connecting the Controller and Go Online
6.2 Setting IP Addresses
3. Click Connect and then press the Init push-button on the Controller until the Run
LED starts to blink. Wait about a minute until the default IP address appears, see
Figure 6.5.
Figure 6.5: The IP Config dialog box with factory default setting.
In the event of an error message “Connection failed”, you must check the cables and
repeat these steps again.
3BSE041584-610 A 91
6 Connecting the Controller and Go Online
6.2 Setting IP Addresses
5. Set Subnetmask 255.255.252.0 and then click Apply. The new address will be sent
to the Controller and an IP Config window re-opens, see Figure 6.7.
6. Click OK.
7. Click Exit.
8. Press the Init push-button on the controller until the Run LED starts to blink. The
new IP address is not valid until the controller has been restarted.
3BSE041584-610 A 92
6 Connecting the Controller and Go Online
6.3 Download Project via Ethernet
6. Enter an IP address, in this example (172.16.84.120) and then enter sub net mask
(255.255.252.0).
The number 120 in this example is arbitrary; you may choose any number in range
of (1-254) except number 124 for obvious reasons in this example.
7. Click OK, and close the Local Area Connection Properties dialog.
8. Connect a network cable. The port and channel positions are shown in Table 6.3.
To check that the IP configuration works; open the command prompt window and
ping the Controller. In this example write the following command: ping 172.16.84.124.
Table 6.3: Channel positions for connecting the Ethernet cable in the Controller.
CN2 port on the Controller must not be connected to the same network as CN1. This
port is used for connecting the Controller to a secondary (redundant) network.
3BSE041584-610 A 93
6 Connecting the Controller and Go Online
6.3 Download Project via Ethernet
2. Right-click Controller_1 and select Properties > System Identity from the context
menu. The System Identity window opens.
Figure 6.9: The System Identity window for setting the IP address.
3. Enter the actual IP address of your controller and click OK. The System Identity
window closes.
If you run with a SoftController then type in your computer IP address and finish
with colon and the digit 2. Example: 10.46.35.117:2
When the computer is started without network connection, the Control Builder and
SoftController get the IP addresses 127.0.0.1 and 127.0.0.1:2 respectively (irrespective
of fixed IP addresses in the computer). These addresses can be used in the project.
But, without network connection, it is not recommended to use the fixed addresses
in the computer, such as 172.16.84.123:2, because when it is used in the project and
a downloaded to the SoftController, it results in a crash.
4. Expand Hardware AC 800M until you find 1 Ethernet. Right-click the Ethernet icon
(at position 1) and select Editor. The editor opens.
3BSE041584-610 A 94
6 Connecting the Controller and Go Online
6.3 Download Project via Ethernet
5. Select the Settings tab (lower left corner, see Figure 6.10) and enter the IP address
in the IP address Value field.
Note that the IP address of the first Ethernet port has to be the same as the IP address
of the Controller (system identity). The second Ethernet port (at position 2) is only
used if the controller is connected to a redundant network.
3BSE041584-610 A 95
6 Connecting the Controller and Go Online
6.3 Download Project via Ethernet
2. Click the toolbar button Download Project and Go Online . The Online analysis
window opens.
3BSE041584-610 A 96
6 Connecting the Controller and Go Online
6.3 Download Project via Ethernet
3. Click Continue.
3BSE041584-610 A 97
6 Connecting the Controller and Go Online
6.3 Download Project via Ethernet
4. Next, you must start the SoftController. Select SoftController in the ABB Start Menu
app, described in ABB Start Menu on page 14.
The SoftController panel opens:
5. In Soft Controller panel, Click the Start button. The SoftController starts and the
Status field changes to Started.
6. In Project Explorer, click the toolbar button Download Project and Go Online .
The Online analysis window opens.
7. Click Cold Restart All.
8. Click Continue. You should now be online.
3BSE041584-610 A 98
6 Connecting the Controller and Go Online
6.4 Test the Diagram Online
3BSE041584-610 A 99
6 Connecting the Controller and Go Online
6.5 What's Next?
3BSE041584-610 A 100
A Functions and Settings
A.1 Product Settings for Compact Control Builder
This section describes some of the functions that are specific to Control Builder. It will
also provide guidelines for different settings and configuration issues typical to working
with control software for AC 800M. A more detailed description for these topics can be
found in the manual Compact Control Builder AC 800M Configuration (3BSE040935*).
3BSE041584-610 A 101
A Functions and Settings
A.1 Product Settings for Compact Control Builder
• Working folder; contains Compact Control Builder station log files, settings etc.
• MMS Server working folder; contains MMS Server log files.
• Project folder; contains projects.
Clicking Use Default Settings, resets the manual settings to the general default settings.
How to change the file location for the Project Folder, see Multi-User Configuration
on page 104.
A.1.2 Language
The language to be used for the programming tool is selected under the Language tab.
By default, the installation program selects English.
3BSE041584-610 A 102
A Functions and Settings
A.1 Product Settings for Compact Control Builder
A.1.3 License
A valid license key shall be entered here. It will be valid for Compact Control Builder,
Soft Controller, and OPC Server. If no valid license key is entered, the products will be
running in demo mode.
3BSE041584-610 A 103
A Functions and Settings
A.2 Multi-User Configuration
1. A Compact Control Builder project contains several files. These project files hold configuration data for
libraries, applications, hardware, project constants etc.
3BSE041584-610 A 104
A Functions and Settings
A.2 Multi-User Configuration
3BSE041584-610 A 105
A Functions and Settings
A.2 Multi-User Configuration
Select this
checkbox
3BSE041584-610 A 106
A Functions and Settings
A.2 Multi-User Configuration
7. Select the Everyone group, and select the Allow checkbox corresponding to Change.
Select this
checkbox
3BSE041584-610 A 107
A Functions and Settings
A.2 Multi-User Configuration
Figure A.7: Modify Project Folder dialog for opening the shared project folder
Type the path in the Folder Path field as in Figure A.7. The path must be specified
with an UNC path that contains the server name and the shared folder name
\\MyServer\AC800Mprojects.
Exclude the ABB Industrial IT Data folder and any used shared network disk from a
virus scan, if the files are scanned at access. Configure the anti-virus program to
scan these files and folders on demand or at a scheduled scan.
3. Type the UNC path to the shared AC800Mprojects folder in the Folder Path field.
3BSE041584-610 A 108
A Functions and Settings
A.2 Multi-User Configuration
Figure A.8: The new file location for the common project folder.
For more information about the differences between the Working folder and Project
folder, see File Locations on page 101.
3BSE041584-610 A 109
A Functions and Settings
A.2 Multi-User Configuration
Ensure that the OPC Server is installed. For installation instructions see Installing the
OPC Server for AC 800M on page 27.
1. From the ABB Start Menu select ABB Compact Product Suite > OPC Server for
AC 800M > Setup Wizard OPC Server for AC 800M.
2. Select Project Folder on the File Locations tab and click Modify to open the
Project Folder dialog.
Figure A.10: The Modify Project Folder dialog for opening the shared project folder
Type the path in the Folder Path Product Setting field as in Figure A.10.
The path must be specified with an UNC path that contains the server name and the
shared folder name \\MyServer\AC800Mprojects.
3. Enter the path to the shared AC800Mprojects folder.
3BSE041584-610 A 110
A Functions and Settings
A.2 Multi-User Configuration
Figure A.12: The Service Account topic for OPC server showing the current login
name
3BSE041584-610 A 111
A Functions and Settings
A.2 Multi-User Configuration
Create a small project in one of the Compact Control Builder stations and verify that
the project can be opened from all the other Compact Control Builder stations.
2. Normally located at C:\Program Files (x86)\ABB Industrial IT\Control IT\OPC Server for AC 800M\Bin\
3BSE041584-610 A 112
A Functions and Settings
A.2 Multi-User Configuration
Operator
interface \\MyServer\AC800Mprojects
Compact Compact
OPC Server Control Builder Control Builder File Server
(MyServer)
3BSE041584-610 A 113
A Functions and Settings
A.3 Project Examples in Compact Control Builder
If a rename operation affects several files, Control Builder shows the alert message
and displays the corresponding files before proceeding with the rename operation.
• A tutorial (Tutorial_03).
3BSE041584-610 A 114
A Functions and Settings
A.3 Project Examples in Compact Control Builder
If these are used as a template or a skeleton for other projects, then the project needs
to be copied and the projects attribute changed from read only in Preparing the ShopDoors
Example for a Project on page 116.
4. Click Open. The ShopDoors example opens as read-only in the Project Explorer.
3BSE041584-610 A 115
A Functions and Settings
A.3 Project Examples in Compact Control Builder
3BSE041584-610 A 116
A Functions and Settings
A.4 Testing
2. Select the ShopDoors_FD folder and click Open. The project ShopDoors_FD folder
opens.
3. Select the ShopDoors_FD.prj file and click Open. The Project Explorer opens the
ShopDoors_FD project.
A.4 Testing
Test mode can be used for offline testing of applications. Executing code in Test mode
means that the code will be compiled and executed locally in the PC. You can use the
online editors to view variables and application execution. The execution time will be
much faster than executing code online, and you do not need a controller. However,
external communication is disabled during test mode.
Test mode is enabled from the Tools menu in Project Explorer (select Test Mode).
If the project includes several controllers, you will be asked to choose which controller
to start the test mode with. See also Download Project to Selected Controllers on page
124. When Test mode is selected, a version check is performed and the Test Mode
Analysis dialog displays the present applications and controller configurations. Different
restart options will be offered in the Analysis dialog, a more defined presentation can be
found in Application Restart Mode on page 130.
3BSE041584-610 A 117
A Functions and Settings
A.5 Simulation
A.5 Simulation
Simulation means that the code is downloaded and executed in a simulation controller.
Simulation can be done either in a SoftController, or in a simulation controller.
Simulation can be used to test your applications without connecting them to the physical
environment, and to make sure they work and behave as expected.
When an application is simulated, all I/O copying is cancelled. This means that you
need to write corresponding code for I/O responses. For more information see Running
in a Simulation Controller on page 120.
You are advised to read the subsection Restrictions Concerning Hardware Simulation
on page 121, before you start simulating the hardware.
Select Tools > Setup > Station > Application Download to open the
Setup - Application Download dialog (see Figure A.16).
3BSE041584-610 A 118
A Functions and Settings
A.5 Simulation
Simulation controllers are always marked with a “Simulated” flag ( ), to eliminate the
risk of downloading simulation code to a production controller.
3BSE041584-610 A 119
A Functions and Settings
A.5 Simulation
Figure A.17: Variable values can be forced to simulate I/O channel values.
The online editor can for example be used to inspect the result of changed variable
values for a simulated program.
3BSE041584-610 A 120
A Functions and Settings
A.6 Download
A.6 Download
This section describes download and the checks and reports associated with download.
3BSE041584-610 A 121
A Functions and Settings
A.6 Download
The Online Analysis dialog displays the present applications and controller configurations,
and whether or not they have been changed in the Control Builder. An application or
controller configuration is considered changed if the version in the Control Builder is
different from the version running in the controller.
Compilation
Compilation is performed in Control Builder. If any warnings or errors are detected during
the compilation, a Compilation Summary dialog shows a summary of the warnings and
errors. You can then choose (if there are no errors) to continue or cancel the compilation.
Compiler switches can be used to set extra restrictions for the code. For more
information, see Compiler Switches on page 128.
Change Analysis
Control Builder will perform a change analysis if you have changed:
• variables, function blocks, or control modules,
• data types, function block types or control module types,
• libraries,
• applications.
The change analysis is performed, before downloading, to check the possibility of
maintaining variable values after restart.
The change analysis detects mismatches between the application version in the controller
and the application version to be downloaded.
A mismatch can occur if:
• A variable has been assigned another data type,
• A variable, function block or control module has been renamed,
• A data type, function block type or control module type is missing, has been renamed,
or has been moved to another library,
• A library has been given a new name (this will result in a mismatch for all data types,
function blocks types and control module types from this library),
• An application has been renamed (this will result in a mismatch for all data types
and variables, function blocks and control modules in the application).
3BSE041584-610 A 122
A Functions and Settings
A.6 Download
For variables with attributes Retain or ColdRetain, the change analysis is performed in
the following way:
1. All data types, function block types, and control module types, which existed before
the change, are checked for name matching.
2. All variables, function blocks, and control modules are checked for name and type
matching.
If the change analysis detects mismatches, Control Builder cannot determine how to
retain variable values. A warning dialog will display information about detected
mismatches. You may then have to guide Control Builder and correct mismatching
names, by giving the renamed object the new name (click Rename in the dialog).
Another way to reset and restart the controller is to press controller’s INIT button for
more than 3 seconds.
3BSE041584-610 A 123
A Functions and Settings
A.6 Download
The controller will then be reset, all existing applications in the controller will be deleted,
and the controller will be restarted. The download of the new project can then be continued
(as described in General Download on page 121.)
3BSE041584-610 A 124
A Functions and Settings
A.6 Download
If you select Tools > Download Project and Go Online for a project with more than one
controller, the Selection of Controllers dialog will be displayed. For example, in Figure
A.19, “Controller_2” and “Controller_3” cannot be separately selected or excluded since
one application is connected to both these controllers.
Another way to select a specific controller is to right-click the controller in Project Explorer,
and select Download and Online Mode.
The Selective Download function is by default enabled, but can be disabled by selecting
Tools > Setup > Station > Application Download, and in the Setup dialog setting the
parameter SuppressOnlineSelectionDialog to true.
3BSE041584-610 A 125
A Functions and Settings
A.6 Download
Fi 63 C d li i ll O l A li i 2 ill b
Figure A.20: Connected applications to a controller. Only Application 2 will be
downloaded.
3BSE041584-610 A 126
A Functions and Settings
A.6 Download
Based on the information presented in the reports you can either accept or reject the
changes that is if you want the download to be carried out or cancelled.
The function is enabled/disabled from the root (Project icon) at the top of the Project
Explorer tree structure.
Right-click the Project Icon (e.g. MyDoors in Figure 4.2) and select Settings > Project
Settings from the context menu. The click on the Difference Report Settings item in the
tree view in the left part of the Project Settings dialog.
Figure A.21: The Difference Report Settings part or the Project Settings dialog.
To enable the difference report, select the Enable Difference Report check box and
click OK.
The Difference Report function is always enabled when downloading any application
to a High Integrity controller.
3BSE041584-610 A 127
A Functions and Settings
A.6 Download
3BSE041584-610 A 128
A Functions and Settings
A.6 Download
It is possible to exclude a library from a certain restriction, provided that the restriction
is a warning. If a library is excluded, no checks are performed on the restriction for any
type in that library. For example, if a new external library results in many warnings, you
may want to filter out acceptable warnings to make it easier to read other warnings. Click
Options in Compiler Switches dialog, and in the expanded dialog select the library to
exclude from the selected restriction.
3BSE041584-610 A 129
A Functions and Settings
A.7 Application Restart Mode
For more information about variables, attributes and values, see the manual Compact
Control Builder AC 800M Configuration (3BSE040935*).
3BSE041584-610 A 130
A Functions and Settings
A.7 Application Restart Mode
A short (less than 3 seconds) push on the controller’s INIT button also results in a
cold restart.
At cold restart, only variables with the attribute cold retain are retained. All other variables
are set to their initial value, if such values have been given. Otherwise the values of the
variables are set to the default values of the data types.
When you need to setup the saving of cold retain values, consult OPC Server online
help and the manual AC 800M OPC Server (3BSE035983*).
3BSE041584-610 A 131
A Functions and Settings
A.7 Application Restart Mode
Initial Restart
Table A.1 shows how a initial restart affects variable values when Download mode is
started.
Cold Restart
Table A.2 shows how a cold restart affects variable values when Download mode is
started.
Warm Restart
Table A.3 shows how a cold restart affects variable values when Download mode is
started.
3BSE041584-610 A 132
A Functions and Settings
A.7 Application Restart Mode
Cold Restart
The variable values are similar as in Download mode, see Table A.2.
Warm Restart
The Warm restart mode can only be selected if the Control Builder previously was in
Test mode. The variable values are similar to Warm restart variable values in Download
mode if the control builder was not in the Test mode previously, see Table A.3.
Warm Restart of the application is performed after the power failure. The restart values
of the variables are as shown in Table A.4.
Compilation is performed in Control Builder. You can choose (if there are no errors) to
continue or cancel the compilation. If compilation warnings or errors are detected, the
Compilation Summary dialog will display a summary of the warnings or errors.
3BSE041584-610 A 133
A Functions and Settings
A.7 Application Restart Mode
If you remove the power source (battery) during a power fail, all error logs
will be lost.
In these cases, only variables with the attribute cold retain can be retained. All other
variables are set to their initial values, if such values has been given. Otherwise the
values of the variables are set to the default values of the data types.
3BSE041584-610 A 134
B Network Redundancy
B.1 Setting Up Redundant Network
The information given in this Appendix applies only to users who intend to setup
Redundant Networks.
For more information about Redundant Networks and clock synchronization, refer to the
online help and the AC 800M Communication Protocols (3BSE035982*) manual (in
particular, the MMS section in the manual).
3BSE041584-610 A 135
B Network Redundancy
B.1 Setting Up Redundant Network
Client/Server Network
Primary (P)
Secondary (S)
PC_2 with, for example an OPC Server and
four Ethernet boards
P=172.16.4.2 P=172.16.0.3
S=172.17.4.2 S=172.17.0.3
Control Network
Primary (P)
Secondary (S)
P=172.16.0.1 P=172.16.0.2
S=172.17.0.1 S=172.17.0.2
3BSE041584-610 A 136
B Network Redundancy
B.1 Setting Up Redundant Network
Base Parameters
Tab
Parameter
3BSE041584-610 A 137
B Network Redundancy
B.1 Setting Up Redundant Network
3. Select the Enable TCP/IP forwarding parameter and click the Modify button. A
value dialog opens.
4. Change the parameter value to 1 instead of the default value 0 and click OK.
5. Click Close to close the RNRP Wizard.
Subnet mask
Use the following subnet mask for all IP addresses: 255.255.252.0.
3BSE041584-610 A 138
B Network Redundancy
B.1 Setting Up Redundant Network
IP addresses (X.Y.Z.Q)
• Use the recommended IP addresses in the X.Y. positions of X.Y.Z.Q for both
redundant networks; 172.16.Z.Q for the primary network, and 172.17.Z.Q for the
secondary network.
• Due to the subnet mask value, select the Z. position of X.Y.Z.Q as a multiple of four.
Choose two values between; 172.16.0.Q, 172.16.4.Q, 172.16.8.Q, 172.16.12.Q etc.
up to 172.16.124.Q. Note that the Z. value must also be different for Control Network
and Client/Server Network.
• Select the Q position of X.Y.Z.Q as a free serial number in the range 1 - 254, for
each node on each separate network. Thus one serial Q number for the primary
and the secondary network ports of each PLC and PC.
Table B.1: Selected settings of the IP addresses with the 255.255.252.0 subnet
mask.
3BSE041584-610 A 139
B Network Redundancy
B.1 Setting Up Redundant Network
5. The path in the parenthesis depends on the Control Panel view by Category.
3BSE041584-610 A 140
B Network Redundancy
B.1 Setting Up Redundant Network
6. Select Use the following IP address and enter the IP address (172.16.4.1 for the
primary network in PC_1, see Table B.1), and the subnet mask 255.255.252.0. Click
OK.
7. Repeat steps 1 to 7 for the secondary network (using the IP address 172.16.4.2).
8. Click OK.
9. For PC_2, repeat steps 1 to 9 for all four Ethernet boards to be configured.
10. Click OK. The PC IP addresses and subnet masks have now been set for all Ethernet
ports connected to the two networks.
When using AC 800M controllers, CNCP is the recommended protocol for time
synchronization to all nodes on the Control Network that support CNCP.
3BSE041584-610 A 141
B Network Redundancy
B.1 Setting Up Redundant Network
3. Set the following (four) parameters according to Figure B.5. The setting
CS Time Set Enabled can be set to True if local time source is used.
3BSE041584-610 A 142
B Network Redundancy
B.2 Design
B.2 Design
B.2.1 IP Address
A communication channel IP address is a 32-bit word (4×8 bits) that can be entered as
a string X.Y.Z.Q of four decimal numbers 0-255, separated by periods. The IP standard
uses the terms NetID and HostID. The subnet mask specifies the boundary between the
NetID part and the HostID part of the IP address (the zero bits indicate the HostID part).
Depending on the value of X, IP addresses are divided mainly into three classes, A–C:
IP address
XXXXXXXX.YYYYYYYY.ZZZZZZZZ.QQQQQQQQ
in bit format
Figure B.7:
3BSE041584-610 A 143
B Network Redundancy
B.2 Design
The Redundant Network Routing Protocol (RNRP) developed by ABB handles alternative
paths between nodes and automatically adapts to topology changes. RNRP uses more
terms than the standard IP, namely network area and node number. By selecting
225.255.252.0 as the subnet mask, the last 10 bits constitute the node number (i.e. host
ID, 0-1023). Note that the largest permitted node number is 500. The remaining NetID
part is used for network ID (16 bits), local flag (1 bit), and network area number (5 bits).
The last two bits of the network ID make up the path number, where 0 indicates the
primary network and 1 the redundant secondary network.
Consequently, RNRP requires a different interpretation of the IP address to the IP
standard.
It is recommended that the RNRP interpretation of the IP address be used. If the decimal
numbers are converted to binary numbers, the address can be interpreted as follows:
XXXXXXXX.XXXXXXPP.LAAAAANN.NNNNNNNN
Each position represents a binary digit (0 or 1). The different parts of the address signify
the following:
Number of
Binary number IP term RNRP term
bits
XXXXXXXX.XXXXXXPP 16 Network ID Network ID
LAAAAA Subnetwork ID
PP 2 Path number
L 1 Local flag
AAAAA 5 Network area
number
NNNNNNNNNN 10 Host ID Node number
The subnet mask sets the boundary between the host ID part and the subnet ID part
and is selected as 11111111.11111111.11111100.00000000 (=255.255.252.0 in decimal
notation).
The network ID must be identical for all nodes on the same network. It is recommended
that an address be selected from the private IP address space, which has the following
advantages:
3BSE041584-610 A 144
B Network Redundancy
B.2 Design
Example 1:
Convert the subnet ID 11111111.11111111.11111100.00000000 to decimal.
By writing the first part in groups of four binary digits (1111), the hexadecimal equivalent
is FF. The decimal equivalent is 255. The second part is identical, that is, 255. The third
part 1111 1100 equals FC (hexadecimal) and 252 (decimal). The fourth part equals 0 in
both decimal and hexadecimal notation. Consequently the subnet ID is written
255.255.252.0 in decimal notation.
Example 2:
IP address 192.168.255.25 written in binary notation:
It can be written C0.A8.FF.19 in hexadecimal form, which means
11000000.10101000.11111111.00011001 in binary notation.
3BSE041584-610 A 145
B Network Redundancy
B.2 Design
Internet
Service
Provider
Internet
Client nodes
Client nodes Fire wall
Client/server networks
Client/Server
Control Network
It is, however, possible to have client nodes such as operator stations and engineering
stations connected directly to the Control Network. If such a client needs access to the
client/server network, a separate network connection is possible.
Traffic other than that between Compact Control Builder products may jeopardize
performance.
Only IP traffic generated by IndustrialIT products is allowed to reach the PLCs on the
Control Network.
3BSE041584-610 A 146
B Network Redundancy
B.2 Design
3BSE041584-610 A 147
3BSE041584-610 A 148
C Upgrade
Appendix C Upgrade
This appendix covers only the upgrade from 5.0.2, 5.1.0, 5.1.1, and 6.0.0 to
Compact Control Builder 6.1.0.
Figure C.1 shows the possible options for upgrade to Compact Control Builder version
6.1.0.
3BSE041584-610 A 149
C Upgrade
Compact Compact
Control Builder Control Builder
5.1.x-y 5.0.2-x
Compact
Control Builder
6.0.x-y
3BSE041584-610 A 150
C Upgrade
C.1 Save Application and Configuration Data
8. Copy the following OPC Server files from the OPC Server to a safe media:
• systemsetup.sys, located in:
...\ABB Industrial IT Data\Control IT Data\
OPC Server for AC 800M
3BSE041584-610 A 151
C Upgrade
C.2 Save Gain Schedule Settings in PidAdvancedCC
3BSE041584-610 A 152
C Upgrade
C.2 Save Gain Schedule Settings in PidAdvancedCC
The following Gain Scheduling values (inside the red boxes) are affected and will be
lost. See Figure C.4 and Figure C.5.
3BSE041584-610 A 153
C Upgrade
C.2 Save Gain Schedule Settings in PidAdvancedCC
3BSE041584-610 A 154
C Upgrade
C.2 Save Gain Schedule Settings in PidAdvancedCC
Before an upgrade make a hardcopy of all Gain Schedule settings, i.e. main interaction
window and Edit window(s) of the PidAdvancedCC Control module instances. Note that
for every set of variables a hardcopy shall be made of each “Edit” window(s). After project
upgrade the Gain Scheduling variables shall be manually entered either from Control
Builder or from a Workplace in order to retain the Gain Schedule settings.
3BSE041584-610 A 155
C Upgrade
C.3 Remove Products
It also applies for any other service that automatically starts any of above services.
The RNRP Service should be stopped in the Windows Services Overview, which is found
at Control Panel > System and Security > Administrative Tools > Services.
When the PC is upgraded to a new Windows version, the existing Control Builder
projects (made in the previous version) may be deleted from the local disc.
In case of re-install of Control Builder on the same Windows version, no existing
projects will be deleted from disc when the Control Builder version is removed. In this
case, the new Control Builder will be able to open the projects left on disc.
3BSE041584-610 A 156
C Upgrade
C.5 Restore Application and Configuration Data
2. Restore the configuration files (*.cfg) to the Files folder in the same location.
3BSE041584-610 A 157
C Upgrade
C.5 Restore Application and Configuration Data
3BSE041584-610 A 158
C Upgrade
C.5 Restore Application and Configuration Data
3BSE041584-610 A 159
C Upgrade
C.5 Restore Application and Configuration Data
3BSE041584-610 A 160
C Upgrade
C.5 Restore Application and Configuration Data
3BSE041584-610 A 161
C Upgrade
C.5 Restore Application and Configuration Data
3BSE041584-610 A 162
C Upgrade
C.5 Restore Application and Configuration Data
3BSE041584-610 A 163
C Upgrade
C.5 Restore Application and Configuration Data
3BSE041584-610 A 164
C Upgrade
C.5 Restore Application and Configuration Data
3BSE041584-610 A 165
C Upgrade
C.5 Restore Application and Configuration Data
3BSE041584-610 A 166
C Upgrade
C.5 Restore Application and Configuration Data
3BSE041584-610 A 167
C Upgrade
C.5 Restore Application and Configuration Data
3BSE041584-610 A 168
C Upgrade
C.5 Restore Application and Configuration Data
3BSE041584-610 A 169
C Upgrade
C.5 Restore Application and Configuration Data
3BSE041584-610 A 170
C Upgrade
C.5 Restore Application and Configuration Data
3BSE041584-610 A 171
C Upgrade
C.5 Restore Application and Configuration Data
3BSE041584-610 A 172
C Upgrade
C.5 Restore Application and Configuration Data
3BSE041584-610 A 173
C Upgrade
C.5 Restore Application and Configuration Data
3BSE041584-610 A 174
C Upgrade
C.5 Restore Application and Configuration Data
3BSE041584-610 A 175
3BSE041584-610 A 176
D Communication Cables
D.1 Connecting Control Builder PC to a Controller
Serial communication between Control Builder and the AC 800M controller is done by
using the TK212A cable.
Connect the DB9 Female connector to a Control Builder PC COM port, thus the RJ45
(8P8C) plug to the AC 800M controller COM4 port. The Figure D.1 illustrates the TK212A
pin-out configuration.
Braid
Shield Shield
3BSE041584-610 A 177
3BSE041584-610 A 178
Revision History
Revision History
Revision History
This section provides information on the revision history of this User Manual.
Revision History
The following table lists the revision history of this User Manual.
Revision
Description Date
Index
A Published for Compact Control Builder AC 800M 6.1.0-0 November 2019
3BSE041584-610 A 179
3BSE041584-610 A 180
Index
Index
A Configure
ABB Common 3rd Party Install, 23 hardware, 77
addresses IP address for controller, 94
convert, 144 Context-sensitive help, 21
Analysis Controller
changes, 122 configure IP address, 94
online, 121 Control Network, 145
version, 121 convert
Application, 29 addresses, 144
folder, 36 Copying files to safe media
restart mode, 130 OPC server for AC 800M
SV 4.1 or SV 5.0.2 to SV 6.0., 151
C Create logic
CCB 4.1 or CCB 5.0.2 to CCB 6.0.0 counters, 57
Copying files to safe media timers, 57
OPC server for AC 800M, 151
Change analysis, 122 D
class A Diagram, 49
IP address, 143 Diagram editor, 51
class B add new object, 58
IP address, 143 add new variable, 54, 61
class C changing online value, 74
IP address, 143 graphical connection between objects, 63
client graphical connection between pages, 68
node, 146 in test mode, 73
client/server networks, 145 page connectors, 70
Cold restart, 131 page name, 52
variable values, 132 panes, 42
Communication cables port visibility, 60
cross-over ethernet cable, 93 Download
serial connection to controller, 177 change analysis, 122
straight-through ethernet cable, 93 go online, 123
Communication variable, 50 new project, 123
declaration, 56 simulated applications, 126
Compilation, 122 to selected controller(s), 124
configuration via Ethernet, 93
MMS, 147 Drag-and-drop, 39
3BSE041584-610 A 181
Index
E select, 102
Enable Ethernet channel, 140 Libraries, 16
Ethernet Alarm and event library, 16
cables, 93 Basic library, 16
configure IP address for controller, 94 Binary process libraries, 16
ports on controller, 93 Communication libraries, 16
Control Libraries, 16
F Signal libraries, 16
File Location Standard libraries, 16
select, 101 License Key, 27, 103
File server, 104 local flag, 144
Firmware upgrade
via Ethernet, 85 M
Firmware Upgrade Manuals, 19
via serial cable, 86 Message pane
Folder diagram editor, 42, 51
application, 36 Project Explorer, 41
applications, 36 MMS
controllers, 39 configuration, 147
libraries, 33 ModuleBus, 79
Forcing I/O values, 99 multi-user configuration, 19
MyDoors project, 45
H create logic (first page), 57
Hardware create logic (second page), 65
configuration, 77 create logic (third page), 67
Hardware Libraries, 16 declare variable and signals, 51
HostID, 143 MyDorrs project
host ID creating the project, 48
IP address, 144 testing, 72
I N
implicit IP addressing, 135 NetID, 143
INIT button, 131 network area, 144
IP address, 88, 91 network ID, 144
class A, 143 node
class B, 143 client, 146
class C, 143 server, 146
host ID, 144 node number, 144
IPConfig, 88 RNRP, 144
L O
Language Online analysis, 96, 98
3BSE041584-610 A 182
Index
3BSE041584-610 A 183
3BSE041584-610 A 184
www.abb.com/compactproductsuite 800xA is a registered or pending trademark We reserve all rights to this document and
of ABB. All rights to other trademarks reside the items and images it contains. The
www.abb.com/controlsystems with their respective owners. reproduction, disclosure to third parties or
the use of the content of this document –
We reserve the right to make technical including parts thereof – are prohibited
changes to the products or modify the without ABB’s prior written permission.
3BSE041584-610 A