ABB Quick Start REF
ABB Quick Start REF
ABB Quick Start REF
Issued: 29.10.2002
Version: D
Quick Start Reference
Program revision: 1.3.2
Notice 1
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 error
that may occur in this document. Futhermore, pictures shown are examples only.
Notice 2
This document complies with the program revision 1.3.2.
Notice 3
Additional information may be found in Release Notes.
Trademarks
All Microsoft products referenced in this document are either trademarks or registered trademarks of Microsoft
Corporation.
Other brand or product names are trademarks or registered trademarks of their respective holders.
1MRS751905-MEN Relay Configuration Tool
Quick Start Reference
1 Introduction 1
2 General handling in the Relay Configuration Tool 2
3 Programming with the Relay Configuration Tool 3
4 The project tree editor 4
5 Graphic editor 5
6 Text editors 6
7 The physical part of the project 7
8 Compiling 8
1MRS751905-MEN Relay Configuration Tool
Quick Start Reference Contents
Contents:
1. Introduction ...............................................................................7
1.1. What is the Relay Configuration Tool? ..........................................7
1.2. Using this manual ..........................................................................7
2. General handling in the Relay Configuration Tool ................9
2.1. Starting and exiting the Relay Configuration Tool .........................9
2.2. The help function in the Relay Configuration Tool ........................9
2.3. General operational items in the Relay Configuration Tool .........10
2.4. The toolbar in the Relay Configuration Tool ................................13
3. Programming with the Relay Configuration Tool ................15
3.1. General characteristics of the IEC 1131-3 standard ...................15
3.2. General project development with the Relay Configuration Tool 15
4. The project tree editor ............................................................17
4.1. The project tree in the Relay Configuration Tool .........................17
4.2. Inserting items in the project tree ................................................18
4.3. Deleting items in the project tree .................................................21
5. Graphic editor ..........................................................................23
5.1. The graphic editor - easy programming in SFC and FBD ...........23
5.2. Opening the graphic editor ..........................................................23
5.3. Editing SFC .................................................................................24
5.4. Editing FBD .................................................................................27
6. Text editors ..............................................................................33
6.1. The text editors - easy programming in IL ...................................33
6.2. Opening the text editor ................................................................33
6.3. Dialog in the IL editor ..................................................................34
6.4. Variable declarations in the Relay Configuration Tool ................34
7. The physical part of the project .............................................37
7.1. The physical part .........................................................................37
7.2. Resources ...................................................................................38
7.3. Tasks ...........................................................................................38
8. Compiling .................................................................................39
8.1. Taking programs into operation ..................................................39
8.2. Compiling ....................................................................................39
8.3. Compilation errors in the user error list .......................................39
Relay Configuration Tool 1MRS751905-MEN
1. Introduction 1
1.1. What is the Relay Configuration Tool?
The Relay Configuration Tool (Recap) is an IEC 1131-3 compliant programming
system for Programmable Logic Controllers running under Microsoft®1
Windows®2. Relay Configuration Tool offers features for project management,
programming, configuration, documentation and commissioning. The broad
acceptance of Microsoft Windows ensures familiar user interface facilities known to
most of today's engineers dealing with PLC projects.
IEC 1131-3 defines the programming languages of PLC programs and the set up of
the physical target systems. In the Relay Configuration Tool, the project tree
represents the complete structure of the current managed project. This concerns
mainly the project library including the program organization units programmed by
the user, further external included standard libraries with predefined sources, user-
defined data types and the target structure.
For the definition of program organization units, the Relay Configuration Tool
provides two main language editors. The graphic editor allows the definition of
POUs in the languages SFC and FBD. These languages can also be mixed. The edit
functions are easily accessible via toolbar. In addition, the Relay Configuration Tool
editor allows dialog lead input of programs in IL and the variable declarations. The
text editor handling is equivalent to any normal ASCII editor.
7
Relay Configuration Tool 1MRS751905-MEN
8
1MRS751905-MEN Relay Configuration Tool
Quick Start Reference 2. General handling in the
Relay Configuration Tool
2. General handling in the Relay Configuration
Tool
2
2.1. Starting and exiting the Relay Configuration Tool
During the start-up process the dialog 'Relay Configuration Tool log-in' appears on
the screen. Enter your password and confirm the dialog and the project will be
opened.
The IEC projects are password protected within the premises of ABB. The password
for the IEC projects is ‘ABB’ granting the access to freely construct also the
hardware tree. For example, when you launch the Relay Configuration Tool and the
'Relay Configuration Tool Log-In' dialog appears, type in ‘ABB’ and press the 'OK'
button. At this stage the IEC project that is attached to the object, will be opened.
Note! You are free to change the passwords, if you prefer.
To exit the Relay Configuration Tool, double click on the top left corner of the Relay
Configuration Tool's main window, or call the menu item 'Exit' of the submenu
'File'. You can also press the key combination <Alt><F4>.
9
Relay Configuration Tool 1MRS751905-MEN
10
1MRS751905-MEN Relay Configuration Tool
Quick Start Reference 2. General handling in the
Relay Configuration Tool
Fig. 2.3.-1 Example of source definition opened by double-clicking the item in the
project tree with the left mouse button.
The properties (functional settings) of the objects are set via dialogs. To display the
Properties dialog, double-click the appropriate object with the right mouse button.
In this dialog you can, for example, change the name of an Action block or the
processor type of a resource.
11
Relay Configuration Tool 1MRS751905-MEN
12
1MRS751905-MEN Relay Configuration Tool
Quick Start Reference 2. General handling in the
Relay Configuration Tool
functional windows in the Relay Configuration Tool. Refer to the general Help for
Relay Configuration Tool for the keyboard shortcuts.
Table 2.4.-1
Mark mode
Connect objects
Create text
Create function or FB
13
Relay Configuration Tool 1MRS751905-MEN
Create variable
Table 2.4.-2
Create action
Create divergence
14
1MRS751905-MEN Relay Configuration Tool
Quick Start Reference 3. Programming with the
Relay Configuration Tool
3. Programming with the Relay Configuration Tool
15
Relay Configuration Tool 1MRS751905-MEN
Program commissioning
16
1MRS751905-MEN Relay Configuration Tool
Quick Start Reference 4. The project tree editor
17
Relay Configuration Tool 1MRS751905-MEN
18
1MRS751905-MEN Relay Configuration Tool
Quick Start Reference 4. The project tree editor
19
Relay Configuration Tool 1MRS751905-MEN
Fig. 4.2.-2 Inserted POU in project tree with appropriate definition items
The same method of editing the project tree (adding further items) goes for the
physical part of the project. Several configurations can be added into the main
physical hardware file. Inside of a configuration level, further resources can be
inserted. Inside a resource, further tasks can be added. Each time during insertion, a
properties dialog is displayed, in which you can set the specific characteristics of the
items that will be inserted.
After you have added tasks to the task file of a resource, program instances of the
program types defined in the logical POU part can be set to the single tasks. To
assign a program to a task, open the properties dialog of the task by right double-
clicking on the task icon. The exact handling of the physical part of a project is
described in Chapter 7. The physical part of the project.
20
1MRS751905-MEN Relay Configuration Tool
Quick Start Reference 4. The project tree editor
21
Relay Configuration Tool 1MRS751905-MEN
22
1MRS751905-MEN Relay Configuration Tool
Quick Start Reference 5. Graphic editor
5. Graphic editor
23
Relay Configuration Tool 1MRS751905-MEN
24
1MRS751905-MEN Relay Configuration Tool
Quick Start Reference 5. Graphic editor
5
Fig. 5.3.-1 Initially inserted SFC network consisting of Step, Transition and
Action block
The minimal SFC network structure consists of a closed loop of initial Step
connected to an Action block and a subsequent Transition. The SFC structure is
enhanced by marking the Step or Transition and clicking the icon 'Create step/
transition sequence' in the toolbar.
Fig. 5.3.-2 Enhanced SFC network after inserting further Step / Transition
combinations
By pressing the icon 'Create step/transition sequence', further Steps and Transitions
can be added to the present SFC loop structure. The last inserted Step is marked. The
size of the loop is automatically adjusted.
Insertion of simultaneous / alternative branches is performed by following the same
principle. To insert an alternative branch mark a Step and click the icon 'Insert SFC
branch'. The alternative branch is inserted underneath the marked Step. To insert a
simultaneous branch, select the Transition under which you want to insert the
Transition and click the icon 'Insert SFC branch'
25
Relay Configuration Tool 1MRS751905-MEN
Fig. 5.3.-3 SFC network containing an alternative branch, S002 was selected
before the alternative branch was inserted
The properties of the single objects can be set in the properties dialogs of the objects.
The properties dialog is displayed by double-clicking the right mouse button on the
appropriate object. Objects in SFC language are all language items: Steps,
Transitions, Action blocks and Variables.
26
1MRS751905-MEN Relay Configuration Tool
Quick Start Reference 5. Graphic editor
The code bodies of Actions and Transitions, are accessible by double-clicking the
left mouse button on the appropriate item, either in the project tree or in the graphic
editor. You can define Action and Transition details in the languages FBD and IL.
If the Action is a Variable, the name of the Action directly corresponds with the
variable name. The Variable must be defined in the variables declaration of the SFC
POU as a Boolean data type. This can be done in two ways:
• declare the Variable before editing your SFC network by using the variable editor
or the dialog 'Variable Dialog'.
• declare the Variable while editing in SFC. In this case, just enter the name for the
new Variable in the dialog 'Action' and confirm the dialog. Automatically the
dialog 'Automatic variable declaration' appears. In this dialog the variable can be
5
declared. The Relay Configuration Tool inserts the Variable automatically in the
variable worksheet of the POU.
The properties of a Transition contain the information whether the Transition is a
Detail or a Direct connection. If the type is set to Direct connection, the Transition
can be connected to other graphic language items, that is functions, function blocks
and Variables.
27
Relay Configuration Tool 1MRS751905-MEN
28
1MRS751905-MEN Relay Configuration Tool
Quick Start Reference 5. Graphic editor
Fig. 5.4.-3 An example of mixed graphic languages: The output of the AND
function is connected to the Transition.
The principle of performing connections is to navigate the connection line from
source to destination. The direction of the connection is changed by mouse
movement. To set a corner (i.e. change direction), click the left mouse button while
navigating.
Connections can be set between inputs and outputs of functions and function blocks,
Variables and already existing connection lines.
To connect function or function blocks inputs and outputs you can also use the drag
& drop function. Move the appropriate function or function block so that the
connections overlap.
29
Relay Configuration Tool 1MRS751905-MEN
Fig. 5.4.-5 The AND function has been dragged & dropped, so that the
connections overlap.
Fig. 5.4.-6 The items have been connected. The AND function can be dragged to
any other location, the connection remains.
The easiest method of connecting variables to the inputs or outputs of functions and
function blocks is to mark the appropriate connection, and click the icon 'Create
variable' in the toolbar. The dialog 'Variable' appears.
30
1MRS751905-MEN Relay Configuration Tool
Quick Start Reference 5. Graphic editor
31
Relay Configuration Tool 1MRS751905-MEN
Fig. 5.4.-8 Variable 'start' connected to the input of the AND item
Variables can also be inserted somewhere in the editing area by setting an insertion
mark and clicking the icon 'Create variable' in the toolbar.
In the following, some general editing possibilities of the graphic editor are
described.
Single objects can be moved with the drag & drop function. First of all, mark the
appropriate object, hold down the left mouse button and move the mouse. Drag the
object to a certain position according to the mouse movement. After you have
released the left mouse button, the object remains at the new location, if no collision
conflict occurs.
To mark several distinct objects at the same time, press <SHIFT> and hold it down,
while you click the wanted objects. The drag & drop function also works for several
objects marked this way.
Several directly connected objects can be marked by pulling a rectangle over the
appropriate objects: Press the left mouse button, hold it down and finally move the
mouse. A rectangle is displayed, indicating the marked area. After releasing the
mouse button, the objects covered by the rectangle are marked. Further distinct
objects can be marked by following the principle described above.
You can delete objects by marking the appropriate object and selecting the deletion
function. An undo function allows restoring the network before the last action was
taken on it (i.e. delete a network and undo, the original display is restored).
32
1MRS751905-MEN Relay Configuration Tool
Quick Start Reference 6. Text editors
6. Text editors
33
Relay Configuration Tool 1MRS751905-MEN
34
1MRS751905-MEN Relay Configuration Tool
Quick Start Reference 6. Text editors
in the project tree and the dialog 'Declaration of variables and FB instances' appears.
In this dialog you can define the variables or function block instances.
35
Relay Configuration Tool 1MRS751905-MEN
36
1MRS751905-MEN Relay Configuration Tool
Quick Start Reference 7. The physical part of the
project
7. The physical part of the project
37
Relay Configuration Tool 1MRS751905-MEN
7.3. Tasks
The task level allows implementation of several tasks on the resource level. Tasks
are inserted via the project tree insertion function. On the same level, program
instances can be set.
38
1MRS751905-MEN Relay Configuration Tool
Quick Start Reference 8. Compiling
8. Compiling
8.2. Compiling
Generally, after creating a new project, the program must be compiled and
downloaded to the target. After finding program errors, it is possible to easily
modify the program part and compile only the changed worksheets.
There are several possibilities of compiling created programs in the Relay
Configuration Tool. Often used alternative is the Make function (to be selected in
the menu or in the toolbar). The Make function compiles all changed or new created
worksheets. These changed worksheets are displayed with an asterisk in the project
tree. After compiling, the asterisks disappear.
8
The compilation modes are described in detail in the context-sensitive help for the
Relay Configuration Tool.
Fig. 8.3.-1 Error window - an undefined Variable has been used in the source
In the user error list, also warnings are displayed.
39
Relay Configuration Tool 1MRS751905-MEN
40
1MRS751905-MEN Relay Configuration Tool
Quick Start Reference Index
Index
Page
C
Clipboard
In the text editors ........................................................................................................ 33
Compilation errors
User error list ............................................................................................................. 39
Compiling
Compilation errors ..................................................................................................... 39
Make ........................................................................................................................... 39
Taking programs into operation ................................................................................. 39
CPU
A physical part of a project ........................................................................................ 37
Main level for commissioning .................................................................................... 38
CPUs
A physical part of a project ........................................................................................ 37
D
Delete
Items of a project ........................................................................................................ 21
Drag & Drop
In the Graphic editor .................................................................................................. 23
Marking several objects using drag & drop .............................................................. 32
Used for connecting functions .................................................................................... 29
E
Editor
Graphic editor ............................................................................................................ 23
Language editors .......................................................................................................... 7
Errors
User error list ............................................................................................................. 39
F
FBD
Connecting items ........................................................................................................ 28
Connection lines ......................................................................................................... 28
Direct connection ....................................................................................................... 28
Editing ........................................................................................................................ 27
Formal parameters .................................................................................................... 28
Function blocks .......................................................................................................... 28
Functions .................................................................................................................... 28
Insertion of function blocks ........................................................................................ 27
Function blocks
Inserting in FBD ........................................................................................................ 27
G
Graphic editor
Deleting objects .......................................................................................................... 32
Drag & Drop .............................................................................................................. 23
easy programming in SFC and FBD .......................................................................... 23
Editing FBD ............................................................................................................... 27
Editing SFC ................................................................................................................ 24
General editing possibilities ...................................................................................... 32
Main characteristics .................................................................................................. 23
Relay Configuration Tool 1MRS751905-MEN
H
Help
Context-sensitive help .................................................................................................. 9
I
IEC 1131-3 standard
FB .............................................................................................................................. 15
FU .............................................................................................................................. 15
Function blocks .......................................................................................................... 15
Functions ................................................................................................................... 15
General characteristics ............................................................................................. 15
POU ........................................................................................................................... 15
Program organization units ....................................................................................... 15
Insert
Configuration to the physical part of a project ......................................................... 37
Function blocks .......................................................................................................... 27
Items to project .......................................................................................................... 18
L
Languages
FBD .............................................................................................................................. 7
IL .................................................................................................................................. 7
SFC .............................................................................................................................. 7
M
Mode
Connect object mode .................................................................................................. 28
O
Objects
Deleting objects ......................................................................................................... 32
Marking several objects ............................................................................................. 32
P
Password protection
In projects .................................................................................................................... 9
PLC
A physical part of a project ........................................................................................ 37
PLCs
A physical part of a project ........................................................................................ 37
POU
Contents of ................................................................................................................. 15
Program instance
A physical part of a project ........................................................................................ 37
Programs
Assigning a program to task ...................................................................................... 20
Project tree
Deleting items ............................................................................................................ 21
Inserting items ........................................................................................................... 18
1MRS751905-MEN Relay Configuration Tool
Quick Start Reference Index
Projects
Deleting items ............................................................................................................ 21
General development steps ........................................................................................ 15
Inserting items ............................................................................................................ 18
Libraries ..................................................................................................................... 17
Password protection ..................................................................................................... 9
Program instances ..................................................................................................... 37
Project tree ................................................................................................................. 17
The physical part ........................................................................................................ 37
R
Relay Configuration Tool
Declaration of variables ............................................................................................ 34
Development procedure ............................................................................................. 15
Exiting .......................................................................................................................... 9
General features ........................................................................................................... 7
General project development steps ............................................................................ 15
Introduction .................................................................................................................. 7
Libraries ..................................................................................................................... 17
POUs .......................................................................................................................... 15
Programming ............................................................................................................. 15
Project tree ................................................................................................................. 17
Starting ......................................................................................................................... 9
Supported IEC 1131-3 programming languages ....................................................... 15
Taking programs into operation ................................................................................. 39
Text editors ................................................................................................................. 33
The physical part of a project .................................................................................... 37
Toolbar ....................................................................................................................... 13
S
SFC
Action blocks .............................................................................................................. 26
Editing ........................................................................................................................ 24
Insertion of simultaneous / alternative branches ....................................................... 25
Steps ........................................................................................................................... 26
Transition details ....................................................................................................... 26
Transition properties .................................................................................................. 27
Transitions .................................................................................................................. 26
Variables ..................................................................................................................... 26
T
Task
A physical part of a project ........................................................................................ 37
Assigning a program to task ...................................................................................... 20
Text editors
Clipboard ................................................................................................................... 33
Easy programming in IL ............................................................................................ 33
Find/Find and Replace functions ............................................................................... 33
Main characteristics .................................................................................................. 33
Opening ...................................................................................................................... 33
The graphic editor
Easy programming in SFC and FBD ......................................................................... 23
Toolbar
Connect objects .......................................................................................................... 13
Create action .............................................................................................................. 14
Relay Configuration Tool 1MRS751905-MEN
V
Variables
Auto-insertion of variable in POU worksheet ........................................................... 31
Connecting to input/output ........................................................................................ 30
Declaration in Relay Configuration Tool .................................................................. 34
Declaration using variable dialog ............................................................................. 34
Declaration using variable editor ............................................................................. 34
Declaration while editing code body ......................................................................... 34
W
Worksheets
Compilation errors .................................................................................................... 39
Compiling with Make ................................................................................................. 39
Z
Zoom
In the graphic editor .................................................................................................. 23
In the text editor ......................................................................................................... 33