3BUR002117R3701 en AdvaBuild TCL Builder User Guide
3BUR002117R3701 en AdvaBuild TCL Builder User Guide
Version 3.7
Version 3.7
NOTICE
This document contains information about one or more ABB products and may include a
description of or a reference to one or more standards that may be generally relevant to
the ABB products. The presence of any such description of a standard or reference to a
standard is not a representation that all of the ABB products referenced in this document
support all of the features of the described or referenced standard. In order to determine
the specific features supported by a particular ABB product, the reader should consult the
product specifications for the particular ABB product.
ABB may have one or more patents or pending patent applications protecting the intel-
lectual property in the ABB products described in this document.
The information in this document is subject to change without notice and should not be
construed as a commitment by ABB. ABB assumes no responsibility for any errors that
may appear in this document.
In no event shall ABB be liable for direct, indirect, special, incidental or consequential
damages of any nature or kind arising from the use of this document, nor shall ABB be
liable for incidental or consequential damages arising from use of any software or hard-
ware described in this document.
This document and parts thereof must not be reproduced or copied without written per-
mission from ABB, and the contents thereof must not be imparted to a third party nor used
for any unauthorized purpose.
The software or hardware described in this document is furnished under a license and
may be used, copied, or disclosed only in accordance with the terms of such license. This
product meets the requirements specified in EMC Directive 2004/108/EEC and in Low
Voltage Directive 2006/95/EEC.
TRADEMARKS
All rights to copyrights, registered trademarks, and trademarks reside with their respec-
tive owners.
Section 1 - Introduction
Product Overview ............................................................................................................15
TCL Builder Workspace.......................................................................................16
Managing TCL Sequence and Recipe Files .........................................................17
Editing Sequence and Recipe Files ......................................................................17
Using the Revision Control System .....................................................................17
Compiling and Linking ........................................................................................17
Printing .............................................................................................................17
Equipment Requirements ................................................................................................18
Database Configuration Requirements ............................................................................18
Considerations for Using filesys Statements ...................................................................18
Section 2 - Installation
General Information ........................................................................................................19
Product Verification .........................................................................................................19
3BUR002117R3701 5
Table of Contents
6 3BUR002117R3701
Table of Contents
3BUR002117R3701 7
Table of Contents
Chapter 5 - Maintenance
Preventive Maintenance ................................................................................................ 107
Hardware Indicators ...................................................................................................... 107
Error Messages.............................................................................................................. 107
Fault Finding and User Repair ...................................................................................... 107
Backup/Restore Procedures .......................................................................................... 108
INDEX
8 3BUR002117R3701
About This Book
General
This book describes the AdvaBuild® TCL Builder. The TCL Builder is a
development package that lets you:
• edit sequence and recipe (source) files.
• check syntax and view both the source and listing files in the same window.
• manage the files in a revision control system (RCS).
• compile and link sequence files.
• compile recipe files
This book is not intended to be the sole source of instruction for TCL Builder
software. It is recommended that people involved in sequence/recipe development
attend the applicable system engineering courses offered by ABB Inc.
Use this section as a guide to the conventions and terminology used throughout this
book. For related information, see Related Documentation on page 12.
Warning indicates the presence of a hazard which could result in personal injury.
3BUR002117R3701 9
Document Conventions About This Book
Tip indicates advice on, for example, how to design your project or how to use a
certain function.
Although Warning hazards are related to personal injury, and Caution hazards are
associated with equipment or property damage, it should be understood that
operation of damaged equipment could, under certain operational conditions, result
in degraded process performance leading to personal injury or death. Therefore,
comply fully with all Warning and Caution notices.
Document Conventions
The following conventions are used for the presentation of material:
• The words in names of screen elements (for example, the title in the title bar of
a window, the label for a field of a dialog box) are initially capitalized.
• Capital letters are used for the name of a keyboard key if it is labeled on the
keyboard. For example, press the ENTER key.
• Lowercase letters are used for the name of a keyboard key that is not labeled on
the keyboard. For example, the space bar, comma key, and so on.
• Press CTRL+C indicates that you must hold down the CTRL key while
pressing the C key (to copy a selected object in this case).
• The names of push and toggle buttons are boldfaced. For example, click OK.
• The names of menus and menu items are boldfaced. For example, the File
menu.
– The following convention is used for menu operations: MenuName >
MenuItem > CascadedMenuItem. For example: choose File > New >
Type.
10 3BUR002117R3701
About This Book Terminology
– The Start menu name always refers to the Start menu on the Windows
Task Bar.
• System prompts/messages are shown in the Courier font, and user
responses/input are in the boldfaced Courier font. For example, if you enter a
value out of range, the following message is displayed:
Entered value is not valid. The value must be 0 to30.
You may be told to enter the string TIC132 in a field. The string is shown as
follows in the procedure:
TIC132
Variables are shown using lowercase letters.
sequence name
Terminology
The following is a list of terms associated with object-oriented database
configuration and the TCL Builder that you should be familiar with. The list
contains terms and abbreviations that are unique to ABB or have a usage or
definition that is different from standard industry usage.
Term Description
Engineering Station The computer loaded with AdvaBuild software.
FMS File Management Services
MDI Multiple Document Interface
RCS Revision Control System
RTAB Real-time Accelerator Board. The RTAB is used with
System Services and is required in the PC if you are
using it as a client/server and connecting to the Advant
OCS Control Network (MOD 300 DCN). This reference
is also used for the external RTA unit.
3BUR002117R3701 11
Related Documentation About This Book
Term Description
TCL Taylor Control Language. The TCL Builder is a
development tool for creating sequence and recipe files,
managing sequence and recipe files, compiling and
linking TCL sequences, and compiling recipes.
TLL Taylor Ladder Logic. The TLL Builder is a development
tool for creating, managing, and compiling ladder logic
segment files.
Windows Microsoft Windows operating system
Related Documentation
A listing of documentation related to the TCL Builder is provided in Table 1.
12 3BUR002117R3701
About This Book Related Documentation
After you install the AdvaBuild documentation, you can access it from the Windows
task bar by choosing Start > Programs > ABB Industrial IT > Control IT >
AdvaBuild > Documentation > Document.
3BUR002117R3701 13
Related Documentation About This Book
14 3BUR002117R3701
Section 1 Introduction
Product Overview
AdvaBuild software consists of a family of modules called Builders that are
integrated in a framework. The TCL Builder is part of the AdvaBuild framework as
shown in Figure 1. The framework consists of the basic components (shaded in
Figure 1): Common database, Control Builder as main user interface, Templet
Builder, and On-line Builder. Other builders (for example, TCL Builder and TLL
Builder) are connected in the frame as required.
Control Builder
Load ATF
External
Engineering Database database
Save ATF
The TCL Builder is a development tool for creating sequence and recipe files,
managing sequence and recipe files, compiling and linking TCL sequences, and
compiling recipes. This tool uses a client/server architecture. The server supports
3BUR002117R3701 15
TCL Builder Workspace Section 1 Introduction
the Revision Control System (RCS) and compile/link status information for
sequences and recipes. TCL Builder clients connect to the server to check sequence
and recipe files in and out of the RCS for editing.
Figure 2. TCL Builder Window with Server and Client Windows Opened
16 3BUR002117R3701
Section 1 Introduction Managing TCL Sequence and Recipe Files
Printing
You can print sequence and recipe source files, sequence listing files,
compiler/linker listing files, revision logs, and difference logs.
3BUR002117R3701 17
Equipment Requirements Section 1 Introduction
Equipment Requirements
See the AdvaBuild Administrator’s Guide for the hardware and memory
requirements of the AdvaBuild TCL Builder software.
Before you can Set Active Revision, the database containing the TCL_DEV
object must be compiled and installed via the corresponding AdvaBuild Control
Builder functions, and the Windows-based Engineering Station must be rebooted.
Failure to do this will result in system diagnostics.
When using multiple CDPs, if a sequence already exists, do not create the same
sequence name on another CDP; it will not download. To determine if the
sequence or recipe already exists in another CDP view the Compile Link Status
view using TCL Builder. Don’t create sequences on more than one CDP.
18 3BUR002117R3701
Section 2 Installation
General Information
The TCL Builder software is a part of the AdvaBuild® suite of software products for
the Window platform and is provided on the CD for AdvaBuild Version 3.7
software. All AdvaBuild software products are installed according to instructions in
the AdvaBuild Administrator’s Guide.
You can install just client software or client/server software on the Windows-based
Engineering Station. Windows-based Engineering Stations used as a TCL Builder
server require a PCI Real-time Accelerator Board (RTAB) or the external RTA unit.
Product Verification
To verify that the correct TCL Builder software is installed on your Windows-based
Engineering Station, choose Help >About TCL Builder… from the menu bar of
the TCL Builder window. This opens a dialog with such information as software
version and licensing. To close the dialog, click on OK.
3BUR002117R3701 19
Product Verification Section 2 Installation
20 3BUR002117R3701
1
Getting Started
To create a TCL recipe or sequence with the TCL Builder,
1. Start the TCL Builder Client application and then connect to the Server. See
Application Start-up on page 49.
2. Open an existing TCL recipe or sequence file as described in Opening One or
More Files on page 59, or create a new TCL recipe or sequence file as
described in Creating a New File on page 58.
3. Use the text editor of the TCL Builder client to edit the TCL recipe or sequence
file. See Using the Editor on page 68.
When you edit a sequence or recipe file, you can enter revision markers that
automatically update revision information when files are checked out of the
Revision Control System. See Marking Revisions on page 73.
4. Save the TCL recipe or sequence file. See Saving a File on page 63.
5. Check the syntax of the TCL recipe or Sequence file. See Checking Syntax on
page 76.
6. Check the TCL recipe or sequence file into the Revision Control System
(RCS). See Using Revision Control on page 81.
3BUR002117R3701 21
TCL Builder Interface Section 3 Configuration/Application Building
7. Compile and link the sequence file or compile the recipe file. See Compiling
and Linking Files on page 95.
Figure 3. TCL Builder Window with Server and Client Windows Opened
22 3BUR002117R3701
Section 3 Configuration/Application Building Client Window
Initially, the TCL Builder application is started as a client and only the Client
window is open in the workspace. To start the TCL Builder application as a
client/server, you must connect (log on) to the server. Once you connect to the
server, the Server windows are opened in the workspace. The Client and Server
windows have a look and feel that is similar to the Windows Explorer.
Within the TCL Builder window workspace, you may display one Client window,
one Server Library window, one Server RCS window, multiple Sequence, Sequence
Listing, Recipe, Revision Log and Differences Log windows, and many dialog
boxes for manipulating the data (for example, Open dialog and Save dialog). All
these window types are described below and have the following characteristics:
• They are associated with a single project.
• They are children of the TCL Builder window and therefore displayed within
that window structure.
• They have the standard control buttons to minimize, maximize or close and
resize them within the TCL Builder window workspace.
• Even though multiple windows may be open at the same time, only one is
active. The title bar of the active window is highlighted, and the title bar of any
other open window is dimmed to indicate that it is inactive. The menu and tool
bars are context sensitive and only show options valid for the active window.
• The tree view window on the left shows the hierarchical file system in a tree-
like structure.
• The list view (right window) shows detailed information for the folders and/or
files (sequence, sequence listing, and recipe) in the currently selected drive or
folder in the tree view. This information includes the folder/file name, size,
type, and modification date.
Client Window
Whenever you open the TCL Builder, the Client window is opened, Figure 4. There
can be only one client open at a time in the TCL Builder; therefore, there can be
only one Client window open at a time in the TCL Builder window.
3BUR002117R3701 23
Client Window Section 3 Configuration/Application Building
The Client window is similar to the Windows Explorer in that it is split vertically
down the middle, dividing it into two areas. The portion on the left is known as the
tree view and shows the file system for the client PC. The files displayed are limited
to drives, folders, TCL sequences, TCL sequence listings, and TCL recipes. The
portion on the right is known as the list view. Navigation within the window is via
scroll bars and mouse actions as described in Menu Bar on page 33 and Mouse
Operation on page 36 with the following exceptions:
• You cannot select objects in the tree and list views simultaneously. Also, you
cannot select contiguous items by selecting the first item, and then pressing the
SHIFT key while selecting the last item.
• Double clicking on a sequence or recipe object in the list view opens the
appropriate TCL Sequence or Recipe window for that object.
• Double-clicking on a sequence listing file in the list view of the Client window
opens the TCL Sequence Listing window for viewing that file.
The tree view for the Client shows the hierarchical file system for the client PC. The
default root for TCL files is: My Documents/My TCL.
The list view shows detailed information for the folders and/or files (sequence,
sequence listing, and recipe) in the currently selected drive or folder in the tree view.
This information includes the folder/file name, size, type, and modification date.
24 3BUR002117R3701
Section 3 Configuration/Application Building Server Library Window
The Server Library window is split vertically down the middle with the tree view on
the left and the list view on the right. Navigation within the window is via menu
items and mouse actions as described in Menu Bar on page 33 and Mouse Operation
on page 36 with the following exceptions:
• You cannot select objects in the tree and list views simultaneously. Also, you
cannot select contiguous items by selecting the first item, and then pressing the
SHIFT key while selecting the last item.
• Double-clicking on a sequence or recipe object in the tree view opens a
read-only view of the latest revision.
3BUR002117R3701 25
Server RCS Window Section 3 Configuration/Application Building
26 3BUR002117R3701
Section 3 Configuration/Application Building Server RCS Window
The tree view for the Server RCS shows the server name as the root, the project one
level under the server, Sequences and Recipes folders one level under the project,
TCL sequences under the Sequences folder, and TCL recipes under the Recipes
folder for the current project.
The list view shows revision status for the currently selected folder or file in the tree
view.
• The Sequences or Recipes folders includes the file name, the most current
revision level, modification (check in) date, author, and the user who locked the
file (if any) for all files in the selected folder as shown in Figure 7.
• Individual sequence or recipe files include the symbolic name (revision),
modification (check in) date, author, state (if any), and the user who locked the
revision (if any) for all revisions of the selected sequence or recipe as shown in
Figure 8.
Locked revisions are indicated in the list view by a lock icon, and unlocked
revisions are indicated by a text file icon.
3BUR002117R3701 27
TCL Sequence Window Section 3 Configuration/Application Building
28 3BUR002117R3701
Section 3 Configuration/Application Building TCL Sequence Listing Window
3BUR002117R3701 29
TCL Sequence Source and Listing Window Section 3 Configuration/Application Building
Figure 11. Example, Source and Listing Files Displayed in TCL Sequence Window
30 3BUR002117R3701
Section 3 Configuration/Application Building TCL Recipe Window
3BUR002117R3701 31
Revision and Differences Log Windows Section 3 Configuration/Application Building
Dialog Boxes
When you initiate a function, a dialog box may open for you to input information or
confirm/acknowledge the function. Figure 13 shows the Open dialog (choose File >
Open from the menu bar or click on the Open button in the tool bar).
Most dialog boxes have one or two of the following three buttons:
• <function> (Open in Figure 13) is used to activate the function once any
necessary input has been entered in the fields and close the dialog box.
32 3BUR002117R3701
Section 3 Configuration/Application Building TCL Builder Workspace Controls
Menu Bar
The menu bar, Figure 3, at the top of the TCL Builder window contains items for
TCL Builder activities. Any operations performed through the menu options are
based on the object(s) selected in the Client or Server Library and RCS windows.
The menu items are sensitive to the object(s) selected and are not available for
selection (dimmed) if the option does not apply to the selected object or all of the
selected objects. The menu items are also not available for selection if the privileges
for the current user do not allow them to perform that function. Detailed
descriptions of the menu items are provided in later sections of this chapter. Since
the items on the Window menu pertain to the user interface, they are described
below.
Window Menu
The Window menu contains options that allow you to control the arrangement of
windows opened by other menu items in the TCL Builder window workspace.
3BUR002117R3701 33
TCL Builder Workspace Controls Section 3 Configuration/Application Building
Any additional items on the Window menu identify the windows currently open in
the TCL Builder window workspace. In the workspace, the title bar of the active
window is highlighted, and the title bar of any other open window is dimmed to
indicate that it is inactive. In the Window menu, the item for the currently active
window has a check mark to the left of its name. To make another open window
active, choose its name from the Window menu.
Tool Bar
The tool bar below the menu bar, Figure 14, contains buttons that provide shortcuts
to frequently used TCL Builder menu operations. These operations include:
• open
• save
• save all
• print
• cut
• copy
• paste
• find
• check in
• check out
• revision log
• show differences
• lock revision
• unlock revision
• next error
• cascade
• tile horizontal
34 3BUR002117R3701
Section 3 Configuration/Application Building TCL Builder Workspace Controls
• tile vertical
The tool bar is displayed upon starting the TCL Builder by default; however, you
can toggle whether it is displayed during the TCL Builder session by choosing
View > Toolbar from the menu bar. When the tool bar is displayed, there is a check
mark (✓) to the left of the Toolbar item on the View menu.
Open Save All Cut Paste Check Revision Lock Next Horizontal
In Log Error Tile
When you move the cursor over a button in the tool bar with the mouse and keep it
over that button, ToolTipText describing the operation initiated by that button is
momentarily displayed. Figure 15 shows an example of such ToolTipText.
Status Bar
The status bar, Figure 16, shows the following information about the current TCL
Builder session:
• name of server the TCL Builder application is running on
• current project name, if connected
3BUR002117R3701 35
Mouse Operation Section 3 Configuration/Application Building
User Name
Project Name
Server Name
Mouse Operation
The Windows-based Engineering Station has a two button mouse. The mouse is
used to move the cursor and provide tool tips, and its two buttons are used to
increase productivity by providing a fast way to initiate certain functions as
described below.
36 3BUR002117R3701
Section 3 Configuration/Application Building Mouse Operation
• window selection
To select a window, move the cursor over the title bar at the top and click the
left mouse button. This highlights the windows title bar and makes it the active
window.
• minimize, maximize and close windows with standard control buttons
There are three standard control buttons in the upper right corner of most
windows that allow you to minimize, maximize or close the window,
Figure 17. Message boxes usually only have the Close button. To select a
standard control button, move the cursor over it and click the left mouse button.
Clicking on the Minimize button reduces the window to a small title bar in the
lower left of the workspace or screen with control buttons. Use the control
buttons on the minimized window to maximize or close it. Clicking on the
Maximize button expands the window to fill the workspace or screen. Clicking
on the Close button closes the window.
Close
Maximize
Minimize
3BUR002117R3701 37
Mouse Operation Section 3 Configuration/Application Building
• object selection
You can select a single object or multiple objects at one time. In the
descriptions that follow, the term object means:
– sequence, recipe, or listing object when used in the context of the tree and
list views. You can only select one sequence or recipe object at a time in
the tree view.
– display element when used in the context of the subtree button of the tree
view, the editable fields and buttons of dialog boxes, and resizing targets
To select a single object (for example, sequence or recipe object name or
subtree button in the tree view, sequence or recipe object name in the list view,
field or button on a dialog box), move the cursor over the object and click the
left mouse button. The selected object is then highlighted to indicate that it is
selected and has focus.
To select multiple objects (for example, sequence and recipe object names in
the list view) within a range, move the cursor over the first object, click the left
mouse button to select that object, move the cursor to the last object in the
range, press and hold down the SHIFT key while clicking the left mouse
button to select the last object in the range, and release the SHIFT key. This
selects the first, last and all objects between and highlights them to indicate that
they are selected and have focus.
To select multiple discontinuous objects (for example, sequence and recipe
object names in the list view), move the cursor over the first object, click the
left mouse button to select that object, move the cursor over the next object,
press and hold down the CTRL key while clicking the left mouse button to
select it. Continue to hold down the CTRL key as you select additional objects.
Once the last object is selected, release the CTRL key. This selects only those
objects clicked on and highlights them to indicate that they are selected and
have focus.
38 3BUR002117R3701
Section 3 Configuration/Application Building Mouse Operation
Renaming a TCL sequence or recipe file does not affect the contents of the file.
Therefore, if you want to change the sequence or recipe name in a file to reflect
its renamed file, you must edit that file separately from the rename operation.
3BUR002117R3701 39
Mouse Operation Section 3 Configuration/Application Building
40 3BUR002117R3701
Section 3 Configuration/Application Building Mouse Operation
For files, in the list view of the Client window, select the file(s) you want
to move, hold down the left mouse button, and press and hold down the
CTRL key.
b. Drag the selected folder(s)/file(s) (move the cursor while continuing to
hold down the left mouse button and CTRL key) to the desired location
within the tree structure of the Client window.
c. Drop the selected folder(s)/file(s) (release the left mouse button and
CTRL key).
When you copy files in the Client window, only the selected files are copied to
the specified location. When you copy folders, all subfolders and files within
the selected folder(s) are copied to the specified location.
• check in folder(s)/file(s) from Client window to RCS of Server RCS
window
To check in one or more folders/files from the Client window to the RCS of the
Server RCS window using drag and drop,
a. For folders, in the tree or list view of the Client window, select the
folder(s) you want to check in to the RCS and hold down the left mouse
button.
or
For files, in the list view of the Client window, select the file(s) you want
to check in to the RCS and hold down the left mouse button.
b. Drag the selected folder(s)/file(s) to the desired location within the tree
structure of the Server RCS window.
c. Drop the selected folder(s)/file(s).
When you check in files from the Client window, only the selected files are
checked into the RCS on the Server. When you check in folder, all subfolders
and files within the selected folder(s) are checked into the RCS on the Server.
The checked in folder(s)/file(s) are unlocked by default. You will be prompted
for comments via the Check-In dialog.
3BUR002117R3701 41
Mouse Operation Section 3 Configuration/Application Building
42 3BUR002117R3701
Section 3 Configuration/Application Building Mouse Operation
3BUR002117R3701 43
Cursor Positioning via the Keyboard Section 3 Configuration/Application Building
44 3BUR002117R3701
Section 3 Configuration/Application Building Adjusting the User Interface
Arranging Windows
You can arrange the Client window, Server Library and RCS windows, TCL
Sequence and Recipe windows and so on within the TCL Builder window in any
one of the following ways:
• cascade
• tile horizontally
• tile vertically
To do so, use the corresponding tool bar buttons or Window menu items described
under the headings Tool Bar on page 34 and Window Menu on page 33. You can
move the windows within the workspace as desired via dragging and dropping as
described under the heading Drag and Drop on page 40. You can also minimize and
maximize the windows using the standard window control buttons in the upper left
corner of the window or via Window menu items. Refer to the description under the
heading Left Mouse Button on page 36 for information about minimizing and
maximizing windows via the standard window control buttons.
Resizing Windows
You can resize the windows within the workspace of the TCL Builder window by
dragging and dropping the window borders or resize target as described under the
heading Drag and Drop on page 40.
3BUR002117R3701 45
Adjusting the User Interface Section 3 Configuration/Application Building
Only one object at a time can be selected in the tree view. When an object is
selected, operations can be performed on the object via the menu bar or mouse
actions (for example, drag and drop and context menu). Any operations performed
through the menu options (of both the menu bar and context menu) are based on the
object selected in the tree view. The menu items are sensitive to the object selected
and are not available for selection if the option does not apply to the selected object.
You can expand or collapse the tree structure in the tree view of the Client and
Server windows to show as much or as little data as desired using the subtree
buttons. A subtree button (+ or -) is provided to the left of each parent object that
has descendant objects (children) inserted under them, Figure 19. Select the +
subtree button to expand or the - subtree button to collapse branches within the tree
structure.
Subtree button
46 3BUR002117R3701
Section 3 Configuration/Application Building How to Obtain Help
Initially, the order of folders and the order of files within the folders in the list view
is alphabetical. The list view objects can be sorted by object name, size, type, and
modification date by clicking on the column heading. Successive selection of the
column heading reverses the sort order. The columns showing this information can
be resized to enlarge or hide the data shown. You navigate the data shown in the list
view via the scroll bar.
Multiple objects can be selected at one time in the list view. When an object or
objects are selected, operations can be performed on the object(s) via the menu bar
or mouse actions. Any operations performed through the menu options (of both the
menu bar and context sensitive menu) are based on the object(s) selected in the list
view. The menu items are sensitive to the object(s) selected and are not available for
selection (dimmed) if the option does not apply to the selected object or all of the
selected objects.
3BUR002117R3701 47
How to Obtain Help Section 3 Configuration/Application Building
the mouse to move the cursor over that button. Figure 20 shows an example of
ToolTipText for a button in the tool bar.
To display information pertaining to the current release of the TCL Builder, choose
Help > About TCL Builder… from the menu bar. This opens the About TCL
Builder window. Click on the OK button to close the About TCL Builder window.
48 3BUR002117R3701
Section 3 Configuration/Application Building Application Start-up
Application Start-up
There are two parts to starting up the TCL Builder application:
• Starting the Client
• Connecting to the Server
Having started the TCL Builder application, you adjust the arrangement of the
windows within the TCL Builder window. See Adjusting the User Interface on page
45.
3BUR002117R3701 49
Starting the Client Section 3 Configuration/Application Building
50 3BUR002117R3701
Section 3 Configuration/Application Building Starting the Client
– Choose File > Open from the menu bar of the Windows Explorer window
– Right-click on a selected file, and choose either Open or Edit from the
context menu.
– Double-click on a selected file.
This opens the appropriate TCL Sequence or Recipe window for each of the
selected files as well as the TCL Builder Client window, Figure 22.
Figure 22. Starting the TCL Builder Client From Windows Explorer
3BUR002117R3701 51
Connecting to the Server Section 3 Configuration/Application Building
2. By default, the name of the last server you successfully logged into is displayed
in the Server field. To open a project whose data is stored on a server other than
the one displayed in the Server field, select the desired server from the pick list
or type the desired server name in the Server field.
3. The pick list for the Project Name field contains a list of all projects located on
the specified server. Select the project you want to open from the pick list in the
Project Name field.
4. The pick list for the User Name field contains a list of all users defined for the
selected project. Select your user name for the project you want to open from
the pick list in the User Name field.
5. Enter your password in the Password field.
52 3BUR002117R3701
Section 3 Configuration/Application Building Connecting to the Server
Figure 24. TCL Builder Client, Server Library, and Server RCS Windows
3BUR002117R3701 53
Application Procedures Section 3 Configuration/Application Building
Application Procedures
The remainder of this section describes the following functions of the TCL Builder:
• Managing Directories and Files
• Using the Editor
• Checking Syntax
• Using Revision Control
• Compiling and Linking Files
• TCL Recipe Decompile
• Remove Recipe Source
• Convert to ASCII
• TCL Recipe Tuning Procedure
• Printing
• Exiting the TCL Builder
The above functions you can perform depend on your user type.
When a project is created, a default configuration user is assigned automatically.
The default configuration user (project_name_CFG) has unrestricted access to all
project data and read-only access to journal data. In addition to the default
configuration user, other users of the three types with the privileges shown in
Table 2 can be defined for the project.
Table 3 identifies the TCL Builder functions each user type can perform.
54 3BUR002117R3701
Section 3 Configuration/Application Building Managing Directories and Files
3BUR002117R3701 55
Creating a Folder Section 3 Configuration/Application Building
Creating a Folder
Create a directory structure for organizing your TCL sequence and recipe files. To
create a folder:
1. In the Client window, select the parent folder that you want to create the new
folder under, Figure 25.
or
In the Server RCS window, select the Project object in the tree view.
2. Choose File > New > Folder from the TCL Builder menu bar, Figure 26.
56 3BUR002117R3701
Section 3 Configuration/Application Building Creating a Folder
This creates the new folder under the folder you selected in Step 1, Figure 27
with its name highlighted for renaming.
3. Type the name for the new folder and press ENTER, Figure 28.
3BUR002117R3701 57
Creating a New File Section 3 Configuration/Application Building
Figure 30. TCL Editor Opened for New TCL Sequence File
58 3BUR002117R3701
Section 3 Configuration/Application Building Opening One or More Files
Files opened from the Server RCS window are read-only and cannot be edited. To
edit such files, they must be checked out of the RCS on the server, edited on the
client, and then checked back into the RCS on the server.
If you selected one or more files in the tree view of the Server RCS window to
open, the appropriate TCL Sequence or Recipe window for only the latest
revision is opened for each selected file. If you selected one or more files in the
list view of the Server RCS window to open, an appropriate TCL Sequence or
Recipe window for only the selected revision is opened for each selected file.
To open one or more files by selecting the desired file(s) in the tree or list view of
the Client or Server RCS window, use any of the following five methods:
3BUR002117R3701 59
Opening One or More Files Section 3 Configuration/Application Building
2. In the Look in field, enter the directory location where the sequence and/or
recipe file(s) you want to open reside or select it from the pick list displayed
60 3BUR002117R3701
Section 3 Configuration/Application Building Opening One or More Files
when you click on the down arrow button to the right of the field. You can also
use the Up One Level button (the file folder with an up arrow) to specify the
directory location or the Create New folder button to create a new directory.
3. The Open dialog has filters for TCL sequence files (.tcl), TCL recipe files
(.rcp), TCL sequence listing files (.lis), and all file types (*.*) as shown in
Figure 32. Select the appropriate file type for the file(s) you want to open from
the pick list displayed when you click on the down arrow button to the right of
the Files of type field.
All files of the specified type that reside in the specified directory are displayed
in the scroll area below the Look in field.
4. Select the file(s) you want to open in the scroll area below the Look in field.
5. Click on the Open button to close the Open dialog and open an appropriate
TCL Sequence, Sequence Listing or Recipe window for each selected file.
Figure 33 shows an example of a TCL Sequence window, Figure 34 shows an
example of TCL Sequence Listing window, and Figure 35 shows an example of
a TCL Recipe window.
The File menu also lists up to 10 of the most recently edited files. Selecting a file in
this list opens the appropriate sequence, sequence listing, or recipe window for that
file.
3BUR002117R3701 61
Opening One or More Files Section 3 Configuration/Application Building
62 3BUR002117R3701
Section 3 Configuration/Application Building Saving a File
Use the editor provided by the TCL Builder to define/edit the syntax in the open
TCL Sequence or Recipe window. See Using the Editor on page 68 for information
about how to use the editor provided by the TCL Builder.
You can also use a text editor that is independent of the TCL Builder (for example,
Notepad) to edit TCL sequence and recipe files, if you prefer.
For information regarding file syntax for TCL sequences and recipes, refer to the
TCL User’s Guide. See Checking Syntax on page 76 for information on how to
check the syntax of TCL sequence and recipe files.
Saving a File
Editing TCL sequences and recipes involves opening a TCL Sequence or Recipe
window and then using the editor to make changes to the file. When you work in
TCL Sequence or Recipe window, you are actually working in a temporary
workspace. To record your work permanently in the file, you must save it (by
choosing File > Save, File > Save As… or File > Save All from the menu bar,
choosing Save from the context menu, or clicking on the Save button (floppy disk)
of the tool bar). This arrangement minimizes the likelihood of mistakes. You can
3BUR002117R3701 63
Saving a File Section 3 Configuration/Application Building
make a change in the TCL Sequence or Recipe window and then discard the change
by exiting the editor before saving the change. (To exit the TCL Sequence or Recipe
window, click on the Close button (X) in the window’s upper right corner or choose
Close from the context menu.) If changes are discarded, the sequence or recipe file
on the client disk is not affected.
To save your work on the client under the same name in the current folder, use one
of the following four methods:
• Choose File > Save from the TCL Builder menu bar.
• Choose Save from the context menu.
• Click on the Save button in the tool bar.
• Press CTRL+S.
If the TCL sequence or recipe was not previously saved, the Save As dialog is
opened, Figure 36. The Save in field contains the name of the currently
selected folder in the Client window, and the Save as type field contains the
type appropriate for the file you were editing. All files of the specified type that
reside in the specified folder are displayed in the scroll area below the Save in
field.
To proceed to save the edited file in the current folder,
a. Enter the desired file name in the File name field.
The file name can be up to 12 alphanumeric characters, including the
underscore. To avoid problems with other software applications, do not
use a hyphen in the file name. The first eight characters of the file name
must be unique within the current project. Do not include the suffix. The
appropriate suffix (based on the selected file type) is appended
automatically.
b. Click on the Save button to close the Save As dialog and save the file on
the client under the specified name.
64 3BUR002117R3701
Section 3 Configuration/Application Building Saving a File
To save your work on the client under a different name in the current or a different
folder,
1. Choose File > Save As… from the TCL Builder menu bar.
This opens the Save As dialog, Figure 36. The Save in field contains the name
of the currently selected folder in the Client window, the File Name field
contains the file’s current name, and the Save as type field contains the type
appropriate for the file you were editing. All files of the specified type that
reside in the specified folder are displayed in the scroll area below the Save in
field.
2. If you want to save the file in a different folder, in the Save in field, enter the
directory location where you want to store the file or select it from the pick list
displayed when you click on the down arrow button to the right of the field.
You can also use the Up One Level button to specify the directory location or
the Create New folder button to create a new directory.
3. Enter the desired file name in the File name field.
3BUR002117R3701 65
Saving a File Section 3 Configuration/Application Building
If you specify an invalid location where the file should be saved, a warning message
box is displayed, Figure 38. Click on the OK button to close the message box and
return the Save As dialog where you can specify a different destination for the file.
66 3BUR002117R3701
Section 3 Configuration/Application Building Moving Folders or Files Within the Client Window
To save all open files in their current directories, choose File > Save All from the
menu bar or click on the Save All button (multiple diskettes) in the tool bar of the
TCL Builder window.
3BUR002117R3701 67
Displaying Folder or File Properties Section 3 Configuration/Application Building
Recipes are defined in TCL and they have a Recipe ID and also a Description.
The description is created when editing/creating the TCL recipe source code.
There is no option to change the recipe description except by editing source. The
TCL Recipe Editor cannot change the Recipe Description. To change the Recipe
Description, you must Decompile the recipe, edit the source and then Re-
compile.
Only the Copy and Select All functions are available from the context menu
when viewing a TCL Sequence Listing.
68 3BUR002117R3701
Section 3 Configuration/Application Building How to Use the Basic Editing Functions
3BUR002117R3701 69
How to Use the Basic Editing Functions Section 3 Configuration/Application Building
– Press CTRL+C.
The selected text is then copied to the clipboard for future pasting. Note that the
contents of the clipboard are replaced by the selected text of the next cut or copy
operation.
70 3BUR002117R3701
Section 3 Configuration/Application Building How to Use the Basic Editing Functions
2. If you selected a text string prior to opening the Find dialog, that text string is
displayed in the Find What field; otherwise, the Find What field is empty. Enter
the text string you want to find in the Find What field.
By default, the search looks for all instances of the specified text string,
regardless of whether it contains the same upper- and lower-case letters as
specified in the Find What field or whether it is only part of a larger word.
3. If you want to limit the search to only those instances that exactly match the
upper- and lower-case letters of the text string as specified in the Find What
field, select the Match Case check box. When selected, the Match Case check
box contains a check mark.
4. If you want to limit the search to only those instances that are not part of a
larger word, select the Find Whole Word Only check box. When selected, the
check box contains a check mark.
5. Select the desired search direction (All, Down, or Up) from the pick list for the
Direction field.
6. Click on the Find button to start searching the recipe, sequence or sequence
listing file for the specified text string.
If an instance of the specified text string is found in the recipe, sequence or sequence
listing file, it is highlighted and the label on the Find button changes to Find Next.
Click on the Find Next button to continue finding instances of the specified text
string in the recipe, sequence or sequence listing file. If the specified text string is
not found in the recipe, sequence or sequence listing file, a message box indicating
3BUR002117R3701 71
How to Use the Basic Editing Functions Section 3 Configuration/Application Building
so is opened. Click on the OK button to acknowledge the message and close the
message box.
2. If you selected a text string prior to opening the Find dialog, that text string is
displayed in the Find What field; otherwise, the Find What field is empty. Enter
the text string you want to find in the Find What field.
By default, the search looks for all instances of the specified text string,
regardless of whether it contains the same upper- and lower-case letters as
specified in the Find What field or whether it is only part of a larger word.
3. If you want to limit the search to only those instances that exactly match the
upper- and lower-case letters of the text string as specified in the Find What
field, select the Match Case check box. When selected, the Match Case check
box contains a check mark.
72 3BUR002117R3701
Section 3 Configuration/Application Building Marking Revisions
4. If you want to limit the search to only those instances that are not part of a
larger word, select the Find Whole Word Only check box. When selected, the
check box contains a check mark.
5. Enter the text string you want to replace in the Replace With field.
6. Select the desired search direction (All, Down, or Up) from the pick list for the
Direction field.
7. Click on the Find button to start searching the sequence or recipe file for the
specified text string.
If an instance of the specified text string is found in the sequence or recipe file,
it is highlighted and the label on the Find button changes to Find Next.
8. Click on the Replace button to replace the highlighted instance with the text
string entered in the Replace With field.
or
Click on the Replace All button to replace all instances of the found search
string with the text string entered in the Replace With field.
or
Click on the Find Next button to continue finding instances of the specified
text string in the sequence or recipe file.
If the specified text string is not found in the sequence or recipe file, a message box
indicating so is opened. Click on the OK button to acknowledge the message and
close the message box.
Marking Revisions
Markers are used individually or in combination to mark sequence and recipe files
with revision information. Table 4 shows the available revision marker types.
Keyword Description
$Author$ author name (the name you use to log on to the client).
$Date$ date and time file was last checked into the RCS.
3BUR002117R3701 73
Marking Revisions Section 3 Configuration/Application Building
Keyword Description
$Locker$ name of user that locked the revision. To edit a file, it must be
checked out of the RCS locked. This prevents having more than
one author editing at the same time. Since more than one author
can be using the TCL Builder at any time, the locker may be
someone other than the original author.
$Revision$ revision number that is automatically generated when you check in
the file to RCS. See Checking In a File on page 82.
$Source$ full path name of RCS file (location where revision resides).
$State$ parameter that you can define when you check a file in to the RCS.
For this release, state is pre-defined as Exp.
$Header$ marker that combines the $Source$, $Revision$, $Date$,
$Author$, $State$, and $Locker$ markers. Thus, it can be used as
a shorthand method for entering all of these markers.
$Id$ same as $Header$ except that the $Source$ is replaced by
$RCSfile$
$Log$ list of revisions with the following information for each revision:
RCS file name, revision number, author, date/time of last check in,
and log message.
Existing log messages are not replaced. Instead, the new log
message is inserted after $Log…$. This is useful for accumulating
a complete change log in a source file. Each inserted line is
prefixed by the string that prefixes the $Log$ line. For example, if
the $Log$ line is // $Log$: tan.cc $, RCS prefixes each line of the
log with //
$Name$ symbolic name used to check out the revision, if any.
$RCSfile$ name of RCS file without a path
To use a marker, insert the marker as a comment or variable in the TCL source code,
and then check in the file to the RCS. The next time you check out the revision, the
information associated with that marker is displayed in the file header. This feature
is very helpful for keeping track of revisions as you edit sequence and recipe files.
74 3BUR002117R3701
Section 3 Configuration/Application Building Marking Revisions
You are not required to update the marker information each time you edit the file.
The system updates this information automatically when you check a revision in,
and the updated information is automatically displayed when you check out the file.
Figure 42 and Figure 43 illustrate the operation of the $Author$, $Date$, $Locker$,
and $Revision$ markers. These markers are inserted as a comment in the file header,
which is then checked in to the RCS. Subsequently, when the file is checked out and
opened, the header displays up-to-date revision information as shown in Figure 43.
Markers Shown
Inserted in
Sequence File
Figure 43. Example, Markers Providing Revision Information After Check Out
Markers are only applicable when you check a file in to the RCS. If the file is not
checked in, the revision information will not be updated, and displayed when you
open the file.
The rules for using markers are as follows:
3BUR002117R3701 75
Checking Syntax Section 3 Configuration/Application Building
• Markers are always bounded by dollar signs ($), for example: $Author$. Even
when a series of markers are used in combination, each instance must be
bounded by dollar signs, for example: $Author$ $Date$.
• Do not enter space between the dollar signs and marker name. For example,
$Revision$ is OK, $ Revision $ is wrong.
• Always use an initial capital letter, followed by lower case letters in the marker
name. For example, $Source$ is OK, $SOURCE$, and $source$ are wrong.
• When used in combination, there must be a space between each marker
instance. For example, $Author$ $Date$ is OK, $Author$$Date$ is wrong.
• Markers must always be inserted either as a comment, or as a variable.
• Use just the marker keyword in the comment (for example, $Revision$). DO
NOT enter raw data (for example, Rev 1.2). This data is updated and inserted in
the file when the file is checked in.
• When using markers in combination in variable declarations, if the resulting
text string exceeds 39 characters, any characters beyond 39 will be truncated
when the file is compiled.
The following examples in Table 5 and Table 6 show how to enter a marker as a
comment or string variable, and what the resulting output will be when you check
out a revision
.
Checking Syntax
Prior to checking in a file to the TCL Builder RCS, it is recommended that you run
the Syntax Checker. This eliminates the majority of errors prior to compiling the file
and may save you from having to redownload the file later. You can run the Syntax
Checker from the Client window or directly from the TCL Sequence window as
described in the sections that follow. In both cases, the results are included in a
sequence listing file; however, the sequence listing file is only saved on the client if
the Syntax Checker is run from the Client window.
76 3BUR002117R3701
Section 3 Configuration/Application Building Checking Syntax
3BUR002117R3701 77
Running Syntax Check from Client Window Section 3 Configuration/Application Building
If your program includes filesys statements, you must edit the FILE_FCBSIZ
constant in the filesys_incl.tcl file before you run the syntax checker.
Change the FILE_FCBSIZ constant from 48 to 50. You can use either the editor
provided by the TCL Builder or a text editor that is independent of the TCL
Builder (for example, Notepad) to edit the filesys_incl.tcl file located in:
C:\Program Files\ABB Industrial IT\AdvaBuild\bin
The larger size is only required in the TCL Builder. When you download and
compile the program on the PCI RTAB, the original file having
FILE_FCBSIZ=48 will be used. DO NOT change the FILE_FCBSIZ via the TCL
catalog, nor download the changed filesys_incl.tcl file, as this will change
the RTAB version of the filesys_incl file.
See Using the Editor on page 68 for information about how to use the editor
provided by the TCL Builder.
78 3BUR002117R3701
Section 3 Configuration/Application Building Running Syntax Check from Client Window
Figure 44. Example, Source and Listing Files Displayed in TCL Sequence Window
In addition, the listing file is created in the same folder as the source file in the
Client window, Figure 45.
3BUR002117R3701 79
Running Syntax Check from Client Window Section 3 Configuration/Application Building
Figure 45. List File Created When You Run Syntax Check from Client Window
To view the contents of the listing file, Figure 46, open the file as described in
Opening One or More Files on page 59. You can also print the listing file as
described in Printing on page 102.
80 3BUR002117R3701
Section 3 Configuration/Application Building Running Syntax Check from TCL Sequence Window
A tree structure such as the one shown in Figure 47 is maintained for each file stored
in the RCS. Base versions (1.1, 1.2, 1.3, and so on) form the trunk of the tree. The
latest base version is at the top or head of the trunk with prior versions in reverse
order below it. The initial base version is at the bottom of the trunk. Revisions
branch off from the trunk. A revision may have one or more levels of branches.
3BUR002117R3701 81
Organizing RCS Files Section 3 Configuration/Application Building
Head 1.2.2.2
1.2.2.1.1.1
1.3
1.2.1.1 1.2.2.1
1.2
Branch
Trunk
1.1
Checking In a File
To place a new revision for a sequence or recipe file under RCS, you must first
connect to the server as described in Connecting to the Server on page 52. Unless it
is the first time you are checking the file in, the file must be locked. You are not
permitted to check in a file that was checked out unlocked. If a file is unlocked and
you want to check it in, you must first lock the file as described in Locking an
Unlocked File on page 93. When you lock a revision, no other user is permitted to
check out the revision locked. Other users are permitted to check out the revision
unlocked for viewing or syntax checking; however, they are not permitted to edit
and check in a new revision. Only one version of a file can be locked at a time, and
only the user who checked out a file may check the file back in to the RCS.
82 3BUR002117R3701
Section 3 Configuration/Application Building Checking In a File
.
Always save your work prior to checking in a file. See Saving a File on page 63.
If you don’t save your work in the editor, any changes made during the current
editing session will not be recorded when you check in the file.
To check in a file from the Client window,
1. Select one or more files you want to check in. To select all files shown in the
list view of the Client window, choose Edit > Select All from the menu bar of
the TCL Builder window, choose Select All from the context menu, or press
CTRL+A. To deselect all selected files, choose Edit > Deselect All from the
menu bar of the TCL Builder window.
2. Use one of the following methods to invoke the check in function:
– Drag and drop the file from the Client window to the Server RCS window
(Revision Status View).
or
– Choose Revision > Check In from the menu bar.
or
– Right-click on the file and choose Check In from the context menu.
or
– Click the Check In button on the tool bar.
When you check in files from the Client window, only the selected files are
checked in to the RCS on the Server. When you check in folders, all subfolders
and files within the selected folders are checked into the RCS on the Server.
The checked in folder(s)/file(s) are unlocked by default.
This opens the Select Check-In Sub Project dialog, Figure 48.
3BUR002117R3701 83
Checking In a File Section 3 Configuration/Application Building
3. In the Sub Project field, enter the name of the folder under which you want to
check in the sequence or recipe file.
4. Click on the OK button.
This opens the Check In dialog, Figure 49.
5. In the Comments scroll area of the Check In dialog, record a check-in message
for each revision. The message should be a brief summary of changes made
during the current editing session. The comments are retrieved when you
display the Revision Log as described in Viewing the Revision Log on page 90.
Comments can be up to 2048 characters.
6. Click OK when you are finished.
84 3BUR002117R3701
Section 3 Configuration/Application Building How Revision Numbers are Generated
The file is now under revision control. You can find it in the applicable folder
(Sequences or Recipes) in the Server RCS window, Figure 50.
When you check in a file, the file remains on the Client. You may either delete the
file from the Client, or overwrite the file the next time you check the file out of
RCS.
3BUR002117R3701 85
Checking Out a File Section 3 Configuration/Application Building
1.3 1.3
1.2.1.1
1.2 1.2
1.1 1.1
CASE 1 CASE 3
Revision 1.2 is head of branch Revision 1.3 is head of the branch.
and is checked out locked. Revision 1.2 is checked out locked.
When you check it back in, the When you check it back in, a new
new head becomes revision 1.3. branch is started at 1.2. The head
of the branch becomes 1.2.1.1.
If you check out a file unlocked, and then decide that you want to edit it, you can
lock the file after it has been checked out. See Locking an Unlocked File on page
93.
86 3BUR002117R3701
Section 3 Configuration/Application Building Checking Out a File
TCL Builder window, choose Select All from the context menu, or press
CTRL+A. To deselect all selected files or revisions, choose Edit > Deselect
All from the menu bar of the TCL Builder window.
2. Use one of the following methods to invoke the check out locked function.
• Drag and drop the file from the Server RCS window to the Client window
while holding down the ALT key.
or
• Choose Revision > Check Out Locked from the menu bar of the TCL Builder
window.
or
• Right-click on the selected file in the Server RCS window and choose Check
Out Locked from the context menu.
If a copy of the selected file already exists on the client, you will be prompted to
confirm whether or not to overwrite (replace) the existing file. Figure 52 shows an
example of the Confirm File Replace dialog opened when checking out multiple
files and a copy of more than one of the files already exists on the client. Click on
Yes to confirm replacement of the existing file, click on Yes to All to confirm
replacement of all existing files, click on No to not replace the existing file and
continue checking out one or more selected files, or click on Cancel to cancel
checking out any remaining selected files.
3BUR002117R3701 87
Checking Out a File Section 3 Configuration/Application Building
If you are checking out only one file and a copy already exists on the client, a
simpler Confirm File Replace dialog is opened, Figure 53. Click on Yes to confirm
or No to cancel.
88 3BUR002117R3701
Section 3 Configuration/Application Building Checking Out a File
When you check out a file locked, the locked file is marked with a lock symbol in
the Server RCS window, Figure 54. This window also indicates the user that locked
the file.
3BUR002117R3701 89
Viewing the Revision Log Section 3 Configuration/Application Building
From this point the procedure is the same as for checking out a file locked, except
that the lock symbol is not displayed next to the file name in the Server RCS
window.
90 3BUR002117R3701
Section 3 Configuration/Application Building Showing Differences
File-level Information
Revision-level Information
Showing Differences
You can show the differences between two revisions in the Server RCS window, or
between one revision in the Client window and one revision in the Server RCS
window. To show differences, select the two revisions, and then choose Revision >
Differences from the menu bar of the TCL Builder window. This opens a
Differences Log window showing the differences between the two selected files. An
example is shown in Figure 56.
The first two lines of the differences log identify the two files selected for
comparison. One is identified by asterisks, while the other is identified by a line of
dashes.
3BUR002117R3701 91
Showing Differences Section 3 Configuration/Application Building
Three lines of context are shown before and after any changed lines in the log.
Changed lines are marked with an exclamation point (!). Deletions are indicated
with a minus sign (-), and additions are indicated with a plus sign (+).
Exclamation points
mark lines that differ
between the two revisions
You can resize the Differences Log window by clicking on a corner and dragging.
Use the scroll bars in the Differences Log window to view additional information
not shown within the scroll area. When you have finished viewing the differences
log, click the Close button in the upper right corner to close the window.
92 3BUR002117R3701
Section 3 Configuration/Application Building Unlocking a Locked File
Get Revision
The GetRevision executable is used to get RCS information from FMS files and
output the results to a file where you can verify what versions of files are actually
executing at runtime.
Running GetRevision
To run this program, open a Command Prompt window from the Windows task bar
by choosing Start > Programs > Command Prompt (as appropriate) and change
to the drive letter and path where AdvaBuild is installed (AdvaBuild_Bin is the
install path variable) as follows:
cd %AdvaBuild_Bin%
For TCL Sequence(s), use either of the following commands (use * to do all files or
specify a file name to do one file):
GetRevision seq *
3BUR002117R3701 93
Get Revision Section 3 Configuration/Application Building
94 3BUR002117R3701
Section 3 Configuration/Application Building Compiling and Linking Files
Before you can Set Active Revision, the database containing the TCL_DEV
object must be compiled and installed via the corresponding AdvaBuild Control
Builder functions, and the Windows-based Engineering Station must be rebooted.
Failure to do this will result in system diagnostics and problems trying to use that
sequence name.
When using multiple CDPs, if a sequence already exists, do not create the same sequence
name on another CDP; it will not download. To determine if the sequence or recipe
already exists in another CDP view the Compile Link Status view using TCL Builder.
Don’t create sequences on more than one CDP.
In the Server RCS window, downloading files from the TCL Builder RCS to the PCI
RTAB in the local TCL development node is called Set Active Revision. This is
required to schedule compile and link tasks for downloaded files.
The Set Active Revision can be used when the computer where your TCL Builder
software runs is equipped with a PCI Real-Time Accelerator Board (RTAB)
(connected to a control network). This transfers the files from the TCL Builder’s
Revision Control System to the local PCI RTAB where the files can be compiled
and linked. When you execute Set Active Revision, you can also specify that the
file(s) be compiled and linked when the download is finished. Otherwise, you
execute the compile and link for the selected file(s) in the Server Library window.
You can also remove an entry from the Server Library window. All of these
functions are provided via the On-line menu.
3BUR002117R3701 95
Downloading Files from Revision to On-line Storage Section 3 Configuration/Application Building
To download files from the TCL Builder RCS to the PCI RTAB in the local TCL
development node:
1. Select the Server RCS window, Figure 57.
96 3BUR002117R3701
Section 3 Configuration/Application Building Scheduling Compiles/Links
functions may complete very quickly, in which case the progress window will
appear briefly and then close.
This uses the RTAB and may affect Control Builder functions such as installs.
You will not be able to link TCL sequences while database, area, or node level
installs are in progress.
For recipes, the Compile and Link option is not available for selection.
5. Click on the OK button to close the Set Active Revision dialog and download
the selected file(s) from the TCL Builder RCS to the PCI RTAB in the local
TCL development node.
To check the status of the compile and/or link function, change to the Compile/Link
Status view as shown in Figure 59 by choosing View > Compile/Link Status from
the menu bar of the TCL Builder window.
Scheduling Compiles/Links
It is only necessary to schedule compiles/links from the Compile/Link Status view
of the Server RCS window when you choose not to compile and/or link after setting
the active revision. To do so,
1. Select the file(s) you want to compile and/or link.
3BUR002117R3701 97
Viewing Compiler/Linker Listing File Section 3 Configuration/Application Building
Do not select multiple versions of the same file and attempt to compile and link.
If one or more recipes are selected, only the Compile option is available for
selection. If multiple sequences are selected and one of them has a “Not
Compiled” or “Compile Errors” status, the Link option is not available for
selection.
Once you initiate a compile or link a progress dialog is opened. To cancel the
compile or link operation, click on the Cancel button. This dialog closes when the
operation is complete.
98 3BUR002117R3701
Section 3 Configuration/Application Building Viewing Compiler/Linker Listing File
3BUR002117R3701 99
Removing Sequence or Recipe from On-line Storage Section 3 Configuration/Application Building
3. Click on Yes to close the confirmation dialog and delete the selected TCL
sequence or recipe file from the on-line storage area on the server.
If removed, the selected file is only deleted from the on-line storage area. It is not
deleted from the RCS.
100 3BUR002117R3701
Section 3 Configuration/Application Building Remove Recipe Source
Convert to ASCII
This operation, On-line > Convert to ASCII, converts an FMS source file to an
ASCII text file. It can be used on all TCL Sequences and on any TCL Recipe that is
not in the READY state. The resulting ASCII file is placed into the current client
directory with a .rcp or a .tcl file extension.
The default directory is:
C:\Documents and Settings\username\My Documents\My TCL.
3BUR002117R3701 101
Printing Section 3 Configuration/Application Building
Printing
To print all pages of a TCL sequence or recipe, sequence listing file, compiler/linker
listing file, revision log, or differences log file,
1. Open the file you want to print.
2. Choose File > Print or press CTRL+P or use teh print icon on the toolbar to
display the standard Windows Print dialog.
3. Using the fields and buttons of the standard Windows Print dialog, define the
desired printing parameters.
4. Once you have specified the desired printing parameters, click on the OK
button to close the Print dialog and start printing the data.
102 3BUR002117R3701
Section 3 Configuration/Application Building Exiting the TCL Builder
To save the changes made to the sequence or recipe file, close the Unsaved Data
dialog, and proceed to exit the TCL Builder, click on the Yes button. To close the
Unsaved Data dialog, and proceed to exit the TCL Builder without saving the
changes made to the sequence or recipe, click on the No button. To close the
Unsaved Data dialog and cancel exiting the TCL Builder, click on the Cancel
button.
3BUR002117R3701 103
Exiting the TCL Builder Section 3 Configuration/Application Building
104 3BUR002117R3701
Chapter 4 Runtime Operation
Operating Instructions
For instructions regarding the operation of TCL runtime displays, refer to Operate
IT Process Portal B MOD 300 Connect Operation, 800xA for MOD 300 Operation
or MOD 300 Engineering Displays.
3BUR002117R3701 105
Operating Instructions Chapter 4 Runtime Operation
106 3BUR002117R3701
Chapter 5 Maintenance
Preventive Maintenance
This product does not require any preventive maintenance.
Refer to the PC manufacturer´s documentation for detailed information on the
preventive maintenance for the PC hardware.
Hardware Indicators
The RTA board does not have any hardware indicators. Refer to the PC
manufacturer´s documentation for information regarding any hardware indicators
for the PC.
Error Messages
The AdvaBuild suite of software contains several components and options. Each
component and option may send error messages to the Windows-based Engineering
Station user. These error messages provide the user with detailed information so
they can resolve the errors. Therefore, further explanation of the error messages in
this section is not necessary.
3BUR002117R3701 107
Backup/Restore Procedures Chapter 5 Maintenance
Backup/Restore Procedures
Use the Windows standard backup/restore functionality.
108 3BUR002117R3701
INDEX
A window 82 to 83
About help 47 file out of revision control system 17
About TCL Builder… item of Help menu 19, 48 file out of revision control system from Server
active window 23 window 86
adjusting user interface 45 file out of revision control system locked from
ALT key, Server window 86
see checking files or revisions out of revision file out of revision control system unlocked
control system locked via drag and drop from Server window 89
see moving folders or files to Client window files or revisions out of revision control system
and locking them locked via drag and drop 87
application start-up 49 files or revisions out of revision control system
Arrange Icons item of Window menu 33 unlocked via drag and drop 89
arranging windows 45 folders/files in to revision control system via
automatically refreshing contents of Client and drag and drop 41, 83
Server windows 47 folders/files out of revision control system via
drag and drop 42, 87
B syntax 21, 76
backup 108 children 39, 46
Client window 16, 23, 51
checking file in to revision control system 82
C
to 83
Cascade button of tool bar 33
deleting folder(s) or file(s) 67
Cascade item of Window menu 33
displaying properties for folder or file 68
Check In button of tool bar 83
list view 23 to 24
Check In dialog 84
moving folder(s) or file(s) 67
Check In item of context menu 83
renaming folder or file 67
Check In item of Revision menu 83
running Syntax Checker 78
Check Out button of tool bar 89
selecting all files in list view 83
Check Out item of context menu 89
tree view 23
Check Out item of Revision menu 89
Close item of context menu 64
Check Out Locked item of Revision menu 87
Close standard control button 37, 64
checking
collapsing branch of tree structure 39, 46
file in to revision control system 17, 82
comment 74
file in to revision control system from Client
3BUR002117R3701 109
Index
110 3BUR002117R3701
Index
3BUR002117R3701 111
Index
112 3BUR002117R3701
Index
3BUR002117R3701 113
Index
114 3BUR002117R3701
Index
sequence or recipe file under different name in searching for text string 70
current or different folder 65 selecting all text 69
sequence or recipe on client under same name sequence listing file
in current folder 21, 64 printing 17, 102
searching searching for text string 70
recipe file for text string 70 server connection 52
sequence file for text string 70 Server Library window 25 to 26
sequence listing file for text string 70 Server window 16, 23, 53
Select All item of context menu 83, 87 checking file out of revision control system 86
Select All item of Edit menu 83, 86 checking file out of revision control system
selecting locked 86
all files in list view of Client window 83 checking file out of revision control system
all files or revisions in list view of Server unlocked 89
window 86 compiling and linking sequence files from
all text in recipe file 69 Compile/Link Status view 98
all text in sequence file 69 compiling sequence and recipe files from
discontinuous objects 38 Compile/Link Status view 98
menu item 36 deselecting all selected files or revisions in list
multiple objects 38 view 87
range of objects 38 linking sequence files from Compile/Link
single object 38 Status view 98
tool bar button 36 list view 26 to 27
window 37 locking file 93
sequence file scheduling compiles/links from Compile/Link
compiling 17, 95, 98 Status view 97
compiling and linking 17, 95, 98 selecting all files or revisions in list view 86
copying text 69 setting Compile/Link Status view 97
creation 58 tree view 23
cutting text 69 unlocking file 93
deleting text 69 Server Window Auto Refresh item of View
editing 21 menu 47
linking 17, 98 Set Active Revision 18
management 17 Set Active Revision dialog 96
marking with revision information 21, 73 Set Active Revision item of On-line menu 96
opening 21, 59 to 61 setting
pasting selected text 70 active revision 95
printing 17, 102 automatic refresh of Client and Server
removing from on-line storage 100 windows 47
replacing text string 72 Compile/Link Status view of Server
saving 21, 63 to 65, 67 window 97
3BUR002117R3701 115
Index
116 3BUR002117R3701
Index
W
window
active 23
arrange icons 33
cascade 33
Client 23, 51
Compiler Listing 98
Differences Log 32, 91
maximize all open 34
minimize all open 33
resizing via drag and drop 45
restoring all open 34
Revision Log 32, 90
selection 37
Server 16, 23, 53
Server Library 25 to 26
TCL Builder 16, 22
TCL Recipe 31, 63
TCL Sequence 28, 62
TCL Sequence Listing 29, 62
TCL Sequence Source and Listing 30, 79
tile horizontal 33
tile vertical 33
Window menu 33
Arrange Icons 33
Cascade 33
3BUR002117R3701 117
Index
118 3BUR002117R3701
Contact us
3BUR002117R3701
www.abb.com/controlsystems www.abb.com/controlsystems
ABB Inc.
Control Technologies
Wickliffe, Ohio, USA
Phone: +1 440 585 8500
e-mail: industrialitsolutions@us.abb.com
www.abb.com/controlsystems