Powerware Interface Manual: Digsilent Powerfactory
Powerware Interface Manual: Digsilent Powerfactory
DIgSILENT PowerFactory
Version 13.1
DIgSILENT GmbH
Gomaringen, Germany
2005
Publisher:
DIgSILENT GmbH
Heinrich-Hertz-Str. 9
72810 Gomaringen / Germany
Tel : +49 (0) 7072-9168-0
Fax : +49 (0) 7072-9168-88
1 PowerWare Interface 1
1.1 About PowerWare . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Component Architecture . . . . . . . . . . . . . . . . . . . . . 2
1.3 Fundamental Concepts . . . . . . . . . . . . . . . . . . . . . . 4
1.3.1 Location . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.3.2 Device . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.3.3 Device State . . . . . . . . . . . . . . . . . . . . . . 6
1.3.4 Lifecycle Phase . . . . . . . . . . . . . . . . . . . . . 7
1.4 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.4.1 PowerWare Server . . . . . . . . . . . . . . . . . . . 9
1.4.2 PowerFactory Client . . . . . . . . . . . . . . . . . . 9
1.5 Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.5.1 Prepare substation in PowerWare . . . . . . . . . . . 9
1.5.2 Prepare project in PowerFactory . . . . . . . . . . . 10
1.5.3 Link Relays and establish a Connection . . . . . . . . 12
1.5.4 Export and Import Settings . . . . . . . . . . . . . . . 16
1.6 Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
1.6.1 The Device Context Menu . . . . . . . . . . . . . . . 18
1.6.2 Connection . . . . . . . . . . . . . . . . . . . . . . . 19
1.6.3 The Browser Dialog . . . . . . . . . . . . . . . . . . . 21
1.6.4 The C OM P OWERWARE Object . . . . . . . . . . . . . 21
1.7 Technical Reference . . . . . . . . . . . . . . . . . . . . . . . . 25
1.7.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . 26
1.7.2 Import Scripts . . . . . . . . . . . . . . . . . . . . . . 26
1.7.3 Export Scripts . . . . . . . . . . . . . . . . . . . . . . 28
1.7.4 How to create a new Device Type conversion . . . . . 31
DIgSILENT PowerFactory PowerWare Interface
Chapter 1
PowerWare Interface
1
PowerWare Interface DIgSILENT PowerFactory
single system that incorporates all such different device protocols, thereby providing
one manageable software data storage system, based on modern IT techniques,
facilitating data interfacing and exchange in a transparent and hassle free manner.
PowerFactory’s data exchange facility allows it to access the settings stored in
PowerWare, such that these may be used as input for the powerful PowerFactory
system simulation and protection setting tools. Settings that are calculated by using
these tools may then be transferred back to PowerWare.
Usually there are several clients. One main advantage of this architecture is the fact
that the data is stored in one central database on the server. One client connects to
the server and fetches the data from there, modifies them, and afterward stores them
back to the server. On other clients these changes are visible.
DIgSILENT PowerWare server provides two interfaces to access from client
machines:
1. The HTML interface can be used with an usual web browser (e.g. Microsoft
Internet Explorer or Mozilla Firefox) as shown in Fig. 1.2.
2
DIgSILENT PowerFactory PowerWare Interface
The browser displays HTML pages which are created by PowerWare’s HTML
frontend. The HTML pages are transfered using the HTTP protocol on top of the
TCP/IP internet protocol.
HTML allows to present all kind of data e.g. plain text, tables or images.
Additionally HTML provides concepts to achieve interactivity: by submitting HTML
forms or pressing on hyperlinks data is sent to the server. The server interprets
such requests and creates new HTML pages which are displayed by the browser
again.
2. The web service interface, similar to the HTML interface uses the HTTP proto-
col to communicate with the web service frontend, though no HTML pages are
transfered but lower-level data (SOAP/XML encoded). The web service client
application is responsible to present this data conveniently.
PowerFactory is able to play the role of a web service client. It integrates parts
of PowerWare’s data and concepts smoothly into its own world.
The functionality of the HTML interface is covered in the PowerWare manual. The
remainder of this chapter focuses on PowerFactory as client.
3
PowerWare Interface DIgSILENT PowerFactory
Though both in PowerWare and in PowerFactory the settings and data associated
with protective devices, such as relays, CTs, VTs and circuit breakers are stored, the
systems provide a different set of concepts how to deal with this data.
In PowerWare it’s possible to model a location hierarchy and associate the devices
to nodes in this hierarchy (e.g. substations). This has no equivalent on the
PowerFactory side where the devices are stored inside the parent grid (E LM N ET)
object.
On the other side PowerFactory allows to create a topological representation of
networks which is not supported in PowerWare.
This section describes the concept mismatch between PowerFactory and
PowerWare. In order to use the PowerWare interface it’s important to know about
the differences between both applications.
1.3.1 Location
In PowerWare each device belongs to exactly one location. There are different
location types e.g. Region, Area, Substation, or Bay. The locations are organized in a
hierarchy tree as shown in Fig. 1.3.
4
DIgSILENT PowerFactory PowerWare Interface
In PowerFactory the data is organized in projects (I NT P RJ). A project may have one
or more grids (E LM N ET) which in turn contain net elements e.g. terminals, cubicles,
and relays (E LM R ELAY). See Fig. 1.4 for a typical PowerFactory project.
1.3.2 Device
PowerWare manages a set of devices e.g. relays, CTs, VTs, or Circuit breakers.
Each device is associated to a device type e.g. ABB DPU2000R or SEL421 003.
Additionally each device has an unique ID: the device ID.
In PowerFactory a relay is represented by an E LM R ELAY object which references
exactly one T YP R ELAY object. The E LM R ELAY object contains several sub-
components e.g. the I> component (a R ELTOC object), the Logic component
(R EL L OGIC), or the Ios component (R EL M EASURE). See Fig. 1.5 for an example.
The device ID is used to link one PowerWare device to one PowerFactory device.
The PowerFactory device e.g. a E LM R ELAY object stores the PowerWare device ID
as foreign key.
5
PowerWare Interface DIgSILENT PowerFactory
• attribute name
• attribute type which can be an arbitrary integer or floating point number, option-
ally with a range restriction, or a string, or a enumeration type.
• a default value
• an optional unit
6
DIgSILENT PowerFactory PowerWare Interface
On the PowerFactory side there are neither setting nor group nor attribute. There is
the E LM R ELAY object and its sub-objects. These objects can have parameters. See
table 1.3 for a definition and table 1.4 for an example. The T YP R ELAY type defines
components and parameters.
7
PowerWare Interface DIgSILENT PowerFactory
Component:Parameter Value
i>:o 8
Logic:p ’HIGH’
Logic:q ’enabled’
Ios:r 18.5
Ios:s 19.5
Table 1.4: Parameter example
In PowerFactory a device has exactly one state (or setting). Therefore when data
is transfered between PowerFactory and PowerWare, always a concrete device
setting in PowerWare must be specified.
For PowerFactory purposes a special P OWER FACTORY planning phase is introduced.
The transfer directions are specified as follows:
1.4 Configuration
In order to transfer data between PowerFactory and PowerWare both systems must
be configured.
8
DIgSILENT PowerFactory PowerWare Interface
This section is a simple walkthrough and covers the most essential PowerWare
interface functionality. By using a simple PowerFactory project and simple
PowerWare substation, it describes
All (especially the more advanced) options and features are described in the reference
section (see section 1.6 on page 18).
9
PowerWare Interface DIgSILENT PowerFactory
create two relays named Getting Started Relay 1 and Getting Started Relay 2 in
the Getting Started substation
In the HTML interface the station detail page should look as shown in Fig. 1.6.
Go to the detail page of the Getting Started Relay 1 (c.f. Fig. 1.7).
Since we’ve just created the device it has no settings, yet. Later it will contain a
PowerFactory setting which reflects the relay state on the PowerFactory side.
10
DIgSILENT PowerFactory PowerWare Interface
start PowerFactory
draw a simple grid with two terminals (E LM T ERM) connected by a line (E LM L NE)
as shown in Fig. 1.8.
right-click the cubicle quadrangle with the mouse. A context menu pops up.
A dialog pops up that allows you to specify the settings of the new relay (E LM R ELAY).
press OK
in the same way add a relay G ETTING S TARTED R ELAY 2 to the second terminal.
PowerFactory’s object filter mechanism gives an overview over all devices inside the
current project.
11
PowerWare Interface DIgSILENT PowerFactory
Press the icon (Edit Relevant Objects for calculation) in the toolbar and
select the icon (E LM R ELAY) to filter out all non-relay objects as shown in
Fig. 1.11.
All calculation relevant relays (actually there only the two we created above) are
displayed in a table (c.f. Fig. 1.12).
A Log on to PowerWare server dialog pops up. Since this is the first time
PowerFactory connects to the PowerWare server some connection settings must be
entered.
12
DIgSILENT PowerFactory PowerWare Interface
enter the Server Endpoint URL of the PowerWare server. The URL should have
a format similar to
http://the.server.name/powerwarews/powerwarews.asmx
13
PowerWare Interface DIgSILENT PowerFactory
press OK
14
DIgSILENT PowerFactory PowerWare Interface
The connection procedure may take some seconds. If the server could be accessed
and the user could be authenticated a success message is printed into the output
window
Otherwise an error dialog pops up. Correct the connection settings until the
connection is successfully created.
The reference section (section 1.6.2) explains the connection options in detail.
Having established a connection to the server, a browser dialog pops up which
displays the location hierarchy as known from the PowerWare HTML interface. The
dialog is shown in Fig. 1.15.
press OK
in the same way select Getting Started Relay 2 for the second PowerFactory
relay.
15
PowerWare Interface DIgSILENT PowerFactory
mark the relays with the mouse and right-click to get the relay context menu as
shown in figure 1.13 on page 14.
press E XECUTE
After a few seconds the relay settings are transfered to the server, and the output
window contains the message
16
DIgSILENT PowerFactory PowerWare Interface
navigate to the relay detail view of the Getting Started Relay 1 relay (c.f. Fig.
1.17)
Observe the new created PF setting. The phase of this setting is P OWER FACTORY.
switch to the settings detail page of the new PF setting (c.f.Fig. 1.18).
The setting values should correspond to the relay state in PowerFactory. In the
same way the Getting Started Relay 2 relay has a new PF setting.
Now try the opposite direction and import a setting from PowerWare into
PowerFactory.
17
PowerWare Interface DIgSILENT PowerFactory
in PowerFactory mark the relays with the mouse and right-click to get the relay
context menu as shown in figure 1.13 on page 14.
Again the C OM P OWERWARE dialog (c.f. figure 1.16 on page 16) pops up as known
from the export.
press E XECUTE
Again the result of the settings transfer is reflected in the output window:
All import options are described in detail in the reference section (section 1.6.4.1 on
page 22).
1.6 Reference
This section describes all options and features concerning the PowerWare interface.
Import... opens the C OM P OWERWARE dialog and sets the device selection according
to the above selected device objects.
The C OM P OWERWARE dialog settings are explained in detail in section 1.6.4 on
page 21.
18
DIgSILENT PowerFactory PowerWare Interface
Select Device ID... starts the Browser Dialog (c.f. figure 1.23 on page 22) to link
this device to a PowerWare device. The dialog is subject of section 1.6.3 on
page 21.
Connect... terminates the current PowerWare session if it’s already existing. Shows
a Log On dialog. The connection settings are covered by section 1.6.2.
This may be useful when you’re using several PowerWare accounts and want
to switch between them.
1.6.2 Connection
Similar to the HTML interface the PowerWare interface in PowerFactory is
session-oriented: when a user logs on to the system by specifying a valid PowerWare
account (username and password) a new session is created. Only inside such a
session PowerWare can be used. The account privileges restrict the application
functionality e.g. an administrator account is more powerful than a usual user account.
19
PowerWare Interface DIgSILENT PowerFactory
Working with PowerFactory the first time the PowerWare server is required the Log
on dialog is shown as shown in figure 1.20 on page 20.
The PowerWare connection options are stored in the user settings (c.f. Fig. 1.21).
After each successful logon the the user settings are updated.
http://the.server.name/psmsws/psmsws.asmx
or
http://192.168.1.53/psmsws/psmsws.asmx
http denotes the protocol, the.server.name is the computer name (or DNS) of
the server computer and psmsws/psmsws.asmx is the name of the PowerWare
application.
The connection options are as follows:
Service Endpoint The Service Endpoint denotes the PowerWare server ’name’ as
described above
20
DIgSILENT PowerFactory PowerWare Interface
The very same PowerWare account can be used by two different PowerFactory
users.
The privileges of the PowerWare account actually restrict the functionality. For device
import the user requires read-access rights. For exporting additionally write-access
rights are required.
A more convenient way is to use the Browser Dialog shown in Fig. 1.23. The dialog
allows to browse through the PowerWare location hierarchy and select a device.
The hierarchy data is cached to minimize network accesses. Due this caching
it’s possible that there may exist newly created locations or devices which are not
displayed in the browser dialog. The R EFRESH button empties the cache and
enforces PowerFactory to re-fetch the correct data from the server.
21
PowerWare Interface DIgSILENT PowerFactory
C OM S HC object. Every action object has an E XECUTE button which starts the
action.
In fact there is a whole bunch of parametrized actions like loadflow calculation
(C OM L DF), simulation (C OM S IM), there’s even a C OM E XIT object that shuts down
PowerFactory. All objects which can ’do’ something have the C OM prefix.
Since the PowerWare interface is actually ’doing’ something (it does import data, it
does export data) it is implemented as a C OM P OWERWARE object.
The C OM P OWERWARE object is used both for the im import (section 1.6.4.1) and
the export (section 1.6.4.2). It is located in the project’s study case according to
PowerFactory conventions. The actual Getting Started project (section 1.5) is shown
in Fig. 1.24.
By default the study case of a new project contains no C OM P OWERWARE object. It
is automatically created when it is first needed, as well as the C OM S HC object is
instantiated at the time when the first short-circuit calculation is performed.
Check only Plausibility if the Check only Plausibility flag is enabled the import is
only simulated but not really executed.
22
DIgSILENT PowerFactory PowerWare Interface
23
PowerWare Interface DIgSILENT PowerFactory
ally a Timestamp value is entered the setting that was applied at this time
is transfered which may either be A PPLIED or H ISTORIC.
2005-02-28 22:27:16
All Devices If All Devices is enabled, all calculation-relevant devices are imported.
Devices not supported by PowerWare are ignored.
Device Selection Unless All Devices is enabled, the Device Selection provides a
more subtle way to specify which devices are to be transfered. The Device
Selection parameter can be
All Settings Groups/Group Index This parameter specifies how multiple settings groups
(MSG) are handled (c.f. section 1.3).
• If the relay in PowerWare has MSGs and the PowerFactory relay model
supports MSGs and
– All Settings Groups is enabled: then all groups are transfered.
– All Settings Groups is disabled: then only the Group Index-th group is
transferred.
• If the relay in PowerWare has MSGs and the PowerFactory relay model
doesn’t support MSGs: then the Group Index-th group is imported.
24
DIgSILENT PowerFactory PowerWare Interface
The export options are almost identical to the import options (c.f. Fig. 1.26):
Lifecycle Phase Only the P OWER FACTORY setting in PowerWare can be the target
setting. A PPLIED settings can never be changed.
Click E XECUTE to start the data transfer. If there exists already a P OWER FACTORY
setting in PowerWare it is removed completely.
Then a new P OWER FACTORY is created as copy of the current A PPLIED setting.
If no A PPLIED setting is available the default settings are copied. Then the
PowerFactory-relevant part of the settings are copied upon the P OWER FACTORY
setting.
25
PowerWare Interface DIgSILENT PowerFactory
This section also explains how new device types are integrated. PowerFactory is
delivered with a library of relay models. This library can’t contain all relays of all
manufacturers. A way how to enhance the library for new device types is shown in
this section as well.
The PowerWare interface is heavily based on DPL (Digsilent Programming
Language) which is documented in a separate DPL Manual.
1.7.1 Overview
For each device type (T YP R ELAY) and each transfer direction a separate DPL script
is required.
The import DPL script takes the PowerWare attributes and a E LM R ELAY object as
input and fills somehow the E LM R ELAY object’s and its subobjects’ parameters.
The export DPL script takes a E LM R ELAY object as input parameter and calculates
some output parameters which are the PowerWare attributes.
Note
DPL’s most important benefit is: you can do everything.
That’s exactly DPL’s most important disadvantage as well. Be sure that your
DPL scripts do what they should do and not more.
An import script should only set the parameters in the E LM R ELAY object and
its subcomponents.
An export script shouldn’t change anything at all (at least within
PowerFactory).
3. initialize dpl’s input parameter with the device attributes from PowerWare
5. execute dpl
26
DIgSILENT PowerFactory PowerWare Interface
Library
+- Relays
+- ManufacturerA
| +- Relay family A
| | +- RA1.ElmRelay
| | +- RA2.ElmRelay
| | +- RA3.ElmRelay
| | +- PsmsImport.ComDpl
| | +- PsmsExport.ComDpl
| |
| +- Relay family B
| +- RB1.ElmRelay
| +- RB2.ElmRelay
| +- PsmsImport.ComDpl
| +- PsmsExport.ComDpl
|
+- ManufacturerB
+- ....
Input Parameters this table holds the PowerWare attributes. The Name has the
format
The Type may either be int (for integer numbers), double (for floating point
numbers), or string (for string and enum values).
The Value field must be empty. The attribute unit has to inserted in the Unit field
if appropriate. A Description may be inserted, too.
External Object this table contains exactly one entry: an object with the Name Relay.
The object column must be empty.
27
PowerWare Interface DIgSILENT PowerFactory
The Input parameters get initialized with the PowerWare attribute values and the
External Object with the current relay.
The second page of the C OM D PL script holds the output parameters. They have the
meaning as follows (Fig. 1.29 shows the Advanced options).
Result Parameters the table must have one entry with Name Result of Type String.
The DPL script should set this parameter to OK if the import procedure was
successful. Otherwise it may hold an error message which is displayed in the
output window.
Fig. 1.30 shows the Script page which contains the DPL code. The code must
be a valid DPL program. It should set the relay parameters according to the input
parameters.
28
DIgSILENT PowerFactory PowerWare Interface
4. execute dpl
29
PowerWare Interface DIgSILENT PowerFactory
The export DPL script must also meet some requirements: Fig. 1.31 shows the Basic
options. The C OM D PL.
External Object this table contains exactly one entry: an object with the Name Relay.
The object column must be empty.
The second page of the C OM D PL script holds the output parameters. They have the
meaning as follows (c.f. Fig. 1.32 shows the Advanced options).
Result Parameters the table must have the first entry with Name Result of Type
String.
The DPL script should set this parameter to OK if the import procedure was
successful. Otherwise it may hold an error message which is displayed in the
output window.
Below the Result parameter are the PowerWare attributes.
Fig. 1.33 shows the Script page which contains the DPL code. The code must be a
valid DPL program. It shouldn’t change the database.
30
DIgSILENT PowerFactory PowerWare Interface
31
PowerWare Interface DIgSILENT PowerFactory
create in PowerWare a new substation with one device of the desired device
type. Create a default P OWER FACTORY setting for this device.
link the PowerFactory device to the the PowerWare device by setting the for-
eign key to the device ID.
Iterate these steps until there are no error messages. Change the setting in
PowerWare and re-try the import.
In quite the same way create and verify a P SMS E XPORT.C OM D PL script.
32