Automation Studio User Manual
Automation Studio User Manual
The content of this manual has been carefully revised, however, the full compliance of its
content with the technical and functional characteristics of the product it is referred to
cannot be assured, as typing or other errors cannot be completely ruled out. The
information given is regularly reviewed and any necessary correction or additional
explanation will be included in future revisions of this document.
Due to continuous development, the content of this manual can be changed without
notice.
We appreciate any correction or improvement suggestion.
3.0 2013-08-29 Vers ion corresponding to Automation Studio 2.6 Rev.4 or l ater.
7.0 2014-07-28 Vers ion corresponding to Automation Studio 3 or l a ter.
7.1 2015-02-26 Added additional information regarding device templates.
Added information regarding device i nteraction restrictions.
8.0 2015-04-10 Added information about the sys tem simulation feature.
8.1 2015-04-20 Added information about the user defined curves i n Operational Settings.
8.2 2015-04-20 Added information regarding revision backup files.
8.3 2015-05-22 Added additional information a bout device templates.
INDEX
1
1 INTRODUCTION ...................................................................................................................................................... 1-1
1.1 I NTRODUCTION .......................................................................................................................................................... 1-3
1.2 FEATURE O VERVIEW ................................................................................................................................................... 1-4
1.3 SCOPE AND AUDIENCE ................................................................................................................................................ 1-5
1.4 REFERENCES ............................................................................................................................................................... 1-6
1.5 SUPPORT CONTACTS................................................................................................................................................... 1-7
2 WINDOWING........................................................................................................................................................... 2-1
2.1 IDE MAIN W INDOW .................................................................................................................................................. 2-3
2.2 CONTENT W INDOWS.................................................................................................................................................. 2-4
2.3 PADS ......................................................................................................................................................................... 2-5
2.4 ARRANGING W INDOWS.............................................................................................................................................. 2-6
2.5 W ORKSPACES............................................................................................................................................................. 2-7
3 ADDIN S ..................................................................................................................................................................... 3-1
3.1 ADDINS...................................................................................................................................................................... 3-3
4 PROJECT SYSTEM.................................................................................................................................................... 4-1
4.1 SOLUTION .................................................................................................................................................................. 4-3
4.2 LIBRARY PROJECTS...................................................................................................................................................... 4-4
4.3 DEVICE PROJECT......................................................................................................................................................... 4-6
4.3.1 Adding New Devices ....................................................................................................................................... 4-6
4.3.2 Adding Existing Devices.................................................................................................................................. 4-7
4.3.3 Importing an Existing Device Configuration................................................................................................. 4-7
4.3.4 Via Copy-Paste ................................................................................................................................................ 4-7
5 GENERIC DEVICE MANAGEMEN T........................................................................................................................ 5-1
5.1 GENERIC DEVICE ........................................................................................................................................................ 5-3
5.2 CONFIGURATION SETTINGS ......................................................................................................................................... 5-4
5.3 O PERATIONAL SETTINGS ............................................................................................................................................. 5-5
5.3.1 Inverse Time Curves Viewer .......................................................................................................................... 5-7
5.3.2 User Defined Curves ....................................................................................................................................... 5-9
5.3.3 Distances Viewer .......................................................................................................................................... 5-11
5.3.4 XRIO Export ................................................................................................................................................... 5-13
5.4 EVENT RECORDS.......................................................................................................................................................5-15
5.5 DISTURBANCE RECORDS ...........................................................................................................................................5-18
5.6 SYSTEM LOG ............................................................................................................................................................5-23
5.7 FAULT REPORTS........................................................................................................................................................5-24
5.8 CONNECTIONS..........................................................................................................................................................5-25
5.9 DEVICE TOOLS ..........................................................................................................................................................5-26
5.10 DEVICE TEMPLATES ................................................................................................................................................5-27
5.10.1 Device Templates Locations ...................................................................................................................... 5-28
5.10.2 Import and Export templates .................................................................................................................... 5-29
5.10.3 Advanced Usage ......................................................................................................................................... 5-29
5.11 DEVICE I NTERACTION RESTRICTIONS .......................................................................................................................5-31
6 BUILD PROCESS....................................................................................................................................................... 6-1
6.1 BUILD PROCESS.......................................................................................................................................................... 6-3
6.2 VALIDATION RULES..................................................................................................................................................... 6-5
6.2.1 Disabling warnings.......................................................................................................................................... 6-5
7 SIMULATION MODE............................................................................................................................................... 7-1
7.1 SIMULATION MODE .................................................................................................................................................... 7-3
INTRODUCTION
Chapter 1 - Introduction
INDEX
1
1.1 I NTRODUCTION .......................................................................................................................................................... 1-3
1.2 FEATURE O VERVIEW ................................................................................................................................................... 1-4
1.3 SCOPE AND AUDIENCE ................................................................................................................................................ 1-5
1.4 REFERENCES ............................................................................................................................................................... 1-6
1.5 SUPPORT CONTACTS................................................................................................................................................... 1-7
1.1 INTRODUCTION
In this document the most relevant features of the IDE are presented, namely feature overview, windowing,
management of IDE options, project system, device projects and device management. For device-specific
features check the corresponding guide.
This document is aimed to all users of Automation Studio version 2.6 or later.
1.4 REFERENCES
1
[Ref.] Title Date Rev. Source Doc. Number
When interacting with Efacec please refer your product serial number .
Contacts
Automation Studio Licensing E-mail: [email protected]
Automation Studio Customer Support E-mail: [email protected]
EFACEC Energia, Máquinas e Equipamentos
Eléctricos, SA.
Rua Engº Frederico Ulrich, Apt. 3078
4471-907, Moreira da Maia
General PORTUGAL
Tel: +351 229 402 000
Fax: +351 229 485 428
Web: www.efacec.com
E-mail: [email protected]
WINDOWING
Chapter 2 - Windowing
INDEX
1
2.1 IDE MAIN W INDOW .................................................................................................................................................. 2-3
2.2 CONTENT W INDOWS.................................................................................................................................................. 2-4
2.3 PADS ......................................................................................................................................................................... 2-5
2.4 ARRANGING W INDOWS.............................................................................................................................................. 2-6
2.5 W ORKSPACES............................................................................................................................................................. 2-7
The IDE main window contains a running instance of the whole Automation Studio application. When any
Automation Studio application starts within the Windows operating system, a completely independent
application instance starts running in its own IDE Main Window.
It is possible to have as many instances of the same Automation Studio application running at a given time.
However, some restrictions may apply to specific Automation Studio products, for example, if the user tries
to open and to edit the same Automation Studio proj ect or solution in two or more IDE Main Windows at
the same time.
2.3 PADS
Pads are just small support windows that help the user while he is working on a given content window.
What is available or portrayed in a pad is usually dependent on the active content window and on what the
user is doing at a given moment.
Pads have more placement options:
Docked: Pads may be docked to the bottom, top, left or right of the main window (content
windows always stay in the middle) and multiple pads may be visible at each of these four window
sides (side-by-side). A docked pad is always visible and occupies screen-space (see the Solution
Explorer pad above).
Auto-hide: Docked pads may be placed in auto-hide mode. When in this mode the pads are usually
hidden (no space occupied but also not constantly visible) and are slided in by activating the pad
(clicking on its title) or when the application requires that it needs focusing. When the user
activates another window the pad is slided out of view.
Floating: Pads can also be placed outside the main window (in its own tool window), floating above
the IDE main window.
Closed: Pads can also be closed if not needed for a given user task.
2.5 WORKSPACES
Since all pads and windows can be reorganized, these organizations can also be stored for future reuse. This
will allow you to create a full set of workspaces that can easily adapt to your computing environment, role
or current task.
By default a set of workspaces are already provided to you but you can also create as many new
workspaces as required.
To create a new workspace go to Windows > Workspace > Edit… and fill in the new workspace name and
select New.
After creating the workspace, the new workspace will be available to select on the menu shown in Error!
eference source not found.Select it and you can then start modifying the windows and pads layouts.All
modifications will be automatically stored.
ADDINS
Chapter 3 - Addins
INDEX
1
3.1 ADDINS...................................................................................................................................................................... 3-3
3.1 ADDINS
All Automation Studio release packages contain all necessary features for a particular application. But this is
an extensible tool and some specific product features may be released as product AddIns. This will add a set
of new features to a product edition such as new devices support or advanced productivity tools.
Note that, some AddIns are targeted to a specific set of editions, for example, device support addins will
only work in Engineer or Designer editions.
To access the AddIn Manager just open any edition of the Automation Studio and go to Tools -> AddIn
Manager in the Main Menu. Now you should be able to see the AddIn Manager window that allows you to
install, uninstall or simply enable or disable the addins.
Note that the AddIns are not migrated between versions. If you install a new Automation Studio version you
will have to install all the necessary addins again.
PROJECT SYSTEM
Chapter 4 - Project System
INDEX
1
4.1 SOLUTION .................................................................................................................................................................. 4-3
4.2 LIBRARY PROJECTS...................................................................................................................................................... 4-4
4.3 DEVICE PROJECT......................................................................................................................................................... 4-6
4.1 SOLUTION
To start working with the Automation Studio it is necessary to create a solution. In a solution it is possible to
create new projects and/or add an existing project file.
Any project inside a solution can be removed or unloaded. The remove option does not delete the project
from the file system, just remove it from the solution.
1
See ‘Automation Studio User Manual - IEC 61131-3’ for more information about this.
2
See ‘Automation Studio User Manual - Mimic Editor’ for more information about this.
When you open a project if something went wrong with the available references an overlay will appear. The
warning overlay means that exists a version mismatch, in the example bellow, current System library has
version 1.1 but when reference was added to the references list the available version was 1.0.
The error overlay appears when the reference path is not correct, the reference file does not exists in the
file system. In this case, to solve it just go to the command ‘Change Reference Path’ and fix the path.
After adding a Reference to project, library file elements can be visualized in the Object Browser.
The usual way to add new devices to device projects is to do it based on existing device templates (packed
in the release version by the product team or even user-designed).
After selecting the option “New Device…” a wizard with all supported devic e models and templates will
popup.
The user can also add a new device to a project by connecting to an existing online device. In this scenario
the user will have to choose the appropriate driver as well as c onnection-specific parameters, such as
device IP address. The IDE will try to connect to the physical device, and, if successful, a new device with
available/existing configuration parameters will be added to the current project.
The user has the ability to export a device into a compressed package. This package can later be imported
to any Device Project in Automation Studio.
Note that in the Automation Studio IDE “Options…”, on the “Tools” menu, specific settings to configure
compression ratio and export filters are available, you can find this options in the category Device Project.
Devices can be included in the Device Project via copy-paste operation. The copy operation creates an exact
clone of the Device than can be pasted in any other Device Project (in the same or different Automation
Studio application instances).
INDEX
1
5.1 GENERIC DEVICE ........................................................................................................................................................ 5-3
5.2 CONFIGURATION SETTINGS ......................................................................................................................................... 5-4
5.3 O PERATIONAL SETTINGS ............................................................................................................................................. 5-5
5.4 EVENT RECORDS.......................................................................................................................................................5-15
5.5 DISTURBANCE RECORDS ...........................................................................................................................................5-18
5.6 SYSTEM LOG ............................................................................................................................................................5-23
5.7 FAULT REPORTS........................................................................................................................................................5-24
5.8 CONNECTIONS..........................................................................................................................................................5-25
5.9 DEVICE TOOLS ..........................................................................................................................................................5-26
5.10 DEVICE TEMPLATES ................................................................................................................................................5-27
5.11 DEVICE I NTERACTION RESTRICTIONS .......................................................................................................................5-31
All devices are organized generically using the same structure. This will allow you to easily identify all similar
device configurations or information.
Depending on the device model type some of the previous elements may not be defined. For instance, an
UC 500 doesn’t support ‘Operational Settings’ section.
On the device context menu it is possible to select which elements from the device structure you want to
visualize in the Solution Explorer tree pad.
Driver Actions
Deploy Configuration Settings Sends full or partial built configuration settings to device.
Get Configuration Settings Gets the configuration settings from the device.
Driver Actions
Get Operational Settings Gets the operational settings from the device.
Change Active Group Changes the active groups(s) from the device.
If the device model that is being configured supports the Operational Settings module, when you build with
success its configuration in the Operational Settings section will be created the curren t settings file. The
Operational Settings viewer looks as follows:
Driver Actions
Every object in the operational settings model is extensible; this means that the user can have multiple
combinations of key/value pairs. This mechanism can be used to include information that the user finds
important or to trigger a specific behavior in the compilers, for example in the export of the operational
settings to the XRIO format, these values are normally read-only.
Figure 5.4 Operational Settings window with Tagged Values and Preview
From version 2.6 Rev.4 of Automation Studio is possible to graphically visualize the inverse time curves,
time curves defined and distances.
The viewer is available in pad "Preview".
The curves viewer from inverse and defined time allows estimating the time of action of protective
functions due to the fault current.
Only the following firmware functions will be considered:
Maximum Current Phase Directional (PhaseOC);
Maximum Current Directional Earth (EarthOC);
Maximum Reverse Current Sequence Directional (NegSeqOC);
The curves viewer from inverse and defined time will present itself in the following way:
Figure 5.5 The curves viewer from inverse and defined time
The curves are updated automatically when you change the settings values.
For performance reasons, the resolution of dots is 0.05. If the user wants a lower resolution, you can
change it by choosing “Resolution” in the options window (Tools Options... Operational Settings
Resolution). The low resolution can affect the refresh timing whenever the viewer changes a setting value
of an definition.
Curves are always presented with the application of modifiers where they exist. The modifiers available are:
Time Multiplier;
Adding time constant;
Maximum time;
Minimum time;
Inrush current;
Show Track Info Allows you to activate the cursor to display the
1 coordinates of all points along the curve.
Show Operation Zone Activate the display area of operation for all stages
simultaneously.
Show Original Allows you to turn the curves without the application
of modifiers.
Show Axis Y in Logarithmic Allows switching entity and decimal logarithmic scale
for the axis of Y.
Optimize View Optimizes the view of the viewer.
Show current in primary values Allows you to switch the scale of values of current
between primary values and PU.
By default, when the user selects a stage of a particular group, the display shows the curve of the same
stage and group. If the user select a function or a general definition, the viewer shows all the curves of the
active stages (StxOperation = ON) of the selected group.
By clicking on the area of operation of a curve is possible to select the same. If there is a number of
overlapping areas, simply click several times on the same area for that selection go alternating between
curves.
Clicking with the right button on the area of operation is possible to open the tooltip with information
regarding the curve.
The type of line used to define the curves has different meanings, such as:
Operational Settings support inverse time curves editable by the user. These can be defined point by point
and may be between 6 and 25 points. The curves may be associated with settings (StxCurve) identically to
curves based on known formulas.
The user defined curves are only supported by some devices. To determine if the device supports the user
defined curves should perform update capabilities.
The user defined curves wizard looks as follows:
The curves are only available in operational settings after you finish the wizard. If you use the cancel button,
the changes will not take effect on the operational settings. You can use the cancel button to cancel any
changes, including changes in the templates.
Show Curves Values Allows you to show or hide the list of point of the
1 curves.
Show Curves Graph Allows you show or hide the viewer of the curves.
Add Curve Allows you to add a new curve or add a new curve
Add Curve Point point.
Move down Brings selected curve one position down the list.
The User Defined section represents the curves that can be used in operational settings. You can save these
curves as template to reuse in another operational setting. To do this, use the option “Save as template.”
In the Library section, you can find all templates of the curves. You can change the curves and points of the
templates. To restore the template use the option “Set as user defined curves” and the user defined curves
are replaced by the template. If you want restore only one curve of the template, use the copy/paste
operation on the curve.
The affected settings section indicates the settings that are using the selected curve.
Show Track Info Allows you to activate the cursor to display the
coordinates of all points along the curve.
Show Operation Zone Activate the display area of operation for all stages
simultaneously.
Show Original Allows you to show the defined points.
Show Axis Y in Logarithmic Allows switching entity and decimal logarithmic scale
for the axis of Y.
Optimize View Optimizes the view of the viewer.
Show current in primary values Allows you to switch the scale of values of current
between primary values and PU.
The curves are updated automatically when you change the selection. If you select a curve, only shows the
selected curve. If you select a User Defined node, the viewer shows all the curves.
By clicking on the area of operation of a curve is possible to select the same. If there is a number of
overlapping areas, simply click several times on the same area for that selection go alternating between
curves.
Clicking with the right button on the area of operation is possible to open the tooltip with information
regarding the curve.
Show Guide Lines Show the lines of support for the creation of the figure.
By default, when the user selects an area of a particular group, the display shows the picture of the same
area and group. If the user select a function or a general definition, the viewer shows all the figures of the
active zones (StxOperation = ON) of the selected group.
By clicking on the area of the figure it is possible to select the same. If there is a number of overlapping
areas, simply click several times on the same area for that selection go alternating between the figures. This
selection will take into account the active option "Select Zone".
Clicking with the right mouse button on the area of operation is possible to open the tooltip with
information regarding the Zone / Group.
The type of line used to define the figures has different meanings, such as:
Starting from the version 2.6 Rev.4 the Automation Studio supports the generation of the XRIO (eXtended
Relay Interface OMICRON) format. For the function of the device that supports this funtionality it is possible
to access it in the context menu, or using the main menu (File Menu Export XRIO …) option.
The operational settings cannot contain any errors to use this feature.
In the export is possible to choose the group to export, by default, the selected option is the Active Group
of the operational settings.
Please note that the generation of the XRIO format can depend on the right configuration of the device,
normally semantic extensions are created in the function to be consumed here.
Driver Actions
Tools Options
Merge Event Records Merge logs locally when getting event records.
The event records viewer allows user to simply visualize changes on logged variables .
Events can be analysed in List and in Oscil loscope Views.
In List View is possible to show Data Objects or Data Attributes. This view can be grouped and filtered by
any field.
In the List View it is possible to sort information by any column and it is also possible to add or remove
columns from the viewer.
Name Description
Device Name of the device where the log entry occurred.
3
For instance, a digital entry will appear with value True or False in this column.
In the Oscilloscope View it is possible to analyse the evolution of each variable in the time with a graphic
representation.
In both views (List and Oscilloscope) is available a Tree that is used has a Data Objects filter for user to
chose what objects wants to analyse.
Tree
Chart
Chart
View
View
Properties
Phasor Diagram
alculations
Tree Show or hide tree with all nodes that represents signals.
Signal with changes If checked, shows only signals with changes on values. Otherwise
shows all signals.
4
Move to top Brings selected object (signal or chart) to highest in the list.
Move up Brings selected object (signal or chart) one position up the list.
Move down Brings selected object (signal or chart) one position down the list.
Move to bottom Brings selected object (signal or chart) to lowest in the list.
Create PDF file Creates a PDF file according to the definitions of the current view.
Save as Template Save the current settings as a template. This template will be
used by the Data Retrieval Service to create PDF reports.
4
Only available on user view.
The phasor diagram shows a vector for each visible analogue channel. The diagram is shown to the right of
the analogue chart. The vectors of the phasor diagram are updated when one of the red or blue cursor
moves. To increase the scale of the phasor diagram, move the splitter.
Show/Hide phasors of the blue cursor Show/Hide vectors that represents blue cursor.
Show/Hide phasors of the red cursor Show/Hide vectors that represents red cursor.
The calculations section contains a table with the values from the calculations of the red and the blue
cursor located in the chart view. The values of this section are updated whenever one of the cursor is
moved.
To change the precision of the calculations, open the Options on “TOOLS->Options” and select the node
“Disturbance Records Analyser” and change the property “Precision”.
It is possible to group and/or sort by any column calculations. To do this, use the context menu that appears
when you press right click on the column headings.
Name Description
Cursor Cursor (Cursor 1 – Red; Cursor 2 - Blue)
Name Description
Time (ms) Time in milliseconds relative to the trigger.
1 Signal ID Name of the signal.
When select the cursor, you can view the properties on Properties Pad.
Name Description
Cursor Cursor (Cursor 1 – Red; Cursor 2 - Blue)
The fault reports viewer allows user to simply visualize report of the faults.
The Fault Reports viewer looks as follows:
Export to PDF Creates a PDF file according to the definitions of the current
view.
Print Print Fault Report.
Show/Hide columns Allows show / hide columns for the title and description.
5.8 CONNECTIONS
Driver Actions
Warm Reset Resets device and restarts with values (only persistent variables).
Create Device Package Create a device package with the current device settings. In the tools
option it is possible to select which sections should be included in the
device package, such as, configuration, connection(s), output files and
others.
Create Device Template It is possible to create a device template based in the current device
configuration. After performing this action in the ‘Add New Device’ tree
will appear a section with User templates.
Automation Studio includes a set of predefined device templ ates. They represent a base configuration that
can be used as a starting point for a new device configuration. These templates can be extended by the user
and shared with other users.
To create a device template, a device configuration must first be created. An action is available in the main
menu (DEVICE > Tools > Device Templates > Create Device Template…) to start the template creation
process.
A name for the template is automatically suggested and is possible to define a title and a description, in
several languages. A manual in pdf format can also be attached to the template. When creating a device
from a template all extra information about the template wil l appear, as well as an image of the device
model.
It is also possible to create a zip template by using the option "Package", the template is created as a file
with extension .adt, instead of a folder. User can also define the creation path of the template. If the
location is not the default the template is created as a package.
Automation Studio will identify a set of predefined configuration parameters that can be considered as
template configuration values 5. These parameters will be replaced by keywords that will have the current
values as default values. This information will be asked to the user when instantiating a template, allowing
to configure the new device with new parameters. All of these keywords can be associated, or not, with a
Validation Rule that will be used to ensure that a value selected for it will be within its allowed values.
5
Each device model will use create different keyword replacements. Check the corresponding user manual
for additional information.
6
Validation Rule Description
1 Device Name ^[A-Za-z0-9][A-Za-z0-9_ -]*$
Parameter must start with a letter or number and contain only letters, number,
underscores or hyphens in the remaining letters. The minimum length is 1
characters and the maximum length is 64 characters.
As stated previously, Automation Studio already includes a set of device templates. These are considered
System templates. There are two additional locations that can be configured with device templates.
Templates included in a specific user documents folder are called User templates and templates included in
an optionally configured folder are called Team templates.
User templates are located in “%USERPROFILE%\Documents\Automation Studio\Templates\Devices”. This
is the default location used to store user created templates. Team templates are located in a user specified
location in the IDE options, as depicted below. This can be a local path or a network share. It must,
however, must be a full path definition.
6
The validation rules are described using Regular Expressions. See 13.5.1 for additional information.
The folder structure inside these folders are also relevant. The first folder inside these folders must have a
specific device model name. To ensure that the correct name is used, it is recommended that the user firs t
create a device template using the integrated wizard. Under that folder, any folder names can be used. The
directory structure will be used to create a hierarchical organization on the New Device Wizard. By default,
Automation Studio will create a folder with the device firmware version and inside a folder with the device
name. The user can modify this structure however he sees fit.
Figure 5.18 New Device Wizard with System, User and Team templates
Templates packages can be imported and exported to/from Automation Studio. This actions are available in
the main menu (DEVICE > Tools > Device Templates).
Export action will create a file, with extension .adtp, that is a package containing all the device templates
selected by the user (from a list of available User templates).
In import action the user can select a single template (.adtp file) or a package of templates. Templates
selected will be imported to User default location or to Team location (if available) and if a template with
the same name already exists in the selected location new names will be suggested. After the import
process the imported templates will appear in new device creation wizard.
Inside the template directory, a “template.xml” file exists. This file is what identifies that the folder
represents a template and it contains some options that can help to control the device template creation
even more. Do note that this is considered an internal file and any manual modifications must ensure the
correct validity of the file. Below you can find information on what can be modified within this file.
Keyword Allows the user to define replacement values for a specific value. When the
template is being processed, the tool will search for all ${value of Id attribute}$
in all files that match the given filters and replace it be the value that will be
provided by the user.
Allowed attributes:
Id: identifier of the keyword
Title: user friendly name to be presented to the user
Description: small description of the application domain of the keyword
Type: type that will be used to parse the value
o String
o Bool
o Color
o Int
o Int32
o Double
o Float32
o IP
o DateTime
o Duration
DefaultValue: default value that the keyword wi ll have
ValidationRule: Regular expression that will be used to validate the
value
Several device interactions are, by default, conditioned to a match between the project information and the
live device information. This is done to ensure that the action is performed in the correct device. However,
in some situations, it may be required to disable these restrictions to allow the i nteraction with the device.
An example of such scenario is when a device configuration is duplicated, which includes all device
information. Additional restrictions are validated depending on the device model. Please check the
appropriate manual for more i nformation.
Firmware Version Validates if the local firmware version matches the Deploy Configuration Settings
remote device name. If validation is active, it will
Deploy Operational Settings
generate an error, stopping the action. If false, it will
generate only a warning and continue with the action. Get Operational Settings
To overcome this mismatch, an Update Capabilities
must be performed.
BUILD PROCESS
Chapter 6 - Build Process
INDEX
1
6.1 BUILD PROCESS.......................................................................................................................................................... 6-3
6.2 VALIDATION RULES..................................................................................................................................................... 6-5
There are several actions that have general behaviour, independently of the type of object the user is
working on. Some of those actions wil l be described in this section.
Name Description
Disk Space Actions
Remove Backup Files The remove backup files action will delete all backup information
presented in the file system of the selected object.
Optimize Disk Space The optimize disk space action will delete all intermediate date presented
in the file system from the selected object, such as, output files, backup
information, build log files, etc.
Build Actions
7
Build The build command generates an output with all the needed files (files
that have no difference are not built). The result of an build action can
later be in other features.
Clean The clean command removes all the output that was generated by the
build command.
7
Rebuild The rebuild command performs a clean operation followed by a build. It
removes all the output and intermediate objects, and builds all the
objects again.
Validate The validate action validates the configuration of the selected object.
7
Build action should be used while testing the configuration and the rebuild action should be done to
ensure consistency of data.
If the previous option is disabled or if you just build one device it can allow to perform actions of build from
Efacec devices simultaneously. For example, you can create settings 61850, FTP, WatchDog, etc,
simultaneously. This option is also enabled by default, but you can change it through option “parallelize
1 building operations." To access, click 'Tools' in the Automation Studio main toolbar and then click on
'Options ...', select 'Efacec IED Series' and change option on 'Build'.
The Build Actions of Projects and Devices can be customized by modifying or creating a build.xml file. All
Devices contains a build.xml file that usually specifies the Build, Validate and Clean actions, but it is possible
to add Pre and Post-Build Steps. In device projects and library projects it is possible to specify Pre and Post-
Build steps too, creating a build.xml file near to the project file.
To see a full example of the build.xml configuration execute ASBuild process with option –h followed a path,
a build.xml file will be written in that path. To run the ASBuild outside of the Automation Studio it is
necessary to open a command prompt window located directory Bin from the installation directory and call
ASBuild.exe followed arguments.
The Device project has a property named: ‘Enable System-Wide Validation’. If this property is set to true the
Validate action will perform a system-wide check of all relevant inter-device elements including IEC 61850
communications.
ID Validation Description
Errors
1007 Device Time Zone Device Time Zone does not match with element container.
1009 IP Address Start The start IP address must be less or equal to the end IP
address.
The end IP address must be greater or equal to the start IP
1010 IP Address End
address.
Warnings
1008 Device IP IP address is out of range
Automation Studio has the ability to disable the output of warnings during the build and validation
processes, and in order to do this the user can either disable the output of all warnings, or disable only
some of the warnings.
All projects as well as devices have two properties which help accomplish this.
Properties Description
Disable All Warnings Setting this property to True means the output of all warnings will be
disabled.
Disabled Warnings A semi-colon separated list of warning IDs, which will not be output.
SIMULATION MODE
Chapter 7 - Simulation Mode
INDEX
1
7.1 SIMULATION MODE .................................................................................................................................................... 7-3
7.2 IDE I NTEGRATION ...................................................................................................................................................... 7-4
With simulation mode the user can test and debug it’s devices without having to deploy a configuration,
and validate that the device will behave has expected.
It is possible to simulate the whole device, or just parts of it like the Mimics and the Automation modules,
or even just parts of a module like for instance a Mimics page.
Starting in the Automation Studio 3.0 Rev. 1 [2015 Q2] it is possible to simulate more than one device at a
given time, for that a device project or a device container (Bay, Voltage Level, System or Folder) should be
selected. If the configuration contains GOOSE mappings between them then this communication will also
be emulated (not that the delay of the communication, or the failure of communica tion is not simulated), if
one end of the communication mapping changes then the other also changes.
Please note that this feature can be a little slow if the number of devices or the size of the devices
configuration is high.
Windows
The simulation explorer pad allows the user to quickly access all elements, such as mimics pages or
automation tasks, in the current simulation environment. It also allows the subscribing, if the module is
active, of record changes, by right clicking on ‘Data Objects’ and ‘Automation’ elements.
8
For more information, see Device Interaction (Server components) in this manual.
With the decluttering pad the users are able to view all of the page’s layers and decluttering animations.
1 This allows the user to debug any decluttering animations and any defined page limits; it also allows turning
on/off decluttering animations and controlling the visibility of page layers.
If active, all layers and objects with decluttering in the mimic page
Show All
will be visible.
If active, all layers and objects with decluttering in the mimic page
Hide All
will not be visible.
Table 7.3 Decluttering pad toolbar items description
Variable information can be listed in Data List 1 and Data List 2 pads.
Lines are colored according with variable quality:
Invalid: Purple
Reserved or Questionable: Green
Variable doesn’t exist: Gray
Name Description
Full Name Full name of the object.
There are several options that the user can change to better suit its needs.
To access the Simulation Mode options, click ‘Tools’ in the Automation Studio main toolbar and then click
on ‘Options…’, select ‘Simulation Mode’.
Option Notes
9
Alarms Module
Automation Module
Determine how the tasks cycle according to task priority: high, above
Task Cycle
normal, normal, below normal, low.
If set to true, when a value attribute is updated by the module, the time
Write Time Stamp
stamp is also updated.
Event Records
Auto Subscribe Changes If set to true, changes to subscribed variables are done automatically.
General
If set to true, will activate the debugger module when simulating the
Debugger Module
automation module.
User Interface
If set to false, the user will be asked to save any modified files before
Remember Save Decision
simulation starts.
9
This module is available only for testing purposes.
Save Decision Last save decision chosen by the user before starting simulation.
If set to true, the time stamp attribute will be update when the user
Write Time Stamp
updates the status attribute.
7.2.6 EVENTS
In Simulation Mode is possible to record variable changes, if option “Include Module” is enable when
starting simulation.
If option “Auto Subscribe Changes” is disabled, user needs to choose option “Record Events” in Data
Objects that wants to analyze. At any time can also Stop Recording Events.
ONLINE MODE
One of the most useful features on Automation Studio is the ability to explore a device in more detail using
the Online Mode. In order to go to Online Mode select the device you wish to explore and press Go Online
button on the Solution Explorer toolbar at the top.
During the Online Mode the user is able to verify current values of data objects / data attributes and
therefore have a better idea of the current state of the device.
There are two protocols which the user can use to connect to a device: IEC 61850 and Diagnostic Protocol.
These protocols are only available on devices which support them.
Chapter 8 - Online Mode
INDEX
1
8.1 O NLINE EXPLORER PAD .............................................................................................................................................. 8-3
8.2 O BJECTS EXPLORER .................................................................................................................................................... 8-4
8.3 EVENTS ...................................................................................................................................................................... 8-7
8.4 CONNECTING USING IEC 61850................................................................................................................................. 8-8
8.5 CONNECTING USING DIAGNOSTIC PROTOCOL.............................................................................................................8-13
The toolbar of the Online Explorer – see figure below for more details - will allow the user to perform
actions like enabling or disabling the connection to a device, opening the Events viewer, showing or hiding
diagnostic objects and data attributes .
The user is also able to refresh all variables at a specified rate, by enabling the Auto refresh of values
feature, or polling.
Tree
Variable List
View
Pattern Allow to apply filters to the variable list according to the name of
the object.
Clear all objects from variable list.
Clear All
Only available if Auto option is not check.
Table 8.1 Toolbar commands on the Objects Explorer
The tree contains all devices online. When you select an element, the variable list will be filled with all
children elements. If the device is connected using the IEC 61850 protocol, the view will be updated with
the representation of the selected element. If the selected element is a data object, the logical node that
contains that data object will be presented.
In the Variable List the user can order, show or hide any column. In order to do this, use the context menu
when you right-click on the column headings.
Figure 8.4 Context menu of the column headings of the Variable List
The Variable List has the same behaviour as the Data List Pad. It is possible to simply drag and drop rows
from the Variable List into the Data List and vice versa.
The objects on both lists point to the same data source, even though the na me might be slightly different.
8.3 EVENTS
When in Online Mode it is possible to view and record events as they are triggered, and they can be
analysed in Events View, as it is mentioned in chapter 0.
In order to record events, the option “Event Records Module” must be enabled before starting Online
Mode. The option can be found by navigating to the main menu Tools – Options and selecting Online.
If the device is connected using IEC 61850, it is possible to view and record GOOSE messages and Report
events. In order to do this, please read chapter 8.4.2 for more information.
It is also possible to view and record events if the device is connected using Diagnostic Protocol, please read
chapter 8.5 for more information.
When the Online Mode stops, all of the events occurred during an Online session can be saved in a file
location chosen by the user.
The View section has a similar behaviour to a Mimics Simulation Window. Please read the Mimics Editor
manual to learn more about its functionalities, such as shortcuts.
This view will allow you to explore the device by function, help you determine the health and behaviour of
the device as well as each function. There are various views which depend on the type of object selected
(e.g. Device, Logical Device, Function and I/O) that will enable the user to do this .
Device Template
Template used for the representation of a device.
Each Logical Device template is composed of many Logical Nodes and their corresponding templates.
Mode Health
The simplified representation of the Logical Node may be one of the following:
Interlocking (CILO).
Measurement (MMXU).
IO Template
Template used for the representation of an I/O of the Logical Device.
Behaviour
Mode
Health
Execute Control
Write Value
Function Template
Template used for the representation of a Logical Node.
Write Value
Execute Control
In order to subscribe to GOOSE messages, you must have a device with at least one GOOSE control block
setup and you must add it to your project using the right connection configuration, i.e. IEC 61850
connection.
If you wish to learn more about GOOSE and Report messaging please refer to [1] manual, which will detail
why these messages are important and how to correctly configure a device for Online Mode.
Once you start Online Mode, you are able to subscribe to individual GOOSE or Report control blocks, or
subscribe to all available control blocks within a device, a Logical Device or a Logical Node.
In order to subscribe to GOOSE messages, simply navigate to where the GOOSE control block is located,
right-click on it and press the Subscribe command. This also applies to Report messaging, you simply find
the Report control block you wish to subscribe, right-click on it – you should see a context menu similar to
figure shown below - and press the Subscribe command.
During Online Mode and when connected using IEC 61850 protocol, you are also able to retrieve any files
from the device’s file system. Please note not all devices support this feature.
To make sure you are able to download any files from the device, the user is required to right-click on the
Files node and press Refresh. If any files are available, they will appear under the Files node as
soon as the refresh is complete.
In order to download these files you’ll need to right-click on the desired folder(s) or file(s) and press Get
Folder(s) or Get File(s). You are able to select any number of files or folders for download.
If you download a whole folder, you will download its entire file structure. For instance, if you press Get
Folder(s) on the Files node, you will download the entire file and folder structure visible under the Files
node.
8.4.4 MIMICS
If you go online with an Efacec device and it contains Mimics configuration, then Automation Studio will
automatically open the most appropriate Mimics page - similar to what happens duri ng Simulation mode -
and will update any and all IEC 61850 variables available in that page.
Only Efacec IEDs and UC500 devices support this protocol and in order to use this feature, the user must
first set the option “Use Diagnostic Module” which can be found on the main menu Tools – Options –
Online.
On the same location the user can also find some options which deal with how Automation Studio verifies
the connection with the device. If any of these options is set to True and the corresponding local and
remote values do not match, the Diagnostic Protocol connection will stop.
Please note that if the device also supports the IEC 61850 protocol described in chapter 8.4 the Diagnostic
Protocol connection will take precedence over it.
The objects explorer View – when using Diagnostic Protocol connection - is only available on devices that
support Automation during Online Mode. This enables the user to open FBD programs and easily analyse
the current program.
8.5.2 EVENTS
In order to record events while using this feature, right-click anywhere on the device’s data model and press
the “Record Events” – a context menu similar to the one shown below should pop-up.
Figure 8.13 Context menu of an object when connected using Diagnostic Protocol
Please note that the “Record Events” command is context-sensitive, which means that if you right-click on
the whole of the data model, any and all objects for which an event is fired will be reported on the Events
view. On the other hand, if you right-click on a single object only events fired for that object will be
reported.
8.5.3 AUTOMATION
One of the advantages of the Diagnostic Protocol is the ability to diagnose the Automation configured by
the user.
In order to take full advantage of this feature, the user must ensure the properties “Online Mode” and
“Generate Symbol Table File” on the Automation module are set to True before building and deploying the
configuration.
During Online Mode the user can enable the Automation module and navigate the available tasks. The user
is able to open FBD programs in a separate view - as discussed previously - and check the values of the
current program.
1
8.5.4 MIMICS
Similar with what happens when connecting using IEC 61850 protocol, if you go online with an Efacec
device that has Mimics configuration, Automation Studio will automatically open the most appropriate
Mimics page. Any and all variables referenced on that page are automatically monitored to detect changes.
SYSTEM MANAGEMENT
Chapter 9 - System Management
INDEX
1
9.1 SCAN NETWORK ......................................................................................................................................................... 9-3
9.2 SYSTEM CONTROL PANEL ............................................................................................................................................ 9-5
9.3 MULTIPLE DEVICE ACTIONS ......................................................................................................................................... 9-7
The Scan Network allows the user to scan for available devices on the network. It essentially pings every IP
address in the specified range in search of a device. For each device found, it tries to identify the associated
driver for effective communications.
To access the scan network functionality, go to the main menu and click on “Networking” and then “Scan
Network”. The devices list is composed of the following fields:
Name Description
IP IP address.
Each device on the list has a context menu with the following options:
Add to Project... The user will be asked the location to add devices and will
be asked to give a username and a password to access
the device.
Web View... Opens the device’s web page view using its IP address.
The System Control Panel allows the user to keep track of configuration differences between IEDs and
project.
It provides a quick visualization of the current state of all devices included in a project, indicating if all
devices are alive or if there is any inconsistency present.
There are two System Control Panel pads and to access them go to the main menu and click on
“Online” and then choose System Control Panel 1 or 2 in “Windows” sub-menu.
On the toolbar, the user can find the following commands:
Name Description
Full Name Full name of the device.
Name Description
Unidentified: If it cannot identify device;
1 Consistent: If local information equals remote information;
Error: If local and remote information don’t match (i.e.
model, firmware version or order code);
Warning: If local and remote name, configuration version
or manufacturer are not a match;
Icon Description
This section describes the actions that can be performed on multiple devices. The result of all these actions
will appear on the Driver category of the output window pad.
Get Operational Settings Gets the operational settings from the device.
10
DATA RETRIEVAL SERVICE
Chapter 10 - Data Retrieval Service
INDEX
1
10.1 DATA R ETRIEVAL SERVICE .......................................................................................................................................10-3
10.2 SCHEDULES............................................................................................................................................................10-6
10.3 ACTIONS ................................................................................................................................................................10-9
The Data Retrieval Service enables users to retrieve data from devices according to specific schedules and
actions. To configure this service follow the following steps:
Start the Automation Studio Designer as Administrator. Some actions, like installing services,
require elevated permissions.
Open or create, a project that contains all the devices that wish to monitor.
To configure the service use the "Configure Service" button on the Data Retrieval Service pad.
Figure 10.3 Result of a “Get System Log” action of the Data Retrieval Service
Every time you want to reconfigure the service, should stop it, reconfigure it and start it again.
If you want to monitor the status of the service, you can use the System Event Viewer or the included text
log viewer.
Figure 10.5 Command to access Data Retrieval Service Log in text log viewer
If you want to configure the service in a different or more specific way, you can also generate it's
configuration to a folder and manipulate the configuration by hand. This is a more advanced feature that
will allow personalizing, for example, the refresh cycle for each action independently or the locations were
the files are stored. You can also use this configuration in a specific Automation Studio Server to run these
actions without the Automation Studio Designer Edition installed.
10.2 SCHEDULES
1
The Data Retrieval Service can run multiple schedules simultaneously. To do this you must change the file
“scheduler.config”.
This schedule will only execute one time, on the date and time specified.
Property Description
Name Represents a unique scheduler identifier.
StartTime Represents the beginning date and time of the scheduler. If there is no property, will be
automatically started by default.
AttemptsNumber Represents the number of retries on errors.
Active Represents the state of the scheduler (True or False).
Example:
<OneTimeSchedule Name="OneTimeSchedule1" StartTime="27-05-2011 11:40:22" AttemptsNumber="3"
Active="True" />
Property Description
Name Represents a unique scheduler identifier.
StartTime Represents the beginning date and time of the scheduler. If there is no property, will be
automatically started by default.
AttemptsNumber Represents the number of retries on errors.
Active Represents the state of the scheduler (True or False).
CyclePeriod Represents the period of the cycle:
Example:
1h30 – 1 hour and 30 minutes for cycle;
30m – 30 minutes for cycle;
30s – 30 seconds for cycle.
Example:
Property Description
Name Represents a unique scheduler identifier.
StartTime Represents the beginning date and time of the scheduler. If there is no property, will be
automatically started by default.
AttemptsNumber Represents the number of retries on errors.
Active Represents the state of the scheduler (True or False).
RecurEvery Represents the recurrence frequency of days.
Property Description
Name Represents a unique scheduler identifier.
StartTime Represents the beginning date and time of the scheduler. If there is no property, will
be automatically started by default.
AttemptsNumber Represents the number of retries on errors.
Active Represents the state of the scheduler (True or False).
RecurEvery Represents the recurrence frequency of weeks.
WorkingWeekDays Represents the days of week where will work.
Example:
1 – Sunday; 2 – Monday; 3 – Tuesday; 4 – Wednesday; 5 – Thursday; 6 – Friday; 7 –
Saturday;
Example:
<WeeklySchedule Name="WeeklySchedule1" StartTime="27-05-2011 11:40:22" AttemptsNumber="3"
Active="True" RecurEvery="1" WorkingWeekDays="1, 2, 3, 4, 5, 6, 7" />
Property Description
Example:
<MonthlySchedule Name="MonthlySchedule1" StartTime="27-05-2011 11:40:22" AttemptsNumber="3"
Active="True" WorkingMonths="1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12" WorkingMonthDays="1, 2, 3, 4, 5, 6, 7, 8,
9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31" />
10.3 ACTIONS
Each schedule allows multiple actions. To define actions you must change the file “dataretrieval.config”.
This action gets the event records and stored in the specified destination folder.
Property Description
Path Represents the path of the device.
DestinationPath Represents the destination folder where event records are stored.
ScheduleName Represents the name of the scheduler where this action is executed.
Example:
<GetEventRecords Path="UC 500\Device" DestinationPath="UC 500\Device\Events" ScheduleName="
CyclicSchedule1" />
This action gets the disturbance records and stored in the specified destination folder.
Property Description
Path Represents the path of the device.
DestinationPath Represents the destination folder where disturbance records are stored.
ScheduleName Represents the name of the scheduler where this action is executed.
Example:
<GetDisturbanceRecords Path="UC 500\Device" DestinationPath="UC 500\Device\Disturbances"
ScheduleName=" CyclicSchedule1" />
This action gets the system logs and stored in the specified destination folder.
Property Description
Path Represents the path of the device.
DestinationPath Represents the destination folder where system log is stored.
ScheduleName Represents the name of the scheduler where this action is executed.
Example:
This action gets the fault reports and stored in the specified destination folder.
Property Description
Path Represents the path of the device.
DestinationPath Represents the destination folder where fault report is stored.
ScheduleName Represents the name of the scheduler where this action is executed.
Example:
<GetFaultReports Path="TPU 220\Device" DestinationPath="TPU 220\Device\Faults" ScheduleName="
CyclicSchedule1" />
SERVER COMPONENTS
11
Chapter 11 - Server Components
INDEX
1
11.1 SERVER COMPONENTS ...........................................................................................................................................11-3
11.2 BASIC SERVER MODULES ........................................................................................................................................11-4
11.3 DEVICE I NTERACTION .............................................................................................................................................11-6
First of all it is possible to use the Automation Studio Server without having to install the Automation
Studio, there’s a specific installer that installs this component.
The Automation Studio Server is an executable file that runs a configuration based in XML files. The default
Server environment looks as follows:
The main module of the server configuration is the ‘server.config’ file. This file specifies all modules that are
configured. To configure a module in the this file it is necessary to specify the module Name, Assembly and
Class than, depending on the module type it is possible to specify other things, such as debug level,
configuration file, etc.
Server configuration example:
The RTDB Module definition in the ‘server.config’ file it is possi ble to specify the debug level (Debug=1), the
configuration file (config=”rtdb.config”). It is also possible to define if we want to keep a snapshot file from
the RTDB in Log directory specifying the snapshot file (snapshot=”rtdb.snap”), snapshot cycle in ms,
10 11
snapshot format and mode .
In the RTDB configuration it is possible to define:
Enumeration Data Types
<CompositeDefinition
id="DPS" description="Double point status.">
<SimpleElement id="stVal" description="Status value of the data." fc="ST" tc="UInt8" t="Dbpos" />
<SimpleElement id="q" description="Quality of status data." fc="ST" tc="Quality" />
<SimpleElement id="t" description="Timestamp of the status data." fc="ST" tc="DateTime" />
</CompositeDefinition>
Database
<Database>
<Container id="1" name="CTRL" description="CTRL" fc="C_LD">
<Container id="2" name="AGR" fc="C_FUN">
<CompositeVariable id="3" name="Pos" fc="DO_ST" t="DPS" init="q=Good;stVal=3" />
<CompositeVariable id="4" name="Agr" fc="DO_ST" t="SPS" init="q=Good;" />
</Container>
</Container>
</Database>
10
XML or Binary
11
All or Default, the default mode only snaps persistent variables.
The Logger Module definition in the ‘log.config’ file it is possible to specify ‘OnEvent’, that if true the
variable change is register everytime the event of changing (state or value) is fired. It is also possible to
define “AutoAdd” that if true, variables are subscribed to changes automatically.
By default, the remoting module establishes an IPC connection named like the server name (presented in
the ‘server.config’ file), but it is possible to establish other communications channels. Those communication
channels must be defined in the ‘remoting.config’ file.
Remoting configuration sample:
<configuration>
<system.runtime.remoting>
<application>
<channels>
<channel ref="tcp" port="8989" />
<channel ref="http" port="8880" />
</channels>
</application>
</system.runtime.remoting>
</configuration>
12
12
TEAM COLLABORATION
Chapter 12 - Team Collaboration
INDEX
1
12.1 TEAM COLLABORATION ..........................................................................................................................................12-3
12.2 I NITIAL CONFIGURATION.........................................................................................................................................12-4
12.3 SERVER EXPLORER..................................................................................................................................................12-5
12.4 PENDING CHANGES................................................................................................................................................12-6
12.5 SOLUTION EXPLORER..............................................................................................................................................12-7
12.6 REVISION CONTROL W ORKFLOW ............................................................................................................................12-9
12.7 CONFLICTS.......................................................................................................................................................... 12-10
12.8 USAGE R ESTRICTIONS AND GUIDELINES................................................................................................................ 12-11
Revision Control is a tool to manage files and directories over time. Files are stored in a central repository.
The repository is much like an ordinary file server, except that it remembers every change ever made to
your files and directories. This allows you to recover older versions of your files and examine the history of
how and when your data changed, and who changed it.
Credentials are needed on the first access. Once you enter a valid user and password the login window will
not appear again. You can always change the User by selecting Change User in Server Explorer pad.
Once the connection to the server is established the server content is listed in a tree.
If you want to work on a content that is already in the server all you have to do is map the trunk or the
branch where that content is to a local workspace. The command Map to Local will get the server version to
your computer and this workspace will become under Revision Control.
If you want to map some content that only exists in your computer you need to copy the content to a
workspace under revision control. If you want to create a new and empty workspace you must first right-
click on the Server and press Add Server Project. Then select the trunk and use the command Map to Local
to create a local workspace.
Tags: markers to highlight notable revisions in the history of the repository. You cannot modify
tags, only download or create branches.
Solution Explorer pad maintains the same structure, the only difference are additional overlays in items
under Revision Control.
The following diagram describes the Revision Control Workflow, and in general terms once we have a
workspace, the user is able to get the server revision of the project. Afterwards, the user is able to edit files
using Automation Studio or using an external tool. These changes can either be committed to the server or
discarded by the user.
12.7 CONFLICTS
1
Some conflicts may occur when checking in or getting versions.
In this case a window will appear with a list of the conflicted files. By selecting each file you can see its
history using the button Show Log.
You will then have to choose if you want the server version or the local version. If you choose Server, you
will lose your local changes. If you choose Local, when you check in your changes they will overwrite the
server version.
To maintain an effective work environment some guidelines and restrictions should always be followed by
Revision Control users.
All operations must be executed using Automation Studio and never in Windows Explorer. Listed below is a
list of operations not recommended in files/folders in Windows Explorer that compromise the effectiveness
of Revision Control.
Delete
Rename
Copy
Move
Drag/drop
Automation Studio doesn’t have a merge tool integrated in Revision Control, so, to avoid conflicts
impossible to solve without losing work some rules should be followed.
Different users must work in independent components, such as, Device Configuration, Automation Module
or Mimics Module. Other independent components are Pages and Symbol files, Functions, Function Blocks
and Programs body. In these independent components, check in, get latest, undo, and other operations can
be performed.
When changing device project or library project structure, such as, add, delete, move, rename of any
project element (System and Devices in the Device Project, and Functions and Variables in the Library
Project), the check in and undo operations must be performed in the Project node at the Solution Expl orer
tree or selecting all pending changes in Pending Changes Pad.
Those structure changes must be performed by one user only. The workflow should be:
All users make check in of all pending changes
User A, make all the project structure changes
User A perform check In on the Project node
All other users get latest revision
Now, all users can perform changes in independent components.
If you want to copy a folder in Windows Explorer (for instance, if you want to give a zip file to someone else)
it is recommended to use the Export option available in Tortoise. Right-click on the folder and choose
“TortoiseSVN” and then “Export”. Check the option “Export unversioned files too”. This new folder will have
the same content as the original but without Revis ion Control files.
ANNEXES 13
Chapter 13 - Annexes
INDEX
1
13.1 IDE O PTIONS.........................................................................................................................................................13-3
13.2 GUI L ANGUAGE .....................................................................................................................................................13-4
13.3 USER SETTINGS ......................................................................................................................................................13-5
13.4 T4 SCRIPTING ........................................................................................................................................................13-6
13.5 PATTERNS FOR FILTERING AND SEARCHING..............................................................................................................13-9
13.6 FILE TYPES .......................................................................................................................................................... 13-11
13.7 SHORTCUTS ........................................................................................................................................................ 13-14
Each user has the possibility to customize some IDE options. They are kept between sessions and can be
restored to their default values at any time. Those options can be found on the Tools menu.
These are the personal settings that the user has changed on Automation Studio, all is saved inside the
%AppData% of the current user. The user settings currently saved are,
IDE Options (options.def);
IDE Layout and Workspaces (Layouts Directory);
Last solutions and files open (StarterProperties.xml);
History of navigation in the IDE browser (StarterProperties.xml);
Installed add-ins (Only valid for versions 2.5 and higher) (AddIns.xml);
o Do not try to migrate this file. AddIns must be reinstalled in every new minor/major
version.
The variables added to the data list for online or simulation (simulationVarList.def).
The external tools configuration (AutomationStudio-tools.xml)
When the user upgrades the version of Automation Studio it is possible to migrate almost all the personal
settings, by following the next procedure.
Before starting the user must be sure that all instances of Automation Studio are closed.
Next, the user must open an instance of the Windows Explorer, type in the address bar the following
address, replacing the Edition and the Old Version values according to the previous version, then copy the
files in that folder, note that the migration can be made partially (copying only some settings). On Windows
Explorer, typing the same address as above but replacing the version with the new one. Paste the files
previously copied to the new folder and the migration is complete.
13.4 T4 SCRIPTING
1
T4 (Text Template Transformation Toolkit) scripting is a mixture of text blocks and control logic that can
generate a target file. The control logic is written as fragments of program code in Visual C# or Visual Basic.
The generated file can be text of any kind, such as a UC500 xml model file, or a mimic page, or a ST program
source code.
This feature will enable the user to create dynamic behaviour in any device templates file, automation
object or automation template.
To define a specific language in each the file should be processed just enter the following line in the first
line of the text file, if none is specified then the file will be processed in C#.
Example:
On VB.NET,
Output:
For VB.NET,
T4 Text Templates consist of three parts , the derivatives, text blocks and controls blocks that are going to be
explained on the following entries.
13.4.1 DERIVATIVES
Directives control how the template is processed. They are represented by the prefix <#@.
Text blocks which contain text that i s directly copied to the output, in the example the “Date and time:” is a
text block.
Control blocks – basically program code that controls the flow of the template or generates output text
using variables and function:
Evaluation Control Blocks <#= myVariable #> which allow you to output variables
Code Blocks <# var myVariable=”hello”; #> which allow you to write code
Class Blocks <#+ void x(){} #> which allow you to define functions or inner classes
13.4.4 TOOLS
It is possible to write the T4 scripts on any text editor (Notepad++, WordPad,...), but for more advanced
support it is recommended the use of the Visual Studio 2010 or 2012 product with the T4 Editor extension.
In here the user can find other references that are helpful to understand and learn more advanced parts of
the T4 Text Template Engine.
http://msdn.microsoft.com/en-us/library/bb126445
http://www.olegsych.com/2007/12/text-template-transformation-toolkit/
Patterns can be used in any search/filter box of the IDE, as well as in replacement features.
Metacharacter Description
. Matches any single character except the newline character \n. To match any character
including the \n, use a pattern like [\s\S].
* Matches the previous character or sub-expression zero or more times [Maximal].
+ Matches the previous character or s ub-expression one or more times [Maximal].
@ Matches the previous character or sub-expression zero or more times [Minimal].
# Matches the previous character or sub-expression one or more times [Minimal].
^n Repeat n times.
[] Marks the start and end of a bracket expression.
[^...] Represents any character not in set.
^ Matches the position at the start of the searched string. If the Multiline property is set,
^ also matches the position following \n or \r.
$ Matches the position at the end of the sea rched string. If the Multiline property is set, $
also matches the position before \n or \r.
< Represents beginning of word.
> Represents end of word.
() Marks the start and end of a sub-expression. Sub-expressions can be saved for later use.
| Indicates a choice between two or more items.
\ Marks the next character as a special character, a literal, a back reference, or an octal
escape.
{} Marks the start and end of a quantifier expression.
nth Represents tagged text.
\(w,n) Represents right-justified field.
\(-w,n) Represents left-justified field.
~(X) Prevents match.
:a Represents an alphanumeric character.
:c Represents an alphabetic character.
:d Represents a decimal digit.
:h Represents an hexadecimal digit.
:i Represents an identifier.
:n Represents a rational number.
13.5.2 WILDCARDS
1 Metacharacter Description
? Represents any single character.
# Represents any single digit.
[!] Represents characters not in set.
* Represents one or more characters.
[] Represents a set of characters in the list. Exactly one character in the list is matched.
Within these brackets, you can use a hyphen (-) to specify a range.
12
Only available in Engineer and Designer Edition.
13
Only available in Designer Edition.
14
C – Can be created within the IDE via the New command (or generated by tools or compilers). O – Can be
opened via the Open command (or by other specific means) for use, editing and/or viewing. R – Is
registered as an Automation Studio file and can be opened directly via Windows Explorer. I – Can be
imported. E – Can be exported.
13.7 SHORTCUTS
1
Shortcut Notes
File
CTRL+N New document
CTRL+SHIFT+N New project
CTRL+O Open
CTRL+S Save
CTRL+SHIFT+S Save all
CTRL+W Close
CTRL+P Print
ALT+F4 Exit
Build
CTRL+F6 Build solution
CTRL+F12 Validate solution
F6 Build selected application, folder, document
F12 Validate selected application, folder, document
Find and Replace
CTRL+F Find
F3 Find next
CTRL+F3 Find previous
CTRL+H Replace
View
CTRL+TAB Next window
CTRL+SHIFT+TAB Previous window
CTRL+SHIFT+E Show solution explorer
CTRL+SHIFT+Q Show output window
ALT+SHIFT+ENTER Full screen
F5 Refresh
Edit (General)
CTRL+Z Undo
CTRL+Y Redo
CTRL+C Copy
CTRL+V Paste
CTRL+X Cut
DEL Delete
CTRL+A Select all
CTRL+G Go To
CTRL+SHIFT+A Add
Edit (Text)
CTRL+E Comment selected lines
Shortcut Notes
CTRL+SHIFT+E Uncomment selected lines
CTRL+I Increase indent
CTRL+ SHIFT+I Decrease indent
CTRL+D Fill down
CTRL+U Fill up
Edit (Advanced)
CTRL+SHIFT+UP Move To Top
CTRL+UP Move Up
CTRL+DOWN Move Down
CTRL+SHIFT+DOW Move To Bottom
N
Others
CTRL+K Options
CTRL+F1 About
Pads
CTRL+SHIFT+E Solution Explorer
CTRL+SHIFT+P Property Pad
CTRL+SHIFT+Q Output Window
Table 13.5 Supported shortcuts