Professional Documents
Culture Documents
Relay Configuration Tool Tutorial 1MRS751903 MEM
Relay Configuration Tool Tutorial 1MRS751903 MEM
Issued:
30.10.2000
Version:
D
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.
Notice 2
This document complies with the program revision 1.3.2.
Notice 3
Additional information may be found in the Release Notes.
Trademarks
Microsoft is a registered trademark of Microsoft Corporation.
Windows NT is a registered trademark of Microsoft Corporation.
Other brand or product names are trademarks or registered trademarks of their respective holders.
All Microsoft products referenced in this document are either trademarks or registered trademarks of Microsoft
Corporation.
ABB Automation
1MRS751903-MEN
Tutorial
1MRS751880-MEN
1MRS751885-MUM
1MRS751886-MEN
1MRS751887-MEN
1MRS751891-MUM
1MRS751888-MUM
1MRS751897-MEN
1MRS751898-MUM
1MRS751899-MEN
1MRS751900-MUM
1MRS751901-MEN
1MRS751902-MUM
1MRS751903-MEN
1MRS751904-MEN
1MRS751905-MEN
1MRS751906-MEN
1MRS751982-MUM
1MRS752008-MUM
1MRS751870-MEN
ABB Automation
1MRS751903-MEN
1 Introduction
2 Getting familiar with IEC 1131
3 Realization of the IEC 1131-3
4 Getting started with Relay Configuration Tool
5 Editing the project structure
6 Declaring variables and user defined data types
7 Editing in FBD
8 Editing in SFC
9 Editing in IL
10 Compiling
11 Printing your project with a stylish pagelayout
12 Making a backup of your project files
ABB Automation
1
2
3
4
5
6
7
8
9
10
11
12
1MRS751903-MEN
Contents
Contents:
1. Introduction ...............................................................................7
1.1. What is Relay Configuration Tool? ................................................7
1.2. What kind of documentation do you get? ......................................7
1.3. Symbols and textual conventions ..................................................7
Project .........................................................................................15
Libraries ......................................................................................15
Data types ...................................................................................16
POUs in Relay Configuration Tool ..............................................16
Configurations elements in Relay Configuration Tool .................17
1MRS751903-MEN
Tutorial
7.2.
7.3.
7.4.
7.5.
7.6.
9. Editing in IL ............................................................................. 61
9.1.
9.2.
9.3.
9.4.
9.5.
9.6.
10.Compiling ............................................................................... 67
10.1.Inserting configurations, resources and tasks ............................ 67
10.2.Associating programs to tasks ................................................... 68
10.3.Compiling the project ................................................................. 68
ABB Automation
1MRS751903-MEN
1.
1. Introduction
Introduction
7KLVFKDSWHUSURYLGHVLQIRUPDWLRQDERXW
Relay Configuration Tool
The documentation for Relay Configuration Tool.
Conventions used in this tutorial.
1.1.
1.2.
1.3.
1MRS751903-MEN
Tutorial
<ALT>
<ALT> + <F4>
editor name
ABB Automation
1MRS751903-MEN
2.
7KLVFKDSWHUSURYLGHVLQIRUPDWLRQDERXW
2.1.
2.2.
Configuration elements
An IEC 1131-3 conform PLC programming system should try to reflect the
hardware structure or the structure of automatization problems. Therefore, IEC
1131-3 prescribes configuration elements, which have to be declared in the PLC
program to reflect this structure.
These configuration elements are basically:
Configurations
ABB Automation
1MRS751903-MEN
Tutorial
Resources
Tasks
2.2.1.
Configurations
A configuration can be compared to a programmable controller system, e.g. a rack.
In a configuration, global variables can be declared. The communication between
several configurations is done with access paths using VAR_ACCESS. A
configuration consists of one or several resources.
2.2.2.
Resources
A resource can be compared to a CPU which can be inserted in the rack. In a
resource, global variables can be declared. In a resource, one or several tasks can be
executed.
2.2.3.
Tasks
Tasks determine the time scheduling of the invocation of different programs
associated with them. This means that programs have to be associated to tasks. The
properties of the task determine the time scheduling. The information for the time
scheduling is not available in programs and function blocks, but it is stored in the
associated task.
IEC 1131-3 describes different time scheduling which lead to three different task
types:
&\FOLFWDVNV are activated in a certain time interval and the program is executed
periodically.
(UURUWDVNV will be activated if an error occurs in a different task.
(YHQWRULQWHUUXSWWDVNV are activated if a certain event has happened, e.g. a
variable has reached a certain value.
2.3.
2.3.1.
2.3.1.1.
Functions
Functions are POUs with multiple input parameters and exactly one output
parameter. They do not have any internal memory. Consequently, calling a function
10
ABB Automation
1MRS751903-MEN
with the same values always results in the same return value. The return values can
be either single data types or multi-element data types such as arrays or structures.
2.3.1.2.
Function blocks
Function blocks are POUs with multiple input and output parameters. They do have
an internal memory. The value that a function block returns depends of the value of
its internal memory.
IEC 1131-3 lists different types of standard function blocks:
2.3.1.3.
Programs
Programs are POUs which contain a logical combination of functions and function
blocks according to the needs of the controller process. The behaviour and the use
of programs are similar to function blocks. Programs can have input and output
parameters as well as internal memories or variables. Programs must be assigned to
tasks.
)LJ 'LDJUDPRIWKHGHIDXOWWDVNZLWKWZRSURJUDPV
2.3.2.
Instantiation
For reusing function block definitions IEC 1131-3 provides the possibility of
instantiation. This means that the function block code body or a program is defined
once and that its internal memory is allocated to different instances, different
ABB Automation
11
1MRS751903-MEN
Tutorial
memory regions. Each instance has an associated identifier and contains the input
and output parameter and the internal memory of the function block or program. A
function block can be instantiated in another function block or in a program. The
instance name of a function block has to be declared in the VAR declaration of the
program or function block where it is going to be used. Programs can only be
instantiated within resources.
2.3.3.
2.4.
Variable type
INT:=42
VAR_END
'DWDW\SHV determine what kind of value the variable can have. Data types define
the initial value, range of possible values and the number of bits.
IEC 1131-3 distinguishes three kinds of data types:
Elementary data types.
Generic data types.
Derived data types.
(OHPHQWDU\GDWDW\SHV are pre-defined data types whose range of possible values
and number of bits is prescribed by IEC 1131-3. Elementary data types are e.g. BIT,
WORD, BOOL or DATE.
*HQHULFGDWDW\SHV are data types, which include groups of elementary data types.
They are called e.g. ANY_BIT or ANY_REAL. ANY_REAL includes e.g. the
elementary data types REAL and LREAL. Generic data types are necessary to
define what kind of elementary data types can be connected to inputs or outputs of
functions or function blocks. If a function block can be connected with ANY_REAL
it means that variables of the data types REAL and LREAL can be connected.
12
ABB Automation
1MRS751903-MEN
'HULYHGGDWDW\SHV are user or manufacturer defined data types which can vary
from PLC to PLC type. They are defined with a TYPE... END_TYPE declaration.
Derived data types can be enumerated data types, subranges, structures or arrays.
The most important elements of a user defined data type declaration are shown in
the following example:
TYPE
type1 :
type2 :
type1
END_TYPE
2.5.
Programming languages
IEC 1131-3 defines the syntax of 5 programming languages, prescribes a certain
representation and describes the different elements that can be used in the language.
The programming languages supported by Relay Configuration Tool can be
differentiated by the physical appearance into 1 textual language and 2 graphical
languages.
The WH[WXDOODQJXDJH is Instruction List (IL).
The JUDSKLFDOODQJXDJHV are Function Block Diagram (FBD) and Sequential
Function Chart (SFC).
2.5.1.
Instruction List - IL
A code body programmed in the textual language IL is composed of a sequence of
instructions. Each instruction begins at a new line and shall contain an operator.
Modifier and one or more operands are optional. Comments can be inserted at the
end of a line using asterisks and brackets. Labels can be added at the beginning of a
line if jumps are used.
The manner how to edit IL and the basic characteristics of the programming
language are described in the chapter Editing in IL on page 61.
2.5.2.
ABB Automation
13
Tutorial
2.5.3.
1MRS751903-MEN
A code body programmed in the graphic language SFC is composed of steps and
transitions which are connected with directed links. Associated with each step is one
or more actions and with each transition a transition condition.
In a step the actions to be executed while the step is active are programmed. A step
can be either active or inactive.
A transition represents the condition in which the process can pass from one step to
another.
The action block can be any Boolean variable or another code body worksheet. The
transition condition can be a directly connected Boolean expression or another code
body worksheet. If you are editing another code body this code body is called detail.
The set of connected objects is called SFC network. A typical SFC network forms a
closed loop and should have one initial step. Simultaneous or alternative branches
can be inserted in the SFC network. Comments can be entered using asterisks and
brackets.
The manner how to edit SFC and the basic characteristics of the programming
language are described in the chapter Editing in SFC on page 47.
14
ABB Automation
1MRS751903-MEN
3.
3.1.
Projects
Libraries
Data types
POUs
Configuration elements
Project
Relay Configuration Tool is a programming system based on the windows
technology using the graphic user interface of MS-Windows. Therefore the IEC
1131-3 principles are mostly realized graphically with symbols and icons or dialogs
are used where properties of elements can be set.
A project represents the set of configuration elements, POUs, libraries and data
types of one automatization system. This means that for realizing a PLC program
you have to create a project, which contains all necessary elements. This project with
its elements is represented in a tree structure, the project tree.
)LJ 7KHSURMHFWZLWKLWVVXEWUHHV
The subtrees which are always parts of the project tree can have one or several child
elements.
3.2.
Libraries
Libraries in Relay Configuration Tool are other projects which have been announced
as libraries. You can reuse the programs, function blocks, functions and the user
defined data types of the library in the new project you are editing. Libraries have an
own subtree in the project tree.
)LJ 3URMHFWWUHHZLWKVXEWUHH
/LEUDULHV
ABB Automation
15
1MRS751903-MEN
Tutorial
The subtree Libraries consists of two or more icons. The first icon is a directory
node. The child element of this directory node represents an announced library. In
Figure 3.2.-1 you can see the announced library RECLIB01.
3.3.
Data types
Data types in Relay Configuration Tool are user defined or firmware data types.
These data types have their subtree in the project tree where they can be viewed or
edited.
)LJ 3URMHFWWUHHZLWKVXEWUHH
'DWDW\SHV
The subtree Data types consists of two or more icons. The first icon of the subtree
Data types is a directory node. The child elements of the directory node are the data
type worksheets where the data types are edited. In Figure 3.3.-1 you can see the data
type worksheet type1.
3.4.
)LJ 3URMHFWWUHHZLWKVXEWUHH
/RJLFDO328V
A POU consists of several worksheets. One set of worksheets builds one POUs.
These worksheets are:
A GHVFULSWLRQZRUNVKHHW where texts describing the POU for documentation
purposes can be edited. These worksheets are optional.
16
ABB Automation
1MRS751903-MEN
)LJ :RUNVKHHWVRIDSURJUDPLQ)%'
In the case of a SFC POU, you have two more icons, the directory nodes for actions
and transitions:
)LJ ,FRQVRID6)&328
3.5.
ABB Automation
17
1MRS751903-MEN
Tutorial
)LJ $QH[DPSOHRIDSURMHFWWUHHLQ5HOD\&RQILJXUDWLRQ7RRO
Relay Configuration Tool reflects the structure of configuration elements
determined by the PLC. Therefore, the configuration elements available in the
subtree Physical Hardware may differ from PLC to PLC.
In general one or several configurations can be used in Relay Configuration Tool. In
every configuration, one or several resources can be declared. Several tasks with
their associated programs can be used within the resources.
18
ABB Automation
1MRS751903-MEN
4.
4.1.
4.2.
4.3.
User interface
The user interface you get having started Relay Configuration Tool consists
basically of four parts: Menu, toolbar, main screen and status bar.
ABB Automation
19
1MRS751903-MEN
Tutorial
)LJ 8VHULQWHUIDFHRI5HOD\&RQILJXUDWLRQ7RROZLWKDVDPSOHSURMHFW
3URMHFW
4.4.
Menu
The menu is represented in the line below the title bar. In the menu bar you find
several submenus.
The VXEPHQX
)LOH
can be used to handle and to save all your projects. It
contains also commands for printing, calling the pagelayout editor and preview.
For the project tree editor the submenu 'File' has been extended with menu items
for special operations.
The VXEPHQX
(GLW
contains all commands necessary for editing such as
marking, choosing different working modes or cutting and pasting.
The VXEPHQX
6HOHFWLRQ
has been implemented for selecting objects.
The VXEPHQX
2EMHFW
is only available if you are using the graphic or the
pagelayout editor. It is used to insert objects, which can be used in these editors.
The VXEPHQX
/D\RXW
can be used for designing what you get on your screen.
You can display e.g. page borders or a grid for better organizing the content of
your worksheets.
20
ABB Automation
1MRS751903-MEN
The VXEPHQX
0DNH
consists of different commands for starting the compilation
after editing.
The VXEPHQX
2QOLQH
offers you different commands for the online mode which
is used for debugging.
The VXEPHQX
:LQGRZ
can be used to arrange the windows and symbols on
your screen.
The VXEPHQX
+HOS
contains all commands for calling help.
The menu items of these submenus change according to the program part or
editor you are working with. In the context-sensitive help it is explained exactly
where the different menu items are available.
1RZLWLV\RXUWXUQ
&DOOLQJDPHQXLWHPXVLQJWKHPRXVH
1. Do a left mouse click on the submenu 'Layout'. The submenu is opened and you
can see the menu items.
2. Do a left mouse click on the menu item 'Zoom in'. The project tree is zoomed in
once.
&DOOLQJDPHQXLWHPXVLQJWKHNH\ERDUG
1. Press <ALT> + <L>. The submenu is opened and you can see the menu items
2. Press <I> as it is the underlined character of the menu item 'Zoom in'. The
project tree is zoomed in.
All submenus or menu items and dialog fields and boxes can be called pressing the
underlined character of the corresponding word.
4.4.1.
Toolbar
The toolbar is located below the menu bar. It consists of one or two lines of different
icons. The icons differ from editor to editor. In the context-sensitive help, each icon
is explained. The toolbar has been implemented for realizing quickly often used
operations with the mouse. In those cases one mouse click on a toolbar icon leads to
the same result as doing several steps without the toolbar.
In the toolbar two different parts can be distinguished: The general part and the
specific part.
The JHQHUDOSDUW contains icons, which are available everywhere in Relay
Configuration Tool.
The VSHFLILFSDUW contains icons, which can be used only in the editors.
)LJ
ABB Automation
([DPSOHRIDWRROEDULQ5HOD\&RQILJXUDWLRQ7RRO
21
1MRS751903-MEN
Tutorial
1RZLWLV\RXUWXUQ
8VLQJWKHWRROEDUIRU]RRPLQJLQ
1. Do a left mouse click on the icon Zoom in. The project tree is zoomed in
once.
4.4.2.
Keyboard Shortcuts
The same idea of the toolbar minimizing the steps to do for reaching a certain
function was the reason for implementing keyboard shortcuts. Keyboard Shortcuts
can be used to reach the purpose with pressing only one key or a key combination.
In Relay Configuration Tool, several keyboard shortcuts can be used. In the contextsensitive help function, a list of these shortcuts is available.
1RZLWLV\RXUWXUQ
8VLQJDNH\ERDUGVKRUWFXWIRU]RRPLQJLQ
1. Turn on Num Lock on your keyboard if it is not activated.
2. Press <+>. The project tree is zoomed in once.
4.4.3.
You can open this new workspace you have created using the menu item Open
Workspace in the submenu File.
4.4.4.
Status bar
The status bar contains several fields where different kinds of messages are
displayed while you are working with Relay Configuration Tool.
22
ABB Automation
1MRS751903-MEN
The message in the left corner of the status bar provides information about
operations you have done or displays system messages of Relay Configuration Tool.
If you choose e.g. a menu item a short information on this menu item is given in the
message field of the status bar.
At the right, the available RAM memory is displayed. The last field on the right is
used to indicate the starting-up process of Relay Configuration Tool.
4.5.
ABB Automation
23
1MRS751903-MEN
Tutorial
&DOOLQJDPDLQWRSLFZLWKWKHNH\ERDUG
1. Press <H>. The submenu Help is called.
2. Press <W>. The main topic for the project tree editor appears.
&DOOLQJDQREMHFWWRSLFZLWKWKHNH\ERDUG
1. Press < > to mark an icon of the project tree.
2. Press <F1>. The topic for the marked object appears.
&DOOLQJDGLDORJWRSLFZLWKWKHNH\ERDUG
1. Press <ALT> + <F>. The submenu File is opened.
2. Press <Z>. The dialog Zip Project appears.
3. Press <F1>. The help topic for this dialog appears.
In Relay Configuration Tool help, you have the possibility of using, either the menu,
the buttons or the green, underlined phrases. These green, underlined words are
called jumps and can be used to move quickly to other topics for getting more
information. Another possibility of rapidly accessing information is using the button
Search. You get a dialog where you can choose the topic you want to call. The list
of topics contains all headings of available topics.
The menu bar, buttons and jumps are shown for the table of contents of the general
help in the following figure:
24
ABB Automation
1MRS751903-MEN
)LJ 7DEOHRIFRQWHQWVRIWKHJHQHUDOKHOS
1RZLWLV\RXUWXUQ
-XPSLQJWRDQRWKHUWRSLF
1. Do a left mouse click on an underlined word of the help page. The
corresponding topic appears.
4.6.
4.6.1.
ABB Automation
25
1MRS751903-MEN
Tutorial
4.6.2.
4.6.3.
4.6.4.
26
ABB Automation
1MRS751903-MEN
4.6.5.
([LWLQJ5HOD\&RQILJXUDWLRQ7RROZLWKWKHPRXVH
1. Choose the menu item Exit in the submenu File. Relay Configuration Tool is
closed.
To exit Relay Configuration Tool you can also do a left mouse double click on
the icon of the system menu on the left corner on the top of the Relay Configuration
Tool user interface.
([LWLQJ5HOD\&RQILJXUDWLRQ7RROXVLQJWKHNH\ERDUG
1. Press <ALT> + <F>. The submenu File is opened.
2. Press <E>. Relay Configuration Tool is closed.
You can use also the keyboard shortcut <ALT> + <F4> to exit Relay
Configuration Tool.
ABB Automation
27
28
1MRS751903-MEN
Tutorial
ABB Automation
1MRS751903-MEN
5.
5.1.
)LJ 7KH
5HOD\&RQILJXUDWLRQ7RROORJLQ
'LDORJ
8VLQJWKHGLDORJ
5HOD\&RQILJXUDWLRQ7RROORJLQ
ABB Automation
29
1MRS751903-MEN
Tutorial
)LJ 3URMHFW
352-(&7
ZLWKSURJUDP
&RQW&RPR
DQGLWVZRUNVKHHWV
The project Untitled includes automatically two POUs: the programs ContComo
and ProtMeas. The program ContComo has 7 worksheets:
The description worksheet 'ContComT' for the POU documentation(optional).
The variable worksheet 'ContComV' for the declaration of variables and function
block instances.
The code body worksheets 'Condmon', 'Alarms', 'DC', 'CB' and 'SWGRPs' for the
code body definition
It is possible to change the properties of this program or to leave it and to insert new
POUs or worksheets.
5.2.
30
ABB Automation
1MRS751903-MEN
&KDQJLQJWKHSURSHUWLHVRIH[LVWLQJ328VZLWKWKHNH\ERDUG
1. Press < > or < > to mark the icon Program name.
2. Press <ALT> + < > for changing the properties. The dialog
Properties appears.
)LJ 'LDORJ
3URSHUWLHV
ZKLOHFKDQJLQJWKHSURSHUWLHVRIH[LVWLQJ328V
328V
8VLQJWKHGLDORJ
3URSHUWLHV
ZKLOHFKDQJLQJWKHSURSHUWLHVRIH[LVWLQJ
5.3.
ABB Automation
31
1MRS751903-MEN
Tutorial
,QVHUWLQJD328ZLWKWKHNH\ERDUG
1. Press < > or < > to mark the icon Logical POU.
2. Press <INS>. The dialog Insert appears.
)LJ 'LDORJ
,QVHUW
ZKLOHLQVHUWLQJDQHZ328
8VLQJWKHGLDORJ
,QVHUW
ZKLOHLQVHUWLQJDQHZ328
1.
2.
3.
4.
5.4.
Inserting worksheets
It is also possible to insert new worksheets in POUs. This feature is necessary if you
have big code bodies and you want to split them into several pieces for better
orientation. If you want to insert new worksheets in POUs the language of the new
worksheet is determined by the POU language. It is not possible to insert an IL
worksheet in a FBD POU. Inserting new worksheets is similar to inserting new
POUs. Just the icons, which have to be marked, are the following:
32
ABB Automation
1MRS751903-MEN
The steps to be done for inserting new data type worksheets in the subtree
Data types are also similar to the steps described for inserting new POUs.
For inserting new data type worksheets mark the icon 'Data types'.
5.5.
Announcing libraries
Having already finished one project, you can reuse these POUs and worksheets in a
new project. This feature makes superfluous the definition of code bodies, which
already exists. To reuse POUs and worksheets of an existing project you have to
announce this project as a library of your new project. You can use the programs,
function blocks and functions of a library but you can not view or edit them.
1RZLWLV\RXUWXUQ
$QQRXQFLQJDOLEUDU\ZLWKWKHPRXVH
1. Do a left mouse click on the icon Libraries to mark it.
2. Do a left mouse click on the icon Insert in the toolbar. The dialog
Announce library appears.
3. Choose the project you want to announce as a library.
4. Do a left mouse click on the button OK to confirm the dialog.
$QQRXQFLQJDOLEUDU\ZLWKWKHNH\ERDUG
1.
2.
3.
4.
,167$//$7,21'5,9(!?&$3?&20021?,(&/,%6?),
Your project tree should look like the following figure now:
ABB Automation
33
1MRS751903-MEN
Tutorial
)LJ 3URMHFW
352-(&7
ZLWKDQQRXQFHGOLEUDU\
5()/,%
5.6.
34
ABB Automation
1MRS751903-MEN
6.
6.1.
6.2.
ABB Automation
35
1MRS751903-MEN
name
END_VAR
The location of the variable consists of a location prefix and a size prefix. Location
prefixes are I for inputs, Q for outputs and M for internal memory. Size prefixes are
X for single bits, B for byte, W for word, D for double word and L for long word size.
Located variables are stored at the declared logical address and it is up to the
application programmer to check that no memory address is used twice.
The initial value is optional. If no initial value is used, the variable is initialized with
the default initializing value given by the PLC type when starting the program
execution.
6.3.
6.4.
36
Keyword
VAR
ABB Automation
1MRS751903-MEN
VAR_OUTPUT
VAR_EXTERNAL
VAR_GLOBAL
END_VAR
6.5.
ABB Automation
37
1MRS751903-MEN
)LJ 'LDORJ
'HFODUDWLRQRIYDULDEOHVDQG)%LQVWDQFHV
8VLQJWKHGLDORJ
'HFODUDWLRQRIYDULDEOHVDQG)%LQVWDQFHV
1.
2.
3.
4.
5.
6.
7.
6.6.
Instantiation
IEC 1131-3 provides the possibility of instantiation. Instantiation means that a
function block is defined once and can be used several times in different POUs. As
function blocks always have an internal memory, it is necessary to store its values
for each time the function block is used to a different memory region. This is done
using instance names. The instance name is declared in the variable declaration of
the POU where the function block is going to be reused. In the following an example
of a variable declaration for the function block FB_exam with two instances is
shown:
VAR
drive1 : FB_exam
38
ABB Automation
1MRS751903-MEN
drive2 : FB_exam
END_VAR
The function block FB_exam, whose code body has been defined somewhere in the
project, has got two instances. The instance name of the first instance is drive1, of
the second drive2. In the corresponding code body worksheet, you can use the
function block FB_exam twice, entering in both cases the correct instance name.
Function block instances can be declared via dialog as it is described in the
section Declaring variables via dialog on page 37 of this chapter.
Function blocks can be instantiated within programs or other function blocks.
Functions can be called without instantiation because they do not have an internal
memory.
In Relay Configuration Tool, the instance tree shows all instances used in your
project, as it is shown in the following example:
)LJ ([DPSOHRIDQLQVWDQFHWUHH
In this example, there is one program instance of both of the programs
PROTMEAS and CONTCOMO used in the tasks TASK1 and TASK2
respectively.
Program instances are created just associating a program to a task and entering
an instance name in the corresponding dialog. Associating programs to tasks is
described in the chapter Compiling on page 67 of this Tutorial.
ABB Automation
39
1MRS751903-MEN
40
ABB Automation
1MRS751903-MEN
7.
7. Editing in FBD
Editing in FBD
7KLVFKDSWHUSURYLGHVLQIRUPDWLRQDERXW
7.1.
)LJ *UDSKLFHGLWRUZLWKWKH)%'ZRUNVKHHW
ABB Automation
41
Tutorial
7.2.
1MRS751903-MEN
The first step you have to do is inserting function and function blocks in your FBD
worksheet. For the next description, let us assume that you want to insert the
function block CTU.
1RZLWLV\RXUWXUQ
,QVHUWLQJDIXQFWLRQEORFNZLWKWKHPRXVH
1. Do a left mouse click in the editing field to set an insertion mark.
2. Do a left mouse click on the icon Insert function/function block in the
toolbar. The dialog Function/Function Block appears.
,QVHUWLQJDIXQFWLRQEORFNZLWKWKHNH\ERDUG
1. Press <SPACE> to set an insertion mark.
2. Press <F>. The dialog Function/Function Block appears.
)LJ 'LDORJ
)XQFWLRQ)XQFWLRQ%ORFN
8VLQJWKHGLDORJ
)XQFWLRQ)XQFWLRQ%ORFN
1. Choose the name of the function block CTU in the list box Name.
2. Confirm the dialog. The function block is inserted at the insertion mark.
7.3.
Inserting variables
For inserting variables in a FBD worksheet you have 2 possibilities: Inserting
variables somewhere in the editing field or inserting variables already connected to
functions or function blocks.
For the next steps let us assume that you want to insert a variable already connected
to the function block CTU.
The first step to be done for inserting a variable somewhere in the editing field
is setting an insertion mark in the editing field. All other steps are the same.
42
ABB Automation
1MRS751903-MEN
7. Editing in FBD
1RZLWLV\RXUWXUQ
,QVHUWLQJDYDULDEOHDWWKHIRUPDOSDUDPHWHU
39
ZLWKWKHPRXVH
1. Do a left mouse click on the formal parameter PV to mark it.
2. Do a left mouse click on the icon Insert variable in the toolbar. The
dialog Variable appears.
,QVHUWLQJDYDULDEOHDWWKHIRUPDOSDUDPHWHU
39
ZLWKWKHNH\ERDUG
1. Press the cursor keys to go to the position of the formal parameter PV.
2. Press <SPACE> to mark it.
3. Press <V>. The dialog Variable appears.
)LJ 'LDORJ
9DULDEOH
8VLQJWKHGLDORJ
9DULDEOH
7.4.
Connecting objects
If you have inserted functions, function blocks or variables somewhere in the editing
field, you have to connect them to create a FBD network. For the next section, let us
assume that you want to connect the function block CTU with the function ADD.
Therefore you have to insert first the function ADD following the steps described
in the section Inserting function blocks and functions.
1RZLWLV\RXUWXUQ
&RQQHFWLQJWZRREMHFWVZLWKGUDJ GURSZLWKWKHPRXVH
1. Do a left mouse click on the function ADD and keep it pressed.
2. Move the mouse towards the function block so that the connection points
overlap.
3. Release the mouse button. The connection is set.
4. Move either the function or the function block to a free position if you want to.
&RQQHFWLQJWZRREMHFWVZLWKGUDJ GURSZLWKWKHNH\ERDUG
1. Press the cursor keys to go to the position of the function ADD.
2. Press <SPACE> and keep it pressed.
ABB Automation
43
1MRS751903-MEN
Tutorial
3. Press the cursor keys to move towards the function block so that the connection
points overlap.
4. Release <SPACE>. The connection is set.
5. Move either the function or the function block to a free position if you want.
)LJ )XQFWLRQDQGIXQFWLRQEORFNEHIRUHVHWWLQJWKHFRQQHFWLRQ
)LJ 7KHFRQQHFWLRQLVVHW
44
ABB Automation
1MRS751903-MEN
7. Editing in FBD
7
)LJ 7KHIXQFWLRQLVPRYHGWRDIUHHSRVLWLRQZLWKWKHUHPDLQLQJFRQQHFWLRQ
It is also possible to use the connection mode for connecting objects in FBD
worksheets. The connection mode is described in the context-sensitive help for
Relay Configuration Tool.
Do not forget to declare the instance of the function block in the variable
declaration of the POU as it is described in the chapter Declaring variables and user
defined data types on page 35.
7.5.
7.6.
ABB Automation
45
1MRS751903-MEN
Tutorial
1RZLWLV\RXUWXUQ
([LWLQJWKHZRUNVKHHWZLWKWKHPRXVH
1. Do a left mouse click on the submenu File. The submenu appears.
2. Do a left mouse click on the menu item Close. The dialog Relay Configuration
Tool: editor name appears.
([LWLQJWKHZRUNVKHHWZLWKWKHNH\ERDUG
1. Press <CTRL> + <F4>. The dialog Relay Configuration Tool: editor name
appears.
)LJ 'LDORJ
5HOD\&RQILJXUDWLRQ7RROHGLWRUQDPH
IRUZRUNVKHHW
)%'B)%
8VLQJWKHGLDORJ
5HOD\&RQILJXUDWLRQ7RROeditor name
1. Press the button Yes to exit the worksheet with saving the changes.
2. Press the button No to exit the worksheet without saving the changes.
46
ABB Automation
1MRS751903-MEN
8.
8. Editing in SFC
Editing in SFC
7KLVFKDSWHUSURYLGHVLQIRUPDWLRQDERXW
8.1.
ABB Automation
47
1MRS751903-MEN
Tutorial
)LJ *UDSKLFHGLWRUZLWKWKH6)&ZRUNVKHHW
8.2.
8.3.
48
ABB Automation
1MRS751903-MEN
8. Editing in SFC
)LJ 6)&ZRUNVKHHWZLWKRQHVWHSDQGRQHWUDQVLWLRQ
In the figure, you can see a SFC network with one initial step (S001), the
corresponding action block (A001) and one transition (T001).
8.4.
ABB Automation
49
1MRS751903-MEN
Tutorial
)LJ 6)&QHWZRUNZLWKIRXUVWHSV
8.5.
50
ABB Automation
1MRS751903-MEN
8. Editing in SFC
)LJ 'LDORJ
6WHS
8VLQJWKHGLDORJ
6WHS
8.6.
)LJ 'LDORJ
'LYHUJHQFH
8VLQJWKHGLDORJ
'LYHUJHQFH
51
1MRS751903-MEN
Tutorial
)LJ 6)&QHWZRUNZLWKDQDOWHUQDWLYHEUDQFK
For inserting alternative branches you can also use the SFC branch edit mode.
The SFC branch edit mode is described in the context-sensitive help for Relay
Configuration Tool.
8.7.
52
ABB Automation
1MRS751903-MEN
8. Editing in SFC
)LJ 'LDORJ
'LYHUJHQFH
8VLQJWKHGLDORJ
'LYHUJHQFH
)LJ 6)&QHWZRUNZLWKDQDOWHUQDWLYHDQGDVLPXOWDQHRXVEUDQFK
For inserting simultaneous branches you can also use the SFC branch edit mode.
The SFC branch edit mode is described in the context-sensitive help for Relay
Configuration Tool.
8.8.
ABB Automation
53
1MRS751903-MEN
Tutorial
1RZLWLV\RXUWXUQ
&RQQHFWLQJYDULDEOHVWRDFWLRQVZLWKWKHPRXVH
1. Do a right mouse double click on the action block A006. The dialog Action
appears.
&RQQHFWLQJYDULDEOHVWRDFWLRQVZLWKWKHNH\ERDUG
1. Press the cursor keys to go to the position of action block A006.
2. Press <SPACE> to mark the action block.
3. Press <ALT> + < >. The dialog Action appears.
)LJ 'LDORJ
$FWLRQ
8VLQJWKHGLDORJ
$FWLRQ
54
ABB Automation
1MRS751903-MEN
8. Editing in SFC
8
)LJ $FWLRQEORFNZLWKYDULDEOHQDPH
8.9.
)LJ 'LDORJ
7UDQVLWLRQ
ABB Automation
55
1MRS751903-MEN
Tutorial
8VLQJWKHGLDORJ
7UDQVLWLRQ
)LJ 7UDQVLWLRQZLWKDJUHHQFRQQHFWLRQSRLQW
,QVHUWLQJWKHYDULDEOHZLWKWKHPRXVH
1. Do a left mouse click on the transition to mark it.
2. Do a left mouse click on the transition to mark it. The dialog Variable
appears.
,QVHUWLQJWKHYDULDEOHZLWKWKHNH\ERDUG
1. Press the cursor keys to go to the position of the transition.
2. Press <SPACE> to mark it. The dialog Variable appears.
)LJ 'LDORJ
9DULDEOH
56
ABB Automation
1MRS751903-MEN
8. Editing in SFC
8VLQJWKHGLDORJ
9DULDEOH
)LJ 9DULDEOHFRQQHFWHGWRDWUDQVLWLRQ
Instead of variables also networks in one of the other graphical programming
languages can be connected to transitions being a direct connection. In those cases
just insert the objects you want to have as it is described in the chapter Editing in
FBD on page 41 and connect them to the connection point of the transition. Do not
forget to declare the instance of the function block in the variable declaration of the
POU as it is described in the chapter Declaring variables and user defined data
types on page 35.
8.10.
ABB Automation
57
1MRS751903-MEN
Tutorial
1RZLWLV\RXUWXUQ
,QVHUWLQJDFWLRQGHWDLOVLQWKH6)&QHWZRUNZLWKWKHPRXVH
1. Do a right mouse double click on the action block A005. The dialog Action
appears.
,QVHUWLQJDFWLRQGHWDLOVLQWKH6)&QHWZRUNZLWKWKHNH\ERDUG
1. Press the cursor keys to go to the position of the action block A005.
2. Press <SPACE> to mark the action. The dialog Action appears.
)LJ 'LDORJ
$FWLRQ
8VLQJWKHGLDORJ
$FWLRQ
8.11.
58
ABB Automation
1MRS751903-MEN
8.12.
8. Editing in SFC
)LJ 'LDORJ
5HOD\&RQILJXUDWLRQ7RROHGLWRUQDPH
IRUZRUNVKHHW
6)&B352*
8VLQJWKHGLDORJ
5HOD\&RQILJXUDWLRQ7RROeditor name
1. Press the button Yes to exit the worksheet with saving the changes.
2. Press the button No to exit the worksheet without saving the changes.
ABB Automation
59
60
1MRS751903-MEN
Tutorial
ABB Automation
1MRS751903-MEN
9.
9. Editing in IL
Editing in IL
7KLVFKDSWHUSURYLGHVLQIRUPDWLRQDERXW
9.1.
)LJ ,/HGLWRU
ABB Automation
61
Tutorial
9.2.
Editing instructions
1MRS751903-MEN
%IX2.2
(*input value*)
ADD value
(*add value*)
ST
(*result of addition*)
%QX2.2
)LJ ,/'LDORJ
2. Enter or choose <LD> in the field 'Operator'.
3. Enter <start> as the name of a variable in the field 'Operand'.
62
ABB Automation
1MRS751903-MEN
9. Editing in IL
9
)LJ :RUNVKHHW
,/B)%
ZLWKDQH[DPSOHRIDQLQVWUXFWLRQOLVW
If you do not want to use the input dialog you can also enter your instructions
just typing them.
9.3.
value1
EQ
INT#100
JMPC label
LD
value2
ADD value3
ST
value4
label: LD %IX2.2
In the example, a jump from the last line to the first line is done if var2 is true.
9.4.
ABB Automation
63
1MRS751903-MEN
Tutorial
function name inpar2, inpar3
ST var1
The input parameter, which is declared at first in the variable declaration, has to be
loaded in the first line of the function call. In the example, the first input parameter
is inpar1. All other input parameters have to be used in the second line as operands
separated by commas. The result is stored to the variable var1 as it is shown in the
last line of the example.
This way either standard functions or user defined functions can be called.
)XQFWLRQEORFNV can be called using the operator CAL and the name of the function
block in the operand field. Calling a function block needs more typing effort than
calling a function. For the next section, let us imagine a function block with two
input parameters inpar1 and inpar2 and two output parameters outpar1 and outpar2.
The function block is called FB_exam. Its instance name is instance.
A function block call consists of three parts: input parameter introduction, the proper
call and calculating the output parameters. A call of the function block using the
instance name FB_exam is shown in the following example:
LD
var1
ST
FB_exam.inpar1
LD
var2
ST
FB_exam.inpar2
CAL FB_exam
ST
FB_exam.outpar1
ST
var3
LD
FB_exam.outpar2
ST
var4
The proper function block call is composed of the operator CAL and the instance
name of the function block.
Do not forget to declare the instance of the function block in the variable
declaration of the POU as it is described in the chapter Declaring variables and user
defined data types on page 35.
9.5.
64
ABB Automation
1MRS751903-MEN
9. Editing in IL
6DYLQJWKHFKDQJHVRIWKHFXUUHQWZRUNVKHHWZLWKWKHNH\ERDUG
1. Press <CTRL> + <S>. The worksheet is saved.
9.6.
)LJ 'LDORJ
5HOD\&RQILJXUDWLRQ7RROHGLWRUQDPH
IRUZRUNVKHHW,/B)%
8VLQJWKHGLDORJ
5HOD\&RQILJXUDWLRQ7RROeditor name
1. Press the button Yes to exit the worksheet with saving the changes.
2. Press the button No to exit the worksheet without saving the changes.
ABB Automation
65
66
1MRS751903-MEN
Tutorial
ABB Automation
1MRS751903-MEN
10.
10. Compiling
Compiling
7KLVFKDSWHUSURYLGHVLQIRUPDWLRQDERXW
Inserting configurations, resources and tasks in the project tree.
Assigning programs to tasks.
Compiling the project.
10.1.
10
,QVHUWLQJDQHZUHVRXUFHZLWKWKHNH\ERDUG
1. Press < > or < > to mark the icon 'Resource name' in the project tree.
2. Press <INS>. The dialog 'Insert' appears.
)LJ 'LDORJ
,QVHUW
The easiest way to insert new configurations or tasks is just marking the
corresponding icon in the project tree and then repeating the same steps as described
above.
ABB Automation
67
Tutorial
10.2.
1MRS751903-MEN
If you have inserted a new resource, you have to insert one or several tasks. For the
next steps, let us assume that you have inserted the task DEFAULT in res_2,
following the steps described above.
The next step to be done before compiling is to associate programs to tasks. This
means deciding in which task a program is processed.
1RZLWLV\RXUWXUQ
$VVRFLDWLQJDSURJUDPWRDWDVNZLWKWKHPRXVH
1. Do a left mouse click on the icon of the task in the project tree.
2. Do a left mouse click on the icon Insert in the toolbar. The dialog
Insert appears.
$VVRFLDWLQJDSURJUDPWRDWDVNZLWKWKHNH\ERDUG
1. Press < > or < > to mark the icon of the task in the project tree.
2. Press <INS>. The dialog Insert appears.
)LJ 'LDORJ
,QVHUW
8VLQJWKHGLDORJ
,QVHUW
10.3.
68
ABB Automation
1MRS751903-MEN
10. Compiling
The other possibilities are described in the context-sensitive help for Relay
Configuration Tool.
1RZLWLV\RXUWXUQ
&RPSLOLQJWKHFKDQJHVZLWKWKHPRXVH
1. Do a left mouse click on the icon Make in the toolbar. The working box for
compiling appears.
&RPSLOLQJWKHFKDQJHVZLWKWKHNH\ERDUG
1. Press <ALT> + <M>. The submenu Make is opened.
2. Press <M>. The working box for compiling appears.
)LJ :RUNLQJER[IRUFRPSLOLQJ
The compilation process is done in several phases, which can be seen in the working
box. In the figure above the phase of the POU linker is shown.
If the compilation process has been finished without detecting programming errors,
the working box disappears and in the statusbar the message Code generation
successful is displayed.
In most cases while compiling for a first time, the different compilers detect
programming errors, such as a variable name, which has been used twice or typing
errors. In those cases a message box with the number of detected errors appears. If
you confirm the message box the user error list is displayed on your screen as it is
shown in the following figure:
)LJ 8VHUHUURUOLVWZLWKVRPHHUURUPHVVDJHV
In most cases you can do a left mouse double click on the error in the user error list
to go directly into the worksheet where the programming error occurred. The line or
the object with the programming error is marked. You can also mark the error and
press <F1> to get the corresponding help topic, with information about the cause of
the error and what steps have to be done now.
ABB Automation
69
10
1MRS751903-MEN
Tutorial
Having corrected the first error you can press <F7> to go directly to the worksheet
with the next error.
70
ABB Automation
1MRS751903-MEN
11.
11.1.
ABB Automation
11
71
1MRS751903-MEN
Tutorial
)LJ 3DJHOD\RXWHGLWRUZLWKGHIDXOWSDJHOD\RXW
The pagelayout editor is normally opened with the default pagelayout. If you have
already assigned a pagelayout to the active window, the assigned pagelayout is
opened.
11.2.
72
ABB Automation
1MRS751903-MEN
11
)LJ 3DJHOD\RXWHGLWRUZLWKDQHZSDJHOD\RXW
11.3.
ABB Automation
73
1MRS751903-MEN
Tutorial
)LJ 3DJHOD\RXWZLWKWKHQHZVRXUFHDUHD
In Relay Configuration Tool, it is possible to insert more different objects on your
pagelayout, such as rectangles, lines or texts. For the next steps let us imagine that
you want to insert a horizontal line at the bottom of the page.
1RZLWLV\RXUWXUQ
,QVHUWLQJDOLQHZLWKWKHPRXVH
1. Do a left mouse click on the icon Line in the toolbar. A line is added
to the shape of the cursor.
2. Press the left mouse button and keep it pressed.
3. Move the mouse drawing a line.
4. Release the mouse button. The line is drawn.
,QVHUWLQJDOLQHZLWKWKHNH\ERDUG
1.
2.
3.
4.
74
ABB Automation
1MRS751903-MEN
11
)LJ 3DJHOD\RXW
XQWLWOHG
ZLWKVRXUFHDUHDDQGRQHOLQH
The ways how rectangles, texts and bitmaps can be inserted in the pagelayout are
described in the context-sensitive help for Relay Configuration Tool.
11.4.
ABB Automation
75
1MRS751903-MEN
Tutorial
2. Press the cursor keys to go to the position where you want to insert the
environment item.
3. Press <SPACE>. The dialog Settings Environment Text appears.
)LJ 'LDORJ
6HWWLQJV(QYLURQPHQW7H[W
LWHPV
8VLQJWKHGLDORJ
6HWWLQJV(QYLURQPHQW7H[W
IRUHGLWLQJHQYLURQPHQW
)LJ 'LDORJ
(QYLURQPHQWVHWWLQJ
8VLQJWKHGLDORJ
(QYLURQPHQWVHWWLQJ
1. Press the button Add. The line above the list box is activated.
76
ABB Automation
1MRS751903-MEN
2.
3.
4.
5.
11
)LJ 'LDORJ
6HWWLQJV(QYLURQPHQW7H[W
ZLWKWKHQHZLWHP
8VLQJWKHGLDORJ
6HWWLQJV(QYLURQPHQW7H[W
IRULQVHUWLQJWKHLWHP
1. Press the button Font... to choose a new font or fontsize if you want.
2. Confirm the dialog. The placeholder with the name of the item is inserted in the
pagelayout.
Your screen should look like the following figure:
ABB Automation
77
1MRS751903-MEN
Tutorial
)LJ 3DJHOD\RXW
XQWLWOHG
ZLWKWKHQHZHQYLURQPHQWLWHP
The system items and more possibilities how to modify or delete existing items
are explained in the context-sensitive help for Relay Configuration Tool.
To view the contents of the placeholder you can use preview. Preview and the
way how to use it is explained in the context-sensitive help.
11.5.
78
ABB Automation
1MRS751903-MEN
11.6.
)LJ 'LDORJ
5HOD\&RQILJXUDWLRQ7RROHGLWRUQDPH
IRUSDJHOD\RXWHU
11
8VLQJWKHGLDORJ
5HOD\&RQILJXUDWLRQ7RROeditor name
1. Press the button Yes to exit the worksheet with saving the changes.
2. Press the button No to exit the worksheet without saving the changes.
11.7.
ABB Automation
79
1MRS751903-MEN
Tutorial
)LJ 'LDORJ
3URSHUWLHV
IRUWKHZRUNVKHHW
,/B)%
8VLQJWKHGLDORJ
3URSHUWLHV
IRUDVVLJQLQJDSDJHOD\RXW
1. Press Print Options.... The dialog Print Options appears.
)LJ 'LDORJ
3ULQW2SWLRQV
8VLQJWKHGLDORJ
3ULQW2SWLRQV
11.8.
80
ABB Automation
1MRS751903-MEN
of the active window, e.g. a worksheet in the graphic editor or the project tree in the
project tree editor, or you can print whole POUs or the whole project.
It is not possible to print libraries.
1RZLWLV\RXUWXUQ
3ULQWLQJWKHFRQWHQWRIWKHDFWLYHZLQGRZZLWKWKHPRXVH
1. Make sure that the project tree editor is the active window.
2. Choose the menu item Print in the submenu File. The project tree is printed.
3ULQWLQJWKHFRQWHQWRIWKHDFWLYHZLQGRZZLWKWKHNH\ERDUG
1. Make sure that the project tree editor is the active window.
2. Press <ALT> + <F>. The submenu File is opened.
3. Press <P>. The project tree is printed.
To print the contents of worksheets just make sure that the corresponding
worksheet is the active window and choose the menu item Print in the submenu
File.
For printing a whole POU or project, you have to do different steps. For the next
section, let us assume that you want to print all worksheets of one POU.
1RZLWLV\RXUWXUQ
3ULQWLQJDOOZRUNVKHHWVRIRQH328ZLWKWKHPRXVH
1. Do a left mouse click on the icon of the POU to mark it.
2. Choose the menu item Print Project... in the submenu File. Choose the menu
item Print Project... in the submenu File.
3ULQWLQJDOOZRUNVKHHWVRIRQH328ZLWKWKHNH\ERDUG
1. Press < > or < > to mark the icon of the POU.
2. Press <ALT> + <F>. The submenu File is opened.
3. Press <J>. The dialog Print Project appears.
ABB Automation
81
11
1MRS751903-MEN
Tutorial
)LJ 'LDORJ
3ULQW3URMHFW
8VLQJWKHGLDORJ
3ULQW3URMHFW
82
ABB Automation
1MRS751903-MEN
12.
12.1.
12
)LJ 'LDORJ
=LS8Q]LS3URMHFW
ABB Automation
83
1MRS751903-MEN
Tutorial
8VLQJWKHGLDORJ
=LS8Q]LS3URMHFW
1.
2.
3.
4.
5.
6.
7.
12.2.
)LJ 'LDORJ
=LS8Q]LS3URMHFW
8VLQJWKHGLDORJ
=LS8Q]LS3URMHFW
ABB Automation
1MRS751903-MEN
12
ABB Automation
85
86
1MRS751903-MEN
Tutorial
ABB Automation
1MRS751903-MEN
Index
Index
Page
$
ABS ............................................................................................................................... 11
Action ......................................................................................................................48, 53
'HWDLO .......................................................................................................................... 57
4XDOLILHU ..................................................................................................................... 53
Action block ..................................................................................................... 14, 48, 49
Active step ..................................................................................................................... 48
ADD .............................................................................................................................. 11
Alternative branch in SFC ............................................................................................. 51
AND .............................................................................................................................. 11
Announcing a library ..................................................................................................... 33
ANY_BIT ...................................................................................................................... 12
ANY_REAL .................................................................................................................. 12
Archive file ..............................................................................................................83, 84
Arithmetic functions ...................................................................................................... 11
Array .............................................................................................................................. 13
Associating programs to tasks ....................................................................................... 68
%
B, see size prefix ........................................................................................................... 36
Bistable function blocks ................................................................................................ 11
BIT ................................................................................................................................. 12
Bit-string functions ........................................................................................................ 11
BOOL ............................................................................................................................ 12
&
CAL ............................................................................................................................... 64
Calling
)XQFWLRQVDQGIXQFWLRQEORFNVLQ,/ ........................................................................... 63
*UDSKLFHGLWRU)%' ................................................................................................... 41
*UDSKLFHGLWRU6)& .................................................................................................... 47
3DJHOD\RXWHGLWRU ....................................................................................................... 71
7H[WHGLWRU,/ .............................................................................................................. 61
Changing
3URSHUWLHV328 .......................................................................................................... 30
6WHSV ........................................................................................................................... 50
Closed loop .................................................................................................................... 48
Code body part .............................................................................................................. 12
Code body worksheet .................................................................................................... 17
Comment
)%' ............................................................................................................................ 13
,/ ..........................................................................................................................13, 61
6)& ............................................................................................................................. 14
Comparison functions .................................................................................................... 11
Compiling ...................................................................................................................... 68
(UURUV ......................................................................................................................... 69
0DNH ........................................................................................................................... 68
8VHUHUURUOLVW ............................................................................................................. 69
:RUNLQJER[ ............................................................................................................... 69
Configuration ................................................................................................................. 18
,(& ................................................................................................................. 10
ABB Automation
1MRS751903-MEN
Tutorial
,QVHUW .......................................................................................................................... 67
Configuration elements ................................................................................................. 17
,(& ................................................................................................................... 9
Connecting
2EMHFWVLQ)%' .......................................................................................................... 43
9DULDEOHVLQ6)& .................................................................................................. 53, 55
:LWKGUDJ GURS ....................................................................................................... 43
:LWKWKHFRQQHFWLRQPRGH .......................................................................................... 45
Context-sensitive help ................................................................................................... 23
*HQHUDOKHOS .............................................................................................................. 23
6SHFLILFKHOS ............................................................................................................... 23
8VLQJKHOS .................................................................................................................. 23
Counter function blocks ................................................................................................ 11
Creating
3DJHOD\RXW ................................................................................................................. 72
CTD ............................................................................................................................... 11
CTU ............................................................................................................................... 11
Cyclic task
,(& ................................................................................................................. 10
'
D, see size prefix ........................................................................................................... 36
Data types ..........................................................................................................12, 16, 26
$UUD\ .......................................................................................................................... 13
'HFODUDWLRQ ................................................................................................................ 13
(QXPHUDWHG ................................................................................................................ 13
6WUXFWXUH ..................................................................................................................... 13
6XEUDQJH .................................................................................................................... 13
:RUNVKHHW ................................................................................................................... 16
DATE ............................................................................................................................ 12
Declaration part ............................................................................................................. 12
Declaring
*OREDOYDULDEOH .......................................................................................................... 37
/RFDWLRQRIYDULDEOHV ................................................................................................. 36
9DULDEOHNH\ZRUGV ...................................................................................................... 36
Default
3DJHOD\RXW ................................................................................................................. 72
3ULQWZLWKGHIDXOWSDJHOD\RXW .................................................................................... 79
Deleting
/LEUDULHV .................................................................................................................... 34
328V .......................................................................................................................... 34
:RUNVKHHWV ................................................................................................................. 34
Derived data types ......................................................................................................... 12
Description worksheet ................................................................................................... 16
Detail .................................................................................................................14, 48, 57
Dialog Relay Configuration Tool
(GLWRUQDPH ..................................................................................................46, 59, 65
Dialog Relay Configuration Tool log-in .................................................................... 29
Dialog Action ....................................................................................................... 54, 58
Dialog Announce library ............................................................................................ 33
Dialog Declaration of variables and FB instances ..................................................... 38
Dialog Divergence ................................................................................................ 51, 53
Dialog Environment setting ........................................................................................ 76
Dialog Insert ......................................................................................................... 32, 68
Dialog Print Options ................................................................................................... 80
ABB Automation
1MRS751903-MEN
Index
(
Edge detection function blocks ..................................................................................... 11
Editing
)%' ............................................................................................................................ 41
,/ ................................................................................................................................ 61
3DJHOD\RXW ................................................................................................................. 73
6)& ............................................................................................................................. 47
Editing in FBD .............................................................................................................. 41
Editor
&DOOWKHJUDSKLFHGLWRU)%' ...................................................................................... 41
&DOOWKHJUDSKLFHGLWRU6)& ....................................................................................... 47
&DOOWKHWH[WHGLWRU,/ ................................................................................................. 61
*UDSKLFHGLWRU ............................................................................................................ 26
3DJHOD\RXWHGLWRU ....................................................................................................... 26
3URMHFWWUHHHGLWRU ...................................................................................................... 25
7H[WHGLWRUV ................................................................................................................. 26
7\SHVRIHGLWRUV .......................................................................................................... 25
Elementary data types ................................................................................................... 12
Enumerated data types ................................................................................................... 13
Environment item ....................................................................................................26, 75
Error task
,(& ................................................................................................................. 10
Errors while compiling .................................................................................................. 69
Event task
,(& ................................................................................................................. 10
Exiting
3DJHOD\RXWHGLWRU ....................................................................................................... 79
5HOD\&RQILJXUDWLRQ7RRO ........................................................................................... 27
:RUNVKHHW .............................................................................................................45, 65
)
F_TRIG ......................................................................................................................... 11
FBD .........................................................................................................................13, 26
&DOOHGLWRU .................................................................................................................. 41
&RQQHFW ...................................................................................................................... 43
&RQQHFWREMHFWV .......................................................................................................... 43
,QVHUWIXQFWLRQVDQGIXQFWLRQEORFNV .......................................................................... 42
,QVHUWYDULDEOH ............................................................................................................ 42
1HWZRUN ................................................................................................................13, 43
Firmware data types ...................................................................................................... 16
Formal parameter ....................................................................................................43, 63
Function
ABB Automation
1MRS751903-MEN
Tutorial
,(& ................................................................................................................. 10
,QVHUW .......................................................................................................................... 42
7\SHVRIIXQFWLRQV ...................................................................................................... 11
Function block
,(& ................................................................................................................. 11
,QVHUW .......................................................................................................................... 42
,QWHUQDOPHPRU\ ......................................................................................................... 11
Function block diagram, see FBD ................................................................................. 13
*
General help .................................................................................................................. 23
Generic data types ......................................................................................................... 12
Global variable ........................................................................................................ 36, 37
Graphic editor ............................................................................................................... 26
(GLW)%' .................................................................................................................... 41
(GLW6)& ..................................................................................................................... 47
Graphical programming language ................................................................................. 13
+
Help function, see context-sensitive help ..................................................................... 23
,
I, see location prefix ...................................................................................................... 36
I/O configuration ........................................................................................................... 26
Icon Data types ........................................................................................................... 33
Icon Delete ................................................................................................................. 34
Icon Environment items ............................................................................................. 75
Icon Insert branch ................................................................................................. 51, 52
Icon Insert function/function block ............................................................................ 42
Icon Insert step/transition ..................................................................................... 48, 49
Icon Insert variable ..................................................................................................... 43
Icon Insert ................................................................................................ 31, 33, 67, 68
Icon Library name ...................................................................................................... 34
Icon Library ................................................................................................................ 33
Icon Line ..................................................................................................................... 74
Icon Logical POU ....................................................................................................... 31
Icon Program name .................................................................................................... 30
Icon Resource name ................................................................................................... 67
Icon Save ........................................................................................................45, 64, 78
Icon save ..................................................................................................................... 58
Icon Source area ......................................................................................................... 73
Icon Variable declaration ............................................................................................ 37
Icon Worksheet in FBD ........................................................................................ 33, 41
Icon Worksheet in IL ............................................................................................ 33, 61
Icon Worksheet in SFC ............................................................................................... 33
IEC 1131 ......................................................................................................................... 9
IEC 1131-3
&RQILJXUDWLRQ ............................................................................................................. 10
&RQILJXUDWLRQHOHPHQWV ................................................................................................ 9
'DWDW\SHV .................................................................................................................. 12
)%' ............................................................................................................................ 13
)XQFWLRQ ..................................................................................................................... 10
)XQFWLRQEORFNV .......................................................................................................... 11
,/ ................................................................................................................................ 13
ABB Automation
1MRS751903-MEN
Index
,QVWDQWLDWLRQ ............................................................................................................... 11
328 ........................................................................................................................... 10
328W\SHV .................................................................................................................. 10
3URJUDP ..................................................................................................................... 11
3URJUDPPLQJODQJXDJH ............................................................................................. 13
5HVRXUFH ..................................................................................................................... 10
6)& ............................................................................................................................. 14
6WDQGDUGIXQFWLRQEORFNV ............................................................................................ 11
6WDQGDUGIXQFWLRQV ...................................................................................................... 11
7DVN ............................................................................................................................ 10
7DVNW\SHV ................................................................................................................... 10
9DULDEOHV ..................................................................................................................... 12
IL .............................................................................................................................13, 26
&DOOIXQFWLRQEORFNV ................................................................................................... 64
&DOOIXQFWLRQV ............................................................................................................. 63
(GLW ............................................................................................................................. 61
(GLWRU ......................................................................................................................... 61
,QVWUXFWLRQ .................................................................................................................. 13
-XPS ........................................................................................................................... 63
/DEHO ........................................................................................................................... 63
Initial step ................................................................................................................48, 49
&KDQJH ....................................................................................................................... 50
Initial value .................................................................................................................... 36
Inserting
$OWHUQDWLYHEUDQFKLQ6)& ......................................................................................... 51
%LWPDSLQSDJHOD\RXW ................................................................................................. 75
&RQILJXUDWLRQ ............................................................................................................. 67
(QYLURQPHQWLWHPLQSDJHOD\RXW ................................................................................ 75
)XQFWLRQ ..................................................................................................................... 42
)XQFWLRQEORFN ............................................................................................................ 42
/LQHLQSDJHOD\RXW ...................................................................................................... 74
328 ........................................................................................................................... 31
5HFWDQJOHLQSDJHOD\RXW ............................................................................................. 75
5HVRXUFH ..................................................................................................................... 67
6)&QHWZRUN ............................................................................................................... 48
6LPXOWDQHRXVEUDQFKLQ6)& ...................................................................................... 52
6RXUFHDUHDLQSDJHOD\RXW .......................................................................................... 73
6WHS ............................................................................................................................. 49
6\VWHPLWHPLQSDJHOD\RXW .......................................................................................... 75
7DVN ............................................................................................................................ 67
7H[WLQSDJHOD\RXW ...................................................................................................... 75
7UDQVLWLRQ ................................................................................................................... 49
9DULDEOHLQ)%' ......................................................................................................... 42
:RUNVKHHWV .................................................................................................................. 32
Instance ....................................................................................................................11, 38
Instance name ..........................................................................................................12, 38
Instantiation ................................................................................................................... 38
,(& ................................................................................................................. 11
Instruction
(GLW ............................................................................................................................. 61
([DPSOH ...................................................................................................................... 62
,/ ................................................................................................................................ 13
0RGLILHU ...................................................................................................................... 61
2SHUDQG ..................................................................................................................... 61
2SHUDWRU ..................................................................................................................... 61
ABB Automation
1MRS751903-MEN
Tutorial
JMP ............................................................................................................................... 63
Jump .............................................................................................................................. 63
,/ ................................................................................................................................ 13
.
Keyboard ....................................................................................................................... 19
6KRUWFXWV .................................................................................................................... 22
/
L, see size prefix ........................................................................................................... 36
Label .............................................................................................................................. 63
,/ ................................................................................................................................ 13
Language element ......................................................................................................... 10
LD ................................................................................................................................. 26
Library ........................................................................................................................... 15
$QQRXQFH ................................................................................................................... 33
$QQRXQFHG ................................................................................................................. 16
'HOHWH ......................................................................................................................... 34
Line
3DJHOD\RXW ................................................................................................................. 74
Local
9DULDEOH ...................................................................................................................... 36
Location ........................................................................................................................ 36
3UHIL[ .......................................................................................................................... 36
LOG .............................................................................................................................. 11
0
M, see location prefix .................................................................................................... 36
Main screen ............................................................................................................. 19, 22
Making a backup of your project files .......................................................................... 83
Manufacturer defined data types ................................................................................... 13
Menu ....................................................................................................................... 19, 20
6XEPHQX(GLW ............................................................................................................. 20
6XEPHQX)LOH ............................................................................................................. 20
6XEPHQX+HOS ............................................................................................................ 21
6XEPHQX/D\RXW ......................................................................................................... 20
6XEPHQX0DNH ........................................................................................................... 21
6XEPHQX2EMHFW ......................................................................................................... 20
6XEPHQX2QOLQH ......................................................................................................... 21
6XEPHQX6HOHFWLRQ ..................................................................................................... 20
6XEPHQX:LQGRZ ....................................................................................................... 21
Modifier
,/ .......................................................................................................................... 13, 61
Mouse ............................................................................................................................ 19
MUL .............................................................................................................................. 11
ABB Automation
1MRS751903-MEN
Index
1
N, see qualifier .............................................................................................................. 53
Network
)%' ......................................................................................................................13, 43
,QVHUW6)&QHWZRUN .................................................................................................... 48
6)& ............................................................................................................................. 48
Numerical functions ...................................................................................................... 11
2
Operand
,/ ..........................................................................................................................13, 61
Operator
,/ ..........................................................................................................................13, 61
3
Pagelayout
'HIDXOW ........................................................................................................................ 72
Pagelayout Editor
&DOO ............................................................................................................................. 71
Pagelayout editor ........................................................................................................... 26
&UHDWHSDJHOD\RXW ...................................................................................................... 72
(GLW ............................................................................................................................. 73
(QYLURQPHQWLWHP ....................................................................................................... 26
([LW ............................................................................................................................. 79
,QVHUWDELWPDS ........................................................................................................... 75
,QVHUWDOLQH ................................................................................................................ 74
,QVHUWDUHFWDQJOH ....................................................................................................... 75
,QVHUWDVRXUFHDUHD .................................................................................................... 73
,QVHUWDV\VWHPLWHP .................................................................................................... 75
,QVHUWDWH[W ................................................................................................................. 75
,QVHUWDQHQYLURQPHQWLWHP ......................................................................................... 75
6DYH ............................................................................................................................ 78
POU ............................................................................................................................... 16
&KDQJHSURSHUWLHV ...................................................................................................... 30
'HOHWH ......................................................................................................................... 34
,(& ................................................................................................................. 10
,QVHUW .......................................................................................................................... 31
3ULQW ........................................................................................................................... 80
7\SHV,(& ....................................................................................................... 10
Preview .......................................................................................................................... 26
Printing .......................................................................................................................... 80
:LWKGHIDXOWSDJHOD\RXW ............................................................................................. 79
Program
$VVRFLDWHWRWDVN ......................................................................................................... 68
,(& ................................................................................................................. 11
,QWHUQDOPHPRU\ ......................................................................................................... 11
Program modules ........................................................................................................... 10
Program organization unit, see POU ............................................................................. 10
Programming language .................................................................................................. 13
)%' ............................................................................................................................ 13
*UDSKLFDO ................................................................................................................... 13
JUDSKLFDO .................................................................................................................... 13
,/ ................................................................................................................................ 13
6)& ............................................................................................................................. 14
7H[WXDO ........................................................................................................................ 13
ABB Automation
1MRS751903-MEN
Tutorial
Project ........................................................................................................................... 15
&RPSLOH ...................................................................................................................... 68
3ULQW ........................................................................................................................... 80
8Q]LS .......................................................................................................................... 84
=LS .............................................................................................................................. 83
Project files ................................................................................................................... 83
Project tree .................................................................................................................... 15
&RGHERG\ZRUNVKHHW ................................................................................................. 17
&RQILJXUDWLRQHOHPHQWV .............................................................................................. 17
'HVFULSWLRQZRUNVKHHW ............................................................................................... 16
,QVHUWFRQILJXUDWLRQ ................................................................................................... 67
,QVHUWOLEUDU\VHHDQQRXQFLQJDOLEUDU\ .................................................................... 33
,QVHUW328 ................................................................................................................. 31
,QVHUWUHVRXUFH ........................................................................................................... 67
,QVHUWWDVN ................................................................................................................... 67
,QVHUWZRUNVKHHW ......................................................................................................... 32
328 ........................................................................................................................... 16
3ULQW ........................................................................................................................... 80
6XEWUHH ....................................................................................................................... 15
6XEWUHH'DWDW\SHV ............................................................................................ 16, 25
6XEWUHH/LEUDU\ ................................................................................................. 16, 25
6XEWUHH/RJLFDO328V ....................................................................................... 16, 25
6XEWUHH3K\VLFDO+DUGZDUH ............................................................................... 17, 26
9DULDEOHZRUNVKHHW ..................................................................................................... 17
:RUNVKHHW ................................................................................................................... 16
Project tree editor .......................................................................................................... 25
4
Q, see location prefix .................................................................................................... 36
Qualifier
6)& ...................................................................................................................... 48, 53
5
R, see qualifier .............................................................................................................. 53
R_TRIG ......................................................................................................................... 11
Relay Configuration Tool
([LW ............................................................................................................................. 27
Resource ........................................................................................................................ 18
,(& ................................................................................................................. 10
,QVHUW .......................................................................................................................... 67
RS .................................................................................................................................. 11
6
S, see qualifier ............................................................................................................... 53
Saving ......................................................................................................... 45, 58, 64, 78
SEL ................................................................................................................................ 11
Selection functions ........................................................................................................ 11
Sequential function chart, see SFC ............................................................................... 14
SFC .......................................................................................................................... 14, 26
$FWLRQEORFN ............................................................................................................... 14
$OWHUQDWLYHEUDQFK ..................................................................................................... 51
&KDQJHQHWZRUN ......................................................................................................... 50
'HWDLO ................................................................................................................... 14, 57
,QVHUWQHWZRUN ............................................................................................................ 48
ABB Automation
1MRS751903-MEN
Index
,QVHUWVWHS ................................................................................................................... 49
,QVHUWWUDQVLWLRQ .......................................................................................................... 49
1HWZRUN ...................................................................................................................... 48
6)&EUDQFKHGLWPRGH ..........................................................................................52, 53
6LPXOWDQHRXVEUDQFK .................................................................................................. 52
6WHS .......................................................................................................................14, 48
7UDQVLWLRQ .............................................................................................................14, 48
7UDQVLWLRQFRQGLWLRQ ................................................................................................... 14
SHL ............................................................................................................................... 11
Shortcuts ........................................................................................................................ 22
Simultaneous branch in SFC ......................................................................................... 52
Size prefix ...................................................................................................................... 36
Source area .................................................................................................................... 73
Specific help .................................................................................................................. 23
SR .................................................................................................................................. 11
ST .................................................................................................................................. 26
Status bar .................................................................................................................21, 22
Step ..........................................................................................................................14, 48
&KDQJHSURSHUWLHV ...................................................................................................... 50
,QVHUW .......................................................................................................................... 49
Structures ....................................................................................................................... 13
Submenu
(GLW ............................................................................................................................. 20
)LOH ............................................................................................................................. 20
+HOS ............................................................................................................................ 21
/D\RXW ......................................................................................................................... 20
0DNH ........................................................................................................................... 21
2EMHFW ......................................................................................................................... 20
2QOLQH ......................................................................................................................... 21
6HOHFWLRQ ..................................................................................................................... 20
:LQGRZ ....................................................................................................................... 21
Subrange ........................................................................................................................ 13
Subtree ........................................................................................................................... 15
Subtree Data types ....................................................................................................... 25
Subtree data types ....................................................................................................... 16
Subtree Library .....................................................................................................16, 25
Subtree Logical POUs ..........................................................................................16, 25
Subtree Physical Hardware ...................................................................................17, 26
System item ................................................................................................................... 75
7
Task ................................................................................................................................ 18
$VVRFLDWHDSURJUDP .................................................................................................. 68
,(& ................................................................................................................. 10
,QVHUW .......................................................................................................................... 67
7\SHV,(& ....................................................................................................... 10
Text editor
(GLW,/ ........................................................................................................................ 61
Text editors .................................................................................................................... 26
Textual programming language ..................................................................................... 13
Time scheduling ............................................................................................................ 10
Timer function blocks .................................................................................................... 11
TOF ................................................................................................................................ 11
TON ............................................................................................................................... 11
ABB Automation
1MRS751903-MEN
Tutorial
8
Unzipping ...................................................................................................................... 84
User defined data types ........................................................................................... 13, 16
User error list ................................................................................................................ 69
User interface ................................................................................................................ 19
Using help ..................................................................................................................... 23
Using the keyboard ....................................................................................................... 19
Using the mouse ............................................................................................................ 19
9
VAR ............................................................................................................................... 36
VAR_EXTERNAL .................................................................................................. 36, 37
VAR_GLOBAL ....................................................................................................... 36, 37
VAR_IN_OUT .............................................................................................................. 37
VAR_INPUT ................................................................................................................. 37
VAR_OUTPUT ............................................................................................................. 37
Variable ......................................................................................................................... 12
'HFODUDWLRQ ................................................................................................................ 26
*OREDO ........................................................................................................................ 36
,QVHUWLQ)%' ............................................................................................................. 42
/RFDO .......................................................................................................................... 36
:RUNVKHHW ................................................................................................................... 17
Variable declaration ....................................................................................................... 12
([DPSOH ..................................................................................................................... 12
*OREDOYDULDEOH .......................................................................................................... 37
,QVWDQWLDWLRQ ............................................................................................................... 38
.H\ZRUGV ................................................................................................................... 36
/RFDWLRQ ..................................................................................................................... 36
/RFDWLRQSUHIL[ ........................................................................................................... 36
6L]HSUHIL[ ................................................................................................................... 36
7\SHV .......................................................................................................................... 36
:
W, see size prefix .......................................................................................................... 36
WORD .......................................................................................................................... 12
Working box for compiling ........................................................................................... 69
Worksheet ...................................................................................................................... 16
&RGHERG\ .................................................................................................................. 30
'HOHWH ......................................................................................................................... 34
'HVFULSWLRQ ................................................................................................................ 30
([LW .................................................................................................................45, 59, 65
,QVHUW .......................................................................................................................... 32
3ULQW ........................................................................................................................... 80
6DYH ................................................................................................................45, 58, 64
9DULDEOH ...................................................................................................................... 30
ABB Automation
1MRS751903-MEN
Index
Workspace ..................................................................................................................... 22
;
X, see size prefix ........................................................................................................... 36
=
Zipping .......................................................................................................................... 83
ABB Automation
1MRS751903-MEN
Customer Feedback
Customer Feedback
About This Chapter
This chapter contains information on how to send customer feedback.
1MRS751903-MEN
Tutorial
Actions
When ABB Substation Automation Oy receives a Customer Feedback report it is
analysed by a sales person or a representative of the technical support. The analyser
may ask for additional information in order to complete the analysis. After the
report has been analysed, the following actions are taken:
In case of a clear error the report is moved to the change management system of
ABB Substation Automation Oy. In this system the error is analysed in detail and
corrected in a future patch release or major release depending on the severity and
impact of the error.
In case of an improvement proposal the report is also moved to the change
management system where it is considered as a requirement for future releases.
In case of a query an answer is provided.
When Customer Feedback reports are handled in the change management system,
the outcome can be one of the following:
No Actions
ABB Automation