Beruflich Dokumente
Kultur Dokumente
User´s Guide
Control Builder M Beginner’s Handbook
Starting up and Installation
Version 2
User’s Guide
Copyright © 1999 ABB Automation Products AB.
The contents of this document can be changed by ABB Automation Products AB without prior
notice and do not constitute any binding undertakings from ABB Automation Products AB.
ABB Automation Products AB is not responsible under any circumstances for direct, indirect,
unexpected damage or consequent damage that is caused by this document.
Printed in Sweden.
Trademarks
Registered trademarks from other companies are:
Microsoft™, Windows™, Windows 2000® from Microsoft® Corporation.
PostScript™ and Acrobat Reader™ from Adobe Systems Inc.
1 Introduction 11
Project Examples in the Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Safety . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
This is Control Builder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
This is SoftController . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
This is OPC Server for the AC 800M/C . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
This is MMS Server for AC 800M/C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
This is AC 800M/C Controller Integration . . . . . . . . . . . . . . . . . . . . . . . . . 17
1.1 System Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Control Builder PC Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Base Software for SoftController PC Requirements . . . . . . . . . . . . . . . . . 19
OPC Server for AC 800M/C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
1.2 Supported Controllers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
1.3 Alternative Controller Configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Control Builder and Controller Configuration . . . . . . . . . . . . . . . . . . . . . . 22
Control Builder and SoftController Configurations . . . . . . . . . . . . . . . . . . 22
Distributed Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
1.4 Programming Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Project Explorer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Programming Languages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
1.5 How to Read this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Typographical Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Icons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Online Help and Assistance for Control Builder . . . . . . . . . . . . . . . . . . . . 26
1.6 Related Documents and Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
2 Safety Instructions 29
Be Careful - Prevent Accidents and Protect Valuable Equipment . . . . . . . 29
Before Replacing I/O Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Maintenance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Operating Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Signal Noise Due to Cables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Hazardous Electrical Supplies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Chapter 1
Introduction
Information. The three products are upwards compatible, which means that
code can easily be transferred from one to the other. Most of the libraries are
common to all three products. Refer to "Comparison Between the Control
Builder Products", on page 171.
Information. Read the Release Notes on the ControlIT for AC 800M/C
CD-ROM, which specifies any products and functions not supported in the
current release.
Language Product
Project Name Aim/Description
FBD ST IL SFC LD Bas Std Pro
Language Product
Project Name Aim/Description
FBD ST IL SFC LD Bas Std Pro
Safety
Caution. The chapter "Safety Instructions", on page 29, is mandatory reading
for anyone planning to use the systems described.
Project Explorer
The Project Explorer facilitates navigation through the entire project. It is a
tool used to navigate through, create or modify a project. The controller
software and hardware are configured in the Project Explorer.
Libraries
Control Builder is delivered with a comprehensive set of predefined functions.
These include data types, functions, function blocks and Control Modules that
can be used in the project.
All libraries are delivered together with the Control Builder program. You can
use them freely in your projects and test them in Simulation mode. Examples
of the libraries available are described below.
• The System Library (SystemLib) contains all the basic data types and func-
tions, e.g. type conversions, math and time, and logic functions such as flip-
flop, timer and counter function blocks, as specified in IEC 61131-3.
• The Communication Library (CommunicationLib) includes function blocks
for protocols such as MMS, ModBus, Foundation Fieldbus, SattBus,
COMLI and Siemens 3964R.
• The Control Libraries (e.g. ControlBasicLib, ControlExtendedLib etc.) in-
clude single PID control and cascade PID control function blocks, control
modules, etc.
• The Alarm and Event Library (AlarmEventLib) contains function blocks for
alarm and event detection, and alarm printouts on a local printer.
Application
The three products, Control Builder Basic, Control Builder Standard and Con-
trol Builder Professional have very powerful functions. Below, the most im-
portant differences between the systems are described, but see also the
appendix, "Comparison Between the Control Builder Products", on page 171,
for more precise information.
Control Builder Basic:
A project created in Control Builder Basic can handle one application, which
is divided into a maximum of three programs. Program code, function blocks
and functions can be placed freely in any of these programs.
Each of the three programs is connected to a task. The interval time and the
priority can be set for each task.
Users can create their own data types and function blocks when needed. These
can be re-used within the application, increasing efficiency and application
quality.
This is SoftController
The SoftController which is available on the ControlIT for AC 800M/C CD-
ROM (requires a license), is real-time software technology that turns a PC into
a powerful process controller. The controller runs under Microsoft® Windows
2000® Professional operating system and is programmed using the Control
Builder. It supports the compact and modular I/O systems, S800 I/O, S200 I/
O, and S200L I/O centrally via a serial I/O bus (except S800 I/O) and remotely
via a PROFIBUS-DP fieldbus. Foundation Fieldbus I/O devices can also be
connected.
Communication is possible with other control systems via MMS, PPP,
COMLI, SattBus, 3964R, ModBus and user-defined protocols (via COM
ports), etc. Communication with the programming tool is achieved with MMS
via Ethernet or a serial port (PPP).
Further information about installation, setup, etc., is available in the appendix,
"SoftController Settings and Operation", on page 153.
OPC Client
MMS server
Ethernet
Fig. 1 The OPC server distributes data, alarms and events between the controllers and
the OPC client. The figure shows the case when the Control Builder and the OPC serv-
er are installed in the same PC.
Further information about installation, setup, etc., is available in the appendix,
"OPC Server for AC 800M/C Installation and Settings", on page 159.
Recommended
Hardware Minimum requirements requirements for medium
and large applications
Computer Pentium 166 MHz Pentium II 350 MHz or better
Operating system Windows 2000 Professional Windows 2000 Professional
Additional Software Word 2000. Required if project Word 2000. Required if project
documentation should be print- documentation should be print-
ed out. ed out.
Internet Explorer, at least ver- Internet Explorer, at least ver-
sion 5.5. Required to read the sion 5.5. Required to read the
online Help documentation. online Help documentation.
Acrobat Reader, at least version Acrobat Reader, at least version
4.0. Required to read the online 4.0. Required to read the online
documentation. documentation.
Internal memory 64 Mbyte RAM memory 128 Mbyte RAM memory
Hard disk Min. 50 Mbyte disk available Min. 50 Mbyte disk available
(200 Mbyte for a complete in- (200 Mbyte for a complete in-
stallation) stallation)
Screen 800 x 600, 32768 colors 1280 x 1024, 32768 colors
Drive CD-ROM, local or via network CD-ROM, local or via network
Communication Ethernet or RS232C serial Ethernet or RS232C serial
channel for controller commu- channel for controller commu-
nication nication
Pointing device Mouse or other device* Mouse with scroll wheel
Keyboard Standard PC keyboard Standard PC keyboard
*.A mouse with 3 buttons is recommended if Control Module Diagram (CMD) editing is to be used.
Hardware Requirements
Computer Pentium 166 MHz or better with the necessary environmental pro-
tection, depending on the installation environment
Operating system Windows 2000 Professional
Internal memory 96 Mbyte RAM memory
Hard disk Min. 15 Mbyte disk available (60 Mbyte for a complete installa-
tion)
Drive CD-ROM, local or via network
Communication Ethernet or RS232C serial channel for controller and program-
ming tool communication
Screen Color or monochrome
Power Supply Uninterruptable Power Supply (UPS)
Hardware Requirements
Computer Pentium 166 MHz or better
Operating system Windows 2000 Professional
Internal memory 64 Mbyte RAM memory
Hard disk Min. 25 Mbyte disk available
Drive CD-ROM, local or via network
Communication Ethernet for controller communication
Screen Color or monochrome
Keyboard Standard PC keyboard
Fig. 3 AC 800C.
Fig. 6 A PC running both the Control Builder and the SoftController connected to
I/Os. The PC can be equipped with various interface cards for I/O communication.
2. The Control Builder is installed on one PC and the SoftController is in-
stalled on another PC. Here, the remotely connected PC acts as a control-
ler CPU with externally connected I/Os.
Ethernet
Distributed Control
The Control Builders, Standard and Professional, can communicate with sev-
eral controllers via Ethernet. The controller types may be mixed, and a project
can be divided in several applications, which can be shared between several
programmers working on programming stations interconnected via Ethernet.
The OPC Server for the AC 800M/C enables the distribution of run-time data
between an OPC client and controllers via Ethernet.
PC running Control Builder PC running Control Builder
and OPC Server
To OPC Client
Ethernet
Fig. 8 Programmers can share the same project, and the program code can be
distributed to different controllers.
DO810 DI810
PM860/TP830
Fig. 9 Graphical visualization of the Project Explorer and the actual hardware setup.
Programming and code editing are carried out using grids, tabs and a text edi-
tor with basic MS Windows functions, such as drag-and-drop.
Programming Languages
Five different programming languages can be used; Function Block Diagram
(FBD), Structured Text (ST), Instruction List (IL), Ladder Diagram (LD) and
Sequential Function Chart (SFC), in accordance with IEC 61131-3. The spe-
cific rules and syntax of the programming languages will not be discussed in
detail in this manual. Please refer to the Control Builder Online Help.
Icons
Warning indicates the presence of a hazard which could result in personal in-
jury.
Caution indicates the presence of a hazard which could result in equipment or
property damage.
Information alerts the reader to pertinent facts and conditions.
Tip indicates advice on, for example, how to design your project or how to use
a certain function.
These icons are used to indicate which Control Builder product the section re-
fers to. “Bas” stands for Basic, “Std” for Standard and “Pro” for Professional.
Examples
References are made in this manual to programming examples, through which
you can learn the basics of the Control Builder.
To open an example, select the folder Example Files in the Open Project di-
alog, see figure below.
Fig. 11 The “Help” menu will guide you to the online help and manuals in PDF format.
There is a third Help facility. To obtain information concerning a specific ob-
ject, mark the object and then press the F1 key. For example, mark the external
I/O module DX210 in the Project Explorer and then press F1. Information con-
cerning DX210 appears.
Chapter 2
Safety Instructions
This chapter is mandatory reading for anyone planning to use the systems
described in this manual.
Maintenance
In order to avoid long shutdowns, it is advisable to keep spares of components
in stock.
Always make regular backup copies of the application program.
Operating Environment
Before the system is brought on-line, find out which environmental conditions
are applicable. The following points are important.
• The product must not be exposed to conditions exceeding the values stated
in the technical specifications.
• The product must not be used in an environment where it is exposed to
strong electrical interference. Electrical machines can produce interference
which exceeds the permitted levels for the equipment, e.g. during repair
work.
• All products must be handled with appropriate caution with regard to
electrostatic damage.
Important: Software
• Use the fault-monitoring facility of the system to prevent mishaps and
accidents.
• Check before executing any changes.
Important: Hardware
Do not disconnect the power supply to a system which is in operation.
Chapter 3
Installation and Start-up
Step-by-Step Instructions
Below, the installation of the products available on the CD-ROM on the PC is
described. The procedure is the same for all products, and “Control Builder”
is used to denote the product to be installed in the steps below.
1. Log in as Administrator in Windows 2000.
2. Insert the CD into the CD drive*. After a few seconds the Welcome dialog
box appears, see Fig. 12 on page 31. If the dialog box does not appear,
start the file Startme.bat, which is located in the root directory of the CD-
ROM.
3. Click on Install Software. A dialog box will be displayed which shows
the products that can be installed from the CD-ROM.
4. Select “Control Builder” and you will be guided through the installation
procedure. Please read the text in each dialog box as it contains important
information about the steps to be taken during installation. For normal
use the suggested default settings are recommended.
5. A status report will show that the installation has been successfully com-
pleted with the specified settings. It is recommended that you check the
checkbox for reading the Last Minute Notes and read these before open-
ing the installed program.
6. The installation is now complete. The Install Software dialog box may
now be closed, returning you to the Welcome dialog box where the instal-
lation is terminated by clicking on Exit. Read the Release Notes (deliv-
ered together with the manuals on the CD-ROM).
* If the CD-ROM is available via a network, this shared directory must be connected to your PC
(the Installation wizard requires this). Select Tools>Map network drive in the Windows 2000
Explorer and connect the PC to the shared drive.
Setting up
The Control Builder can be configured in a number of ways with respect to
language, memory usage, etc., see the appendix, "Control Builder Settings",
on page 145.
Starting up
Start the Control Builder using the Windows Start Menu (Start>Pro-
grams>ABB Industrial IT>Control IT>Control Builder Basic) or double-
click the Control Builder icon on the desktop (if selected during installation).
During start-up of the Control Builder, the MMS Server, which is needed for
communication between the Control Builder and the controller, will automat-
ically be started, see "This is MMS Server for AC 800M/C", on page 16.
Control Builder Professional has logging in and privilege functions, refer to
the Control Builder’s Online Help.
Fig. 16 The Control Builder Professional program is selected. Note the Change/Re-
move button which appears when you select a program.
3. Select a program to be added or removed in the list, and click on the
Change/Remove button. The dialog box below appears.
Fig. 17 Components can be added and programs can be reinstalled or removed using
this dialog box.
Chapter 4
Control Builder - A Quick Look
In this chapter we will take a quick look at the Control Builder engineering
tool. A ready-for-test tutorial (Tutorial_01) will be used to help you become
familiar with the Project Explorer and its contents. An application program for
a simple tank filling process, written in Function Block Diagram (FBD), Struc-
tured Text (ST), Instruction List (IL) and Ladder Diagram (LD) code, is pre-
sented, and the declaration of local, global and access variables is described.
Note that the example files are read-only files.
The second tutorial (Tutorial_02) is used to show how the project is simulated
and checked online.
Examples are given with exactly the same function, but using different pro-
gramming languages. The project using the FBD language is, for example,
called “Tutorial_02_FBD”, the project using the ST language is called
“Tutorial_02_ST”, etc. Refer to "Examples", on page 25, to find out how to
open an example.
The figures in this chapter (and the following chapters) have been taken from
Control Builder Basic, but the tutorial should work in any of the three
products. The appearance of the figures will be different in Control Builder
Standard and Proffessional due to their extended capabilities.
Tip. Control Builder Basic has the default program names Fast, Normal and
Slow (but can be renamed), and only one application can be programmed in a
project. Each of the three programs is connected to a task. The other two Con-
trol Builder products can have several applications, each with a task connected
to them. The programs are called Program 1, Program 2, and Program 3 in-
stead of Fast, Normal and Slow.
Tip. Projects created in Control Builder Standard or Control Builder Profes-
sional can be opened in Control Builder Basic only if they have been created
without the extra facilities available in the more extensive engineering tools,
see "Comparison Between the Control Builder Products", on page 171.
Title bar
Project name
Menu bar
Tool bar
Message pane
tions can be used, and a third folder, named Applications is thus seen at the top
level.
Libraries
Initially, only the folders for the libraries and the controller are shown. Click
on the “+” sign beside the Libraries folder to expand the folder (clicking on
the “-” sign will collapse the folder).
The libraries contain predefined functions and function blocks that can be used
in your programs. Figure 19 shows the SystemLib and Function Block
Types, expanded.
Fig. 19 The Project Explorer with part of the Libraries folder expanded.
Controller
Collapse the libraries by clicking on the minus sign to the left of the Libraries
folder in the Project Explorer window. Expand the folder Controller a number
of levels. This gives a clear picture of the entire controller.
Access Variables
The access variables are used for communication with other systems. For fur-
ther information, see the Online Help.
Hardware
Expand the folder Hardware to its maximum “depth”. The Project Explorer’s
display of the hardware setup is almost identical to the “real” hardware setup,
i.e. as the units are mounted and connected to the I/Os, see Fig. 20.
Fig. 21 The Hardware Configuration Editor with an I/O module AI810 selected.
Collapse the folder Hardware.
Tip. Mark an I/O module (e.g. AI810) and press the F1 key to obtain informa-
tion on the unit.
Tasks
Expand the folder Tasks. The three tasks are connected to their respective pro-
grams (one task per program). The tasks serve as “work schedulers” for the
programs and contain settings for interval time and priority.
Control Builder Standard and Control Builder Professional have a maximum
of 16 tasks per controller.
Double-click on the Tasks icon, this will bring up the Task Overview Editor.
The editor displays the settings for all tasks, i.e. priority, interval time, etc.,
(see Fig. 22).
Fig. 22 The Task Overview Editor displays the settings for the three programs.
Close the editor.
Application
The application contains the program code to be compiled and downloaded for
execution in the controller.
An application contains three programs; Fast, Normal and Slow. Each pro-
gram is connected to one task. This means that you can divide the control soft-
ware into different parts, depending on the required interval times and
priorities.
Control Builder Standard and Control Builder Professional can use several ap-
plications, each with several programs, and the program names are Program 1,
Program 2, Program 3, etc.
You can create and define your own data types and function blocks in the ap-
plication. User-defined data types and function blocks can be created and used
in the programs.
A simple tank-filling process is programmed in Tutorial_01, see the process
flow chart below.
Valve 23
HH
H HH LL
Tank 23
Level
L Temp.
LL
TIC
23
Variables pane
Code pane
Select the tab ST_Code to show the same functions written in Structured Text
code. Note that there are four sets of variables. Use the scroll bar in the vari-
able declaration pane to view all the variables. The tank and its objects are
called Tank23 in FBD code and Tank21 in ST code.
Select the tab LD_Code to show the same functions written in Ladder code.
Note that there are four sets of variables. Use the scroll bar in the variable dec-
laration pane to view all the variables. The tank and its objects are called
Tank 24 in LD code.
Fig. 28 Variables and External variables tabs in the Function Block Type editor.
• To declare a global variable in an application, double-click on Application
in the Project Explorer.
• To declare a connection to a global variable in a function block, double-
click on the function block icon in the Project Explorer to open its editor.
Then select the tab External Variables (see Fig. 28) in the editor.
• To declare an access variable, double-click the icon Access Variables in
the Project Explorer.
3. If the Variables tab is not activated, click on it. Then place the cursor in
the upper left cell and type My_Variable.
4. Move to the cell to the right by pressing the tab key and type bool
(Boolean) here. Note how you only need to type “b”, and the editor will
guess the rest. Write out the word “bool” or accept the editor’s suggestion
by pressing the tab key.
5. The next column is labelled “Attributes”. Each variable can have an at-
tribute such as retain, coldretain, constant, etc. The attribute
governs the value of the variable upon program execution, rebooting, etc.
You can scroll through the possible settings by pressing the Alt key and
using the up and down arrow keys. Choose retain. See also the Control
Builder Online Help for more information.
6. In the next column, the initial value of the variable is defined. Set this to
true.
7. Skip the following two columns and go to the column labelled Descrip-
tion. In this column you can write a short description of the variable.
Write something like “A short test”. Your grid should now look like the
one in Fig. 29.
4.4 Simulation
The second project, Tutorial_02_FBD, is used to demonstrate how to
check a project in simulation mode. There are four different projects, one for
each of the programming languages, FBD, ST, IL and LD. Use any of these
projects. In simulation mode you can change variable values and see the pro-
gram response online. The program is to be connected to a controller
AC 800M, but you do not need the controller to simulate the program. The ex-
ample consists of a simple counter, which counts when a start variable is true.
The counter sets another variable to true when a preset limit is reached.
Another variable resets the counter.
1. Open the project Tutorial_02_FBD.prj (or any of the other three
projects).
2. Expand the tree in the Project Explorer and double-click on the program
Normal. The code editor opens and displays the code (see Fig. 30).
The Stop_Limit
value may be
changed online at
either of these loca-
tions
Fig. 32 The progression of the variable values is displayed “online” (ST). A highlighted
variable in the online code pane indicates that the variable is true (1).
The Stop_Limit
value may be
changed online
at either of these
locations
The Stop_Limit
value may be
changed online at ei-
ther of these loca-
tions
Tip. You can print out the project documentation before closing the Control
Builder. The procedure for this is described in the section "Project Documen-
tation", on page 83.
Chapter 5
Creating a Project – Shop Doors
5.1 Introduction
This chapter describes the steps necessary to set up a project called MyDoors,
to write some simple code, and to go into simulation mode to show on screen
how the variables change during program execution. Finally, we will down-
load the program to the AC 800M controller.
Two alternatives are presented for programming the project; one in FBD and
one in ST. Follow the appropriate section for your project.
Tip. After this session, you can check your project MyDoors against the ap-
plication found in the directory Examples>ShopDoors_FBD (the project
using the FBD editor) or Examples>ShopDoors_ST (the project using the
ST editor).
We are going to simulate the entrance to a store. The entrance has the follow-
ing specifications.
• It consists of two sliding doors.
• The doors are opened when a photocell is activated by a customer.
• Each door has its own motor, to open and close the door.
• The doors return to default position (closed) 5 seconds after the photocell
was last activated. Hence, several customers can arrive one after the other
thereby extending the time the door is open.
• The number of customers is recorded for statistics. Manual resetting of this
counter should be possible.
• The total number of times the doors have been opened since they were last
serviced should be recorded. Each opening of the doors should result in an
increment of a counter. When the counter reaches a preset limit, a flag
should be set indicating that service is required. Manual resetting of the flag
should be possible.
5.3 Declaration
Variable and Data Type Preparation
Before starting to write the code you should have a clear picture of the objects
in the “model”. Although it is possible to start writing the code and define the
variables later, it is best to define them from the beginning.
• Photocell
The photocell has two states, active and inactive, typically represented by a
Boolean variable. We use a Boolean variable called Photo_Cell (1 =
active, 0 = inactive).
• Motors for the doors
The entrance itself consists of two doors facing each other. They are opened
by two motors which are controlled by Boolean signals (Motor_1 and
Motor_2). The time during which the doors should be open is declared in
a variable DoorsOpen_Time.
• Number of customers
Every time the photocell is activated, a counter representing the total num-
ber of customers entering the shop should be incremented. This counter,
Customers_Qty, is of type integer.
At certain dates, the shop manager records the total number of customers up
to this date and resets the counter. Hence, we declare a Boolean variable
Reset_Counter which resets the counter.
• Service of the doors
As the doors are to be serviced at regular intervals, let us say after being
opened 10,000 times, we want to keep a record of the number of times they
have been opened since they were serviced. The number of times the doors
are opened is stored as the variable Openings_Freq.
When the counter reaches the upper limit defined by Openings_Total
a flag (Service_Req) is set indicating that service is required. Manual re-
setting of the service counter is activated using a Boolean variable
Serviced. The doors should not stop working if service is not performed.
3. Place the cursor in the upper left cell in the declaration pane and type
Photo_Cell.
4. Move one cell to the right by pressing the tab key. The status of the pho-
tocell (activated or not) is a Boolean variable, hence, type bool in the
column “Data type”. Note that you need only type “b”; the editor will fill
in the rest. Accept the editor’s suggestion by pressing the tab key. The
cursor will move to the column labelled “Attributes”.
5. When the name Photo_Cell was typed the editor added retain by
default. There are many other choices. Scroll between the possible
choices by holding the Alt key down and scrolling with the up and down
arrow keys. Choose the default setting retain. Press the tab key to
move to the next column.
6. The initial value is the value that the variable will have at start-up – the
initiation – of program execution. (Actually, it depends on the settings of
the attribute, but we will not go into this here.) Since the variable de-
scribes the status of the photocell we set it to false (0) to indicate that the
doors are closed at start-up.
7. Skip the column I/O address. The address will be automatically filled in
when configuring the hardware, see "Connecting I/O Interfaces to the
Application", on page 80.
8. The last column is reserved for comments. Here you can enter text de-
scribing the variable. Your first row should now look like row 1 in Fig. 36.
The different blocks, represented by tabs (the figure above shows three tabs –
Motors_Doors, Number_Of_Customers and
Service_On_Doors), can be written in any of the available programming
languages. The Function Block Diagram (FBD) editor will be used in this sec-
tion to program the project.
1. Change the name of the code block to Motors_Doors by pointing to
the tab Code and right-clicking. Then choose Rename…. In the dialog
box, enter the new name Motors_Doors. This code block describes
the motors for the doors.
2. Add another code block for the number of customers by pointing to the
tab Motors_Doors and right-clicking. Then choose Insert…. In the fol-
lowing dialog box, specify the name Number_Of_Customers and
ensure that FBD is selected as the programming language. This code
block effectuates the counting of the number of customers.
3. Add a third code block called Service_On_Doors.
Information. The declaration pane remains the same and serves as a common
declaration area for all code blocks.
Code Input
1. Activate the code block Motors_Doors.
2. Choose Insert>Insert Function/Function Block (or press Ctrl + K),
then expand ‘SystemLib’ and find the function block TOf by scrolling
down or typing ‘TOf’.
3. Change the instance name to ‘OpenDoors’ and click OK. This will auto-
matically declare the function block in the declaration pane and generate
the function block OpenDoors in the editor, see Fig. 40 below and Fig. 41
on page 66.
Fig. 41 The code block in the tab Motors_Doors. The function block is automatically de-
clared in the variables pane.
Information. To connect two variables to an output parameter, use a comma ‘,’
in the dialog box. For example, Motor_1, Motor_2.
6. Choose Editor>Apply (or press Ctrl+W) in order to check and save the
code.
7. Change tab to Number_Of_Customers and add the code, see figure
below.
Structure view
Fig. 44 The Structure view to the left of the FBD editor facilitates the project work.
Tank 23_LL
Code Input
1. Activate the code block Motors_Doors and place the cursor on the
first line in the code block.
2. Choose Insert>Variable Type, Attribute... (or press Ctrl + J). The
variables and function blocks declared in the tab Function Blocks in the
declaration pane are shown.
3. Choose the function block OpenDoors either by starting to type Open…
or by using the mouse to select a function block from the list. Accept the
selection by pressing Return. Then, when you type the leading left pa-
renthesis ‘(‘, the parameter editor will be activated, see Fig. 49.
6. Choose Editor>Apply and Close (or press Ctrl + U) to insert the param-
eters into the code.
7. The output from the function block (Q) can be passed on by specifying an
output parameter in the parameter assistant (e.g. Start_Motor on the
“Q” line, i.e. line 3) but we will use a different way of accessing variables
from function blocks, using dot notation, see "Predefined I/O Data
Types", on page 112.
The output Q is a Boolean signal which should be passed on to the motors
to open the doors. Since both doors should be opened, the signal must be
passed to both motors. To do this, write:
Motor_1 := OpenDoors.Q;
Motor_2 := OpenDoors.Q;
Here we address the output Q of the function block directly, and assign
its value to the two motors, to open both doors.
Fig. 54 Press Ctrl+J to fetch a variable from the variables list box.
2. Double-click on a variable in the list box to insert the variable into the
code pane.
Statement Selector
1. Tip. While we are in the code pane, let us look at another programming
help function. Go to a blank line and choose Insert>Statement… (or
press Ctrl + I). A list box will present the instructions that can be inserted.
2. Type an “i” and the cursor will jump to the first if statement. You have
three possible choices, select the third using the up and down arrow keys
or the mouse. The if statement will be inserted with the appropriate for-
mat (see Fig. 55). Now, you have only to fill in the blanks.
5.6 Simulation
In Simulation mode you can simulate your project without a controller being
connected. The values of the variables can be changed and you can immedi-
ately see the program response.
Note that all variables are reset to their initial values when simulation is
started.
1. Choose Tools>Simulate Project.
2. Double-click on the program Normal. The online editor is displayed.
3. All variables in the program Normal are listed in the upper pane and the
code in the lower pane, see Fig. 56.
DI810
PM860/TP830
Method 2
1. Delete the text in the first cell and then choose Insert>Insert Path From
Tree. A path selector will be shown, see figure below. This selector re-
sembles the Project Explorer. Expand Normal and double-click on
Motor_2. The full path will be copied in, see Fig. 60.
Fig. 62 The column labelled I/O address shows how the variables are connected to
the I/Os.
Changes made to the I/O connections in either editor (the programming editor
or the I/O unit editor) will be reflected in both editors. Hence, you may use
whichever of the editors you are most comfortable with.
Your project has now been simulated and the hardware configuration is com-
plete. It is now time to download the project to the controller (of the type which
was selected at the beginning of this project). The next chapter describes the
downloading of a project to various controllers.
Fig. 63 The dialog box for selecting the document name and document template.
Select Application in the Project Explorer, and then your application, for
instance, ShopDoors_FBD. Select File>Documentation... to open the
Documentation dialog box, see Fig. 63.
2. Enter (or browse to) an available Word document file name (on the first
row of the dialog box above) to overwrite the selected document file, or
enter (or browse to) a Word template name on the second row to use one
of the available Word templates for your application print out. Check the
checkbox in the “Documentation project constants” (not required) and
then click OK. Microsoft Word will be activated to display the applica-
tion (project constants, data types, programs, etc.) including contents. To
print, select File>Print... in Microsoft Word.
3. Repeat steps 1 and 2, but select Controller (instead of Application). Your
controller configuration will be printed out.
Chapter 6
Downloading and Testing the
Application
6.1 Introduction
This chapter describes the project download procedures for the controllers
AC 800M, AC 800C, SoftController, and Advant Controller 250. It also de-
scribes the firmware upgrade and controller IP address setting procedures.
You must select the way in which to download via Ethernet or via the RS-232
serial port. A configuring tool, IPConfig, which is available after installation
of the Control Builder, is used to simply configure your controller IP address.
2. Select the appropriate COM port for the PC (default COM 1).
Caution. Any program, that may block the selected COM port, must not
be running during the upgrade procedure. If the MMS Server is config-
ured to use the COM port, it must be stopped.
3. Power up the controller.
4. Select from the Windows Start menu (Start>Programs>ABB Industrial
IT>Control IT>Control Builder>Serial Firmware Upgrade). The fol-
lowing dialog box appears.
* For AC 800C and Advant Controller 250: Set the mode switch to position 0 before
resetting and then set it back to 1 after the reset.
Fig. 65 The Status dialog box appears if the connection to the controller is OK.
7. Select the same Firmware and Control Builder versions, then click on
Upgrade and wait 5 - 10 minutes. The behavior of the LEDs during the
upgrade procedure is described in the Serial Firmware Upgrade Online
Help.
8. Hold down the Init/Reset button on the controller (for at least 3 sec-
onds)*.
* For AC 800C and Advant Controller 250: Set the mode switch in position 0 before
the reset and then set it back to 1 after the reset.
2. Select the appropriate COM port for the PC (default COM 1).
Caution. Any program, that may block the selected COM port, must not
be running during the upgrade procedure. If the MMS Server is config-
ured to use the COM port, it must be stopped.
3. Power up the controller.
4. Start from the Windows Start menu (Start>Programs>ABB Industrial
IT>Control IT>Control Builder>IPConfig). The following dialog box
appears.
* For AC 800C and Advant Controller 250: Set the mode switch to position 0 before
resetting and then set it back to 1 after the reset.
If OK, the current IP settings, i.e., the IP Ethernet address and its associ-
ated subnetmask, are displayed in the dialog box, see figure below.
Communication
Controller Position Channel
Interface
AC 800M Built-in - CN1
AC 800C CI272 1 or 2 COM 0
AC 250 CIE Anywhere AUI
* For AC 800C and Advant Controller 250: Set the mode switch to position 0 before
resetting and then set it back to 1 after the reset.
Channel
Controller
No.
AC 800M 1
AC 800C 0
AC 250 0
Fig. 69 The Online Analysis dialog box (for Control Builder Professional). The radio but-
tons for warm and cold restart are available if the application is to be changed. No
download will take place if no changes are made to the application.
Possible communication errors will be reported in the “Remarks” column
of the Online Analysis dialog box.
9. Click on Continue to download the application and close the Online
Analysis dialog box.
5. Click on Next, and in the new dialog box, check the radio button as in the
figure below.
12. Select the new connection (named in step 9), right-click and select Prop-
erties. The dialog box below appears.
14. Click on the tab Networking in the PPP-Default Properties dialog box,
see Fig. 77.
15. Mark Internet Protocol TCP/IP, and in the dialog box click on Proper-
ties. The dialog box below appears.
17. Uncheck the box Use default gateway on remote network and then
click OK.
A PPP configuration has now been created and configured on your PC.
The new connection must be tested. The cable must be connected be-
tween the PC and the controller and the latter be turned on.
Establishing Communication
1. Select the new PPP connection name from the Windows Start menu (PPP
or the name you gave it in step 9) Start>Settings>Network and Dial-up
Connections>PPP.
If you get an OK message, then communication with the controller has
been established and the PC will be given an IP address by the controller.
Tip. Look at the bottom right corner of the Windows desktop toolbar.
Right-click on the PPP icon (a symbol with two PCs) to get information
on the connection status.
2. Start the Control Builder. The MMS Server should automatically start.
3. In the MMS Control Panel, select Setup>PPP Setup. A dialog box ap-
pears, see the figure below.
Fig. 85 The status of the photocell and the motors can be forced in the I/O editor.
2. Close all editors.
Chapter 7
Structured Data Types
When dealing with projects with several I/O connections it may be difficult to
gain an overview of the variables and their I/O connections in the project.
There is an alternative method of declaring variables, which will be described
below. Tutorial_01 has been changed to illustrate the use of structured data
types. This new example is called Tutorial_01_Struct.
Information. It is assumed that you have worked through the chapter "Control
Builder - A Quick Look", on page 41. The ST code pane is used to illustrate
the variables.
The program is written using four different programming languages, as in
Tutorial_01.
Fig. 86 Four data types have been declared in the Project Explorer.
3. Double-click on Panel_Type to open the variable editor for this type, see
Fig. 87.
9. Place the cursor on an empty line in the code pane. Enter Tank21.
As soon as the period ‘.’ is entered, a list box appears with the already
declared components of Tank21, see figure below.
Fig. 90 The list box with the already declared components appears when the period is
entered.
Double-click on TLim. Enter a new period ’.’ and the next available compo-
nent appears.
10. Double-click on HL in the list box and the result on the line will be
Tank21.TLim.HL.
11. Close the program editor, but do not save the changes. It is now time to
connect the variables to the I/O.
Information. The following three figures show the other tabs in the project.
Path selector
Fig. 95 The Variables pane in simulation mode. Variable Tank21 and some other
variables are expanded.
Note the excellent overview, particularly the variable Tank21 with its nested
TLim of data type Temperature_Limit_Type.
3. Close the project, but do not save the changes. You should now have
gained an idea of how useful structured data types can be, and how to use
them in your project.
Name
Name.Value
Name.IOValue
Name.Forced
Fig. 96 The components of BoolI/O data type. “Name” is the variable name.
The components are as follows:
• Value
This is the value used by the application.
Information. The other components below must not be changed in the ap-
plication.
• IOValue
This is the value of the I/O channel. IOValue and Value are equal if the chan-
nel is not forced.
• Forced
Specifies whether or not the channel is forced.
Name
Name.Value
Name.IOValue
Name.Forced
Name.Status
Name.Parameters
Name.Parameters.Max
Name.Parameters.Min
Name.Parameters.Inverted
Name.Parameters.Fraction
Name.Parameters.Unit
Fig. 97 The components of the RealIO data type.
The components are as follows:
• Value
This is the value used by the application.
• IOValue
This is the value of the I/O channel. IOValue and Value are equal if the chan-
nel is not forced.
• Forced
Specifies whether or not the channel is forced.
• Status
If the channel status is not OK, then Status (dInt) can take any of the four
negative values representing underflow (-4029), overflow (-4030), unit er-
ror (-4031) or channel error (-4032).
• Parameters
The measuring range.
Chapter 8
A Project Using SFC Language
Fig. 98 The process diagram and the control panel for the vending machine.
Action
Program in
Selection_N
Transition
Action tabs
Information. A step may have three actions, P1, N and P0. P1 is executed only
once, upon entering the step, N is executed as long as the step is active and finally,
P0 is executed only once, just before leaving the step. Double-click on the step
Preparation, and note that this step has the actions P1 and N.
Fig. 100 The program in simulation mode. The process is waiting for the variable Start to
be set to true (the push-button Start on the control panel).
4. After examination, stop the simulation and close the program.
Chapter 9
Re-use of Code
Predefined function block types (from the library) have been used in earlier chap-
ters. This chapter describes the procedure for creating a library (MyLibrary) and
a user-defined function block type. The function block type (called MyFBType)
is created using two predefined function blocks from the system library. An in-
stance of this function block type is then used to test its function.
The procedures described in this chapter can be used with Control Builder Basic,
but you can only use a user-defined function block type in one project. You cannot
create a library folder and then add a user-defined function block type to that fold-
er.
Fig. 101 MyLibrary folder with the three subfolders for storing different types of data, func-
tion blocks and modules.
4. Save MyLibrary.
Tip. Look below the tab Function Blocks in the Declaration pane. The block TOn
is now automatically declared.
6. The graphical connection between the two blocks will now be created. Mark
the input In on the function block TOn and place the cursor close to the out-
put of the function AND. Right-click and select Connect to previous selec-
tion (or press Ctrl+left-click). A graphical connection between the two
blocks will be created, see Fig. 104.
7. The five input and output parameters are to be connected to the function and
the function block. Mark an input or output, right-click, select Connect and
enter the name of the parameter. Repeat this for all five connections, see Fig.
104.
Fig. 104 The FBD code in the code pane of MyFBType. Use the zoom buttons in the tool
box to zoom in and out of the code pane.
8. Choose Editor>Apply (or press Ctrl+W) in order to check the code.
9. Save the project. MyFBType will be saved in MyLibrary. MyFBType can
now be used as instances in any application.
Tip. To show the path of MyLibrary, right-click and select Properties.
7. Press Apply, check and save the program and close the program editor.
8. In the Project Explorer, expand Applications, Program and finally Normal.
The instance of MyFBType is now visible. Expand the instance and the in-
stance of the predefined function block TOn appears in the tree, see Fig. 106.
Fig. 106 MyFBType and the predefined function block instances used are shown in the tree
structure.
9. To start the simulation, select Tools>Simulate Project in the Project Ex-
plorer. In the Simulate Analysis window, click on Continue. In the Project
Explorer, double-click on the program Normal to open the Online editor, see
Fig. 107.
Tip. A function block type created with the ST editor can be used as an in-
stance in the FBD editor and vice versa, or in fact, in any other of the five
editors. In the examples on the ControlIT for AC 800M/C CD-ROM the two
types MyFB_ST and MyFB_FBD can be used for testing.
Fig. 107 The Online editor in simulation mode. Use the zoom buttons in the tool box to
zoom in and out of the code pane.
10. Change the variable value Time_input to 10 s and set A, B and C to true.
After 10 seconds the output variable Q will be true.
11. Close the Online editor and stop the simulation.
Tip. You can set a password to protect MyLibrary, see the Control Builder Online
Help.
Chapter 10
Creating Control Modules
This chapter describes the procedure for creating a Control Module type. It
(MyModuleType) simulates a traffic-light. Instances of the Control Module type
are then used in a Single Control Module called TrafficLight, which simulates a
crossroads with four interacting traffic-lights.
Note. Control Builder Professional must be used.
This project has been created using both the FBD editor (TrafficLight_FBD) and
the ST editor (TrafficLight_ST) in the examples on the ControlIT for AC 800M/C
CD-ROM. Only the former is explained in detail in this chapter, but the ST pro-
gram screen dumps are shown.
Information. Each folder name and Control Module has a suffix determined by
the programming language selected. The suffix is omitted in this chapter.
MyModuleType
Interaction code
MyModuleInstance MyModuleInstance
Interaction code Interaction code
MyModuleInstance MyModuleInstance
Interaction code Interaction code
Interaction code
Fig. 108 One user-defined Control Module type and four instances of it are used in this
project.
Init
Lights.Red
TOn1 Lights.Yellow
TOn2 Lights.Green
ration timer. The table below shows the required sequence of two traffic-lights lo-
cated at right-angles to each other at a junction, see Fig. 118 on page 137.
Fig. 112 The first part (page 1) of The FBD program code for MyModuleType. (There are 2
more pages). The >> sign after the variable name indicates connection with another page.
6. Create the next page of the FBD code using the page selector, see Fig. 113.
To make a page break, insert the first element, mark it and select
Tools>Page Layout>Insert Page Break. The page break will be set above
the marked element. The FBD editor now contains 2 pages.
Page selector
Fig. 113 The second page of The FBD program code for MyModuleType.
7. Create the last functions for MyModuleType on page 3, see Fig. 113.
8. Check, save and close the editor. It is now time to create the graphics (the
traffic-light with red, yellow and green signals) which is placed in the Con-
trol Module type.
2. Draw a rectangle and three circles using the tools in the tool box on the left
side of the editor, see Fig. 115.
Tip. If you use the Duplicate function when making the second and third cir-
cles, they will be the same size.
Fig. 116 The dialog box for entering colors and variable names for an object where the color
is to be changed by the program.
6. Repeat this for the middle circle and set the alternative area color to yellow
and finally set the lower circle alternative area color to green.
7. To ensure that the Control Module type works properly, test it as we did with
MyFBType.
* The border of the Control Module is normally not visible. To make it visible, hold down
the mouse button and draw the mouse, diagonally over the CMD editor area, and then
release the mouse button.
MyModuleInstance_1 MyModuleInstance_2
MyModuleInstance_4 MyModuleInstance_3
2. Select the tab Variables in the Variables declaration pane and enter the var-
iables, see figure below. The variables will be connected to the parameters
of the Control Module instances in a later section.
Fig. 121 The interaction program created using the ST code editor.
Fig. 122 The connections between the variables and the parameters in
MyModuleInstance_1.
3. Repeat steps 1 and 2 for MyModuleInstance_2, _3, and _4, but change the
parameters, see Fig. 123.
Fig. 125 The Online editor showing MySingleModule variables and the FBD code.
Information. Note that a change in the Control Module type will affect all in-
stances of that type.
Appendix A
Control Builder Settings
To set up the system for best performance and to suit your requirements regarding
language, etc., the Setup Wizard is used. When logged in with local Administrator
authority, the Setup Wizard is started from the Windows Start menu.
Information. Some tabs have a button marked Apply. Specified settings will not
be implemented until this button has been clicked on, see Fig. A-1.
All Setup Wizard dialog boxes contain a Display Settings button. Click on this
button to print out a log file on the screen containing all available settings in the
Wizard. This also prints out a list of system environment variables.
Information. If the Enable Auto-Logon function is enabled and you remove the
Control Builder program, then the Auto-Logon function will remain enabled.
Fig. A-2 General system settings for the redundant network routing protocol, RNRP.
Parameters for interface status and routing through the network are set for the
Control Builder in the dialog box shown above. The tab Parameters shows the
routing parameters and the other tabs are used for common setting of specific
parameters for Ethernet/Serial interfaces.
For further information, refer to the manual “Control Builder, Communication,
Protocols and Design” and the Control Builder’s Online Help function.
Memory Reservation
The total memory reserved for an application is based on a calculation involving
the size of the physical RAM memory and the paging file on the hard disk. Under
the Memory tab the following sizes are shown (see Fig. A-4).
• Physical RAM memory
• Total recommended paging file (this file can be changed in the Windows
control panel)
• Maximum recommended heap
• Actual heap (must normally be increased)
The heap should be set to the size of the application, but should not exceed the
Maximum heap size. Start by using the default value and then increase the value
according to the demands of the application.
Tip. The amount of free memory can be inspected by opening the About... dialog
box in the Control Builder Help menu. You should increase the heap size if there
is less than 30% left.
Information. You should not specify a heap size larger than the paging file. As
before, when the size of the heap is saved, the system checks that it does not
exceed the size of the paging file.
If the heap size is larger than the maximum heap size (half of the total paging file),
a warning message advises you to change the heap size. If the heap size is larger
than the paging file, an error message tells you to reduce the heap size.
Selecting Language
Under the Language tab it is possible to choose the language to be used for the
programming tool, the libraries, and the Online Help files (see Fig. A-5). The in-
stallation program will, by default, choose the same language as Windows 2000
is set to. If the language is not supported by the product, English will be used as
the default language.
Information. The ControlIT for AC 800M/C CD-ROM must be available when
the language of the Help files is to be changed.
Click on the button Change... to select the language. A dialog box for selection
of the path of the required language file will be opened.
Caution. The default language selection is not fool-proof. Check if the
appropriate language has been set and change it, if necessary, in the dialog box
above.
If you click on the button Use Default Settings, then all your own settings will be
reset to the general settings determined by the network administrator.
Click on Modify... to change the path of the locations. A browser will be opened
to assist you in locating the appropriate path, see Fig. A-7. If the setting is to be a
personal setting click on Change Personal Setting, and if it is to be the default
for any user, click on Change Product Setting. The latter is dimmed if you do
not have Administrator privileges. The changes made to the product settings will
only affect users without a personal setting.
Appendix B
SoftController Settings and
Operation
General
The control panel of the SoftController is started using the Windows Start menu
(Start>Programs>ABB Industrial IT>Control IT>SoftController). The startup
of the SoftController is managed from the control panel.
Warning! To obtain optimal performance of the SoftController, the user must log
on as a user that belongs to the ABB Controller user group or as a user that be-
longs to the local administrator user group (with default privilege settings). The
ABB Controller user group is created during installation of the SoftController.
Setup
The SoftController settings are defined in the Setup menu and the Security menu
of the control panel.
Start-up functions
Select item Start-up information... in the Setup menu to select the start-up func-
tions “Auto-start” or “Stand-alone”.
Fig. B-2 The dialog box for setting up different start-up alternatives.
The Auto-start function setting will automatically start the SoftController within
30 s after the start-up of the control panel. During this 30 s delay, a dialog box is
displayed from which the automatic start-up can be cancelled. The SoftController
is then started with an empty system without any user application.
The Stand-alone function setting will prevent any other application from running
in the computer, in order to achieve maximum performance and reliability. If the
MMS Server is running while this alternative is chosen, the SoftController will
not be able to start and a message box will appear on the screen.
Alter System Variables
Select System Variables... in the Setup menu to alter the system variables. Use
the Get button to fetch a value and the Set button to store a value.
Password setting
Select item Password... in the Security menu to define a password. It is possible
to restrict access to the following operations with a password.
• starting the SoftController
• stopping the SoftController
• opening the System variables dialog box
• opening the start-up information dialog box
• changing the password
Operation
The SoftController is operated from the control panel.
User Settings
Four Windows functions require a great deal of the processor capacity and should
be switched off for optimized SoftController performance. These functions are
shown in the Settings dialog box, see Fig. B-6. When the dialog box is shown to
the user (normally only the first time SoftController is started), the checkboxes are
dimmed if the settings are already disabled. If any of the settings are checked but
not dimmed, click on the Apply button to implement the changes.
Information. User settings are settings that affect the currently logged-on user.
Fig. B-6 Functions which can be disabled for optimized SoftController performance.
System Settings
Auto-Logon to Windows
This setup is similar to that for the Control Builder, see the section "Auto-Logon
to Windows", on page 146.
Redundant Network Routing Protocol, RNRP
This setup is similar to that for the Control Builder, see the section "Redundant
Network Routing Protocol, RNRP", on page 147.
Product Settings
Auto-Startup of SoftController
This setup is similar to that for the Control Builder, see the section "Auto-Startup
of Control Builder", on page 148.
Memory Reservation
This setup is similar to that for the Control Builder, see the section "Memory
Reservation", on page 149.
Select File Locations
This setup is similar to that for the Control Builder, see the section "Select File
Locations", on page 151.
Appendix C
OPC Server for AC 800M/C
Installation and Settings
C.2 Settings
To set up the system for best performance and to suit your requirements regarding
display, etc., the Setup Wizard is used, see Fig. C-2. When logged on with local
Administrator authority, the Setup Wizard is started from the Windows Start
menu.
Information. Note that the OPC Server configuration panel has additional
settings, such as heap size, system variables and auto-load configuration.
Information. Some tabs have a button marked Apply. Specified settings will not
be implemented until this button has been clicked on.
All Setup Wizard dialog boxes contain a Display Settings button. Click on this
button to print out a log file on the screen, containing all available settings in the
Wizard. This also prints out a list of system environment variables.
System Settings
Auto-Logon to Windows
This setup is similar to that for the Control Builder, see the section "Auto-Logon
to Windows", on page 146.
Redundant Network Routing Protocol, RNRP
This setup is similar to that for the Control Builder, see section "Redundant
Network Routing Protocol, RNRP", on page 147.
Product Settings
Memory Reservation
This setup is similar to that for the Control Builder, see the section "Memory
Reservation", on page 149.
Select File Locations
This setup is similar to that for the Control Builder, see the section "Select File
Locations", on page 151.
If your OPC Client requires the OPC Server to be registered on the client machine,
the ControlIT for AC 800M/C CD-ROM contains a registry file to facilitate
registration of the OPC Server on the client machine.
Insert the CD-ROM in to the client machine, right-click on the file
\Products\OPCServer\OPCServerRegEntriesForClientMachine.reg and
select Merge.
Example
If Control Builder A has network addresses 172.16.67.41 and 10.46.41.242 and
Control Builder B has addresses 172.16.67.42 and 10.46.41.241 both computers
have to have the 172.16 network as their primary network, the OPC server has to
be able to commuciate with the computers on the 172.16 network. The primary
network is the network defined as the first network in the network setup.
Appendix D
MMS Server for the AC 800M/C
The MMS Server for the AC 800M/C is a program that allows more than one of
our products to run and communicate with each other on the same computer. The
server is automatically installed when the Control Builder, the SoftController or
the OPC Server is installed, so no further action is required concerning this.
To exit the MMS Server, click on the MMS Server icon located on the
Windows desktop taskbar.
Appendix E
Communication Protocols
E.1 TCP/IP
Installing the TCP/IP Network Protocol
The TCP/IP network protocol must always be installed in the PC when running
any of the three Control Builder products.
The TCP/IP protocol is used as a “carrier” for the following application protocols:
• MMS on TCP/IP
• SattBus on TCP/IP
It is recommended that both Ethernet and the PPP protocol be installed. Read the
Control Builder Online Help function for further information.
Setting IP Addresses
Generally, an IP address X.Y.Z.Q is written with four integers X, Y, Z and Q
separated by a period (.). An IP address consists of a network identity part, NetID,
and a host identity part, HostID. All systems on the same network must have the
same network identity part, NetID. IP addresses are divided into different classes:
Every host must have a globally unique IP address. Normally, an IP address and
subnet mask can be obtained from your network manager. If you can not obtain
an IP address and you have no intention of connecting your network to the
Internet, you may use one of the reserved IP addresses for private IP networks. In
this case, you should use the following Class B network identity part, NetID:
172.16 or the class A identity part, NetID: 10.
Appendix F
Communication Cable Configuration
Appendix G
Comparison Between the Control
Builder Products
The table below shows the main differences between the three Control Builder
products.
Information. A project created in Control Builder Professional, can be opened in
Control Builder Standard or Basic, if the application name and the controller
name are identical.
Control Control
Control
Function Builder Builder
Builder Basic
Standard Professional
Appendix H
Glossary
Term Description
Application A collection of POUs (Programs, Function Blocks and Control Modules)
and their interconnections. Different parts of the Application are executed
under the control of Tasks. Variables in the Applications can be connected
to I/Os and can be accessible as communication server points through the
use of Access Variable names.
The application is the top hierarchical level and contains data types,
Control Modules, Function Blocks etc.
Application Part of the controller firmware that from a protocol serves clients with
Communication server application data read and write operations
Code block Used to divide the code into parts that are easier to handle (pages). A
code block consists of code that can be written in one of the following
programming languages: IL, ST, FBD, SFC or LD
COM Component Object Model, is the Microsoft binary standard, defining how
objects can interact. An object can, for instance, be a data structure, a
control module or a program.
Configuration Term describing all Applications and the Controller Configuration present
in a controller. All normal user loadable entities in a controller (i.e. except
the firmware).
Control Builder To construct your Control Software application you need the engineering
tool called Control Builder.
Control Module The Control Module is the main structuring element in a controller
application and contains both application program code and graphical
features.
Control Network Network connecting several controllers and PCs with Configuration Tools.
Note that a Control Network encompasses both Ethernet and serial links.
The Tool port on the controllers is part of the Control Network.
Control Software The software you run in the controller is called Control Software. This
name does not denote a specific software package you load into the
controller but is merely a name for the scope of functions you can use in a
controller. These functions are derived from:
- The hardware (supervision, communication buses, I/O buses, etc.)
- The firmware loaded into the controller (real-time executive system, real
time clock, redundant communication, etc.)
- The application program loaded into the controller (library functions,
communication protocols, etc.)
Controller Cold The controller performs a controller abrupt stop and hardware reset
Restart followed by an application cold restart of all applications.
Controller - Hardware Description. i.e. the hardware units it contains and settings for
Configuration these hardware units.
- Connections between hardware and applications (e.g. I/O connections).
- Access names for communication (Access Variable) and their
connection to Application variables.
- Task definitions.
Note: References applications but does not encapsulate them.
Controller Firmware The system software in the controller.
Controller Reset A controller stop followed by a combination of memory reset and hardware
reset
Controller Warm The controller restarts and all applications are warm restarted. Only
Restart possible as a consequence of power up.
Data type A data type is a description of the structure of a variable or a parameter.
Data type Defines the characteristics of a variable, a set of values and a set of
permitted operations. Data types may be simple or structured, either
predefined or user defined.
The supported basic data types are:
bool (1 bit) Boolean
word (16 bits)
dword (32 bits) Double Word
int (16 bits including the sign bit) Integer
int (16 bit) Unsigned integer (without the sign bit)
dint (32 bits including the sign bit). Double Integer
real (32 bits) Floating point number
Note that all data types allocate 32 bits in memory.
DCOM Distributed Component Object Model, is an extension of COM. It defines
how objects can interact over a network. COM and DCOM are available on
most Windows platforms and on several Unix platforms.
Ethernet Network cabling system according to IEE 802.3
FBD Function Block Diagram.
Firmware Real-time executive system, real-time clock, redundant communication
and so forth
Function A function returns a single value and communicates using input and
output parameters, but it can also use and alter global variables that are
not passed on as parameters.
The function does not keep values from previous calls unlike the function
block.
Functions can be used in a program, a function block or other functions.
An example of a function is the mathematical function sin or the
conversion function bool_to_string.
Function block A function block returns one or more values of simple or structured data
types. You can use function blocks in a program and in a function block. It
can contain other function blocks and functions. A function block
communicates using input and output parameters, but it can also use and
alter global variables that are not passed on as parameters.
A function block keeps all values of the variables since the last call, unlike
the function.
Home 134 N R
HSI 17
New Library 119 RAM 149
New Unit 79 Redundant Network Routing
I Protocol, RNRP 147
Remove Programs 38
I/O 82 O Rename 70
Address 82 Requirement
Editor 102 On-Board I/O 102
Signal 16 Online 55 Control Builder 18
Icons 25 FBD code 144 Restart (cold) 174
IEC 61131-3 14, 25, 128 Help 26 Restart (warm) 174
IL Manuals 26 Retain 62
Code 108 Testing 102 Re-use of Code 119
Online 56 OPC Client 16 RNRP 37, 147, 176
IL see Instruction List OPC Server
Industrial IT 17 Configuration panel 159 S
Init 128 Control Network 23
Insert Installation 33 Safety 13, 29
Function/Function Block 65 This is OPC Server 16 Security 155
Page Break 131 Operate IT 17 Selector 74
Path 110 Operation (SoftController) Sequential Function Chart
Install 31 153, 155 (SFC) 115
AC 800M/C Integration Kit Set up
34 Auto-start-up 148
OPC Server 33
P File location 151
SoftController 153 Page break 130, 131 Language 150
Installation Paging file 150 Memory 149
Software 32 Parameter 121, 130 RNRP 147
Step-by-step Instructions 32 Editor 71 System 146
Instance 119, 130, 140 Password setting 155 Settings
Parameters 140 Path selector 81 Control Builder 145, 146
Instance (term) 176 POU (Program Organization OPC Server 159
Instruction List 25 Units) 128, 176 SoftController 153
Integration Kit 34 Precautions Setup Wizard 145, 156, 160
Interaction Program 138 Hardware 30 SFC 117
Introduction 11 Operating environment 30 Language 115
IP address 166 Software 30 Shop Doors project 59
Predefined 119 Signal noise 30
Print out 83 Simulation 52, 76, 110
L Privileges 171 (ST) 77
Language 115, 150 Product Settings 148 Mode 111
LD online 57 Program 133 Mode (FBD) 76
LD_code 109 Change language 64 SFC 117
Library 14, 43, 129 Check 69 Stop 54, 78
New 119 Code 65, 70 Traffic_Lights 142
Line color 134 Code input 65 Variables editor 110
Log File Editor 61 Single Control Module 135,
View 156 FBD_Code 46 137
Logging in 171 IL_Code 49 Create 135
Interaction program 138 SoftController 15, 21
Language 25 Installation and Settings 153
M LD_Code 49 Operation 153, 155
per application 171 Terminate 156
Maintenance 29 Rename 65, 70 Source code control 171
Manuals, Online 26 Re-use of code 119 ST 55, 69, 105
Memory 149 SFC 115 ST see Structured Text
Menu bar 42 Software 24 Stand-alone function 154
Message pane 42 ST_Code 48 Start-up 31
Microsoft Word program 83 Write 64, 69 Project 42
MMS 176 Write FBD code 64 SoftController 154
MMS Server 33, 165 Write ST code 69 Statement
More 134 Project 24 List box 75
MyLibrary 119 Project Explorer 14, 24, 42 Selector 74
MyModuleType 130 Project Explorer (term) 176 Step 116
Structure view 67
Structured data types 103
T
Tasks 45, 142, 171
TCP/IP 166
Identity 166
Protocol 166
Template
Select 60
Title bar 42
Tool 177
Tool bar 42, 43
Transition condition 116
Tutorials 41
Tutorial_01 41
Tutorial_01_Struct 103
Tutorial_02_FBD 12
Tutorial_02_ST 12
Tutorial_03 115
Typographical Conventions
25
U
Upgrade Controller firmware
38
User assistance 26
User privileges 171
User-defined (predefined) 119
V
Variable 50
Access 51
Alter System Variables 154
Connect to instance parame-
ters 140
Connection to I/O 110
Declare 51, 60, 116
External 51
Insert 73
Local 51
View log file 156
W
Write a Program 64, 69
Write FBD code 64
Write ST code 69
Z
Zoom buttons 122, 125