SINCAL DatabaseInterface
SINCAL DatabaseInterface
SINCAL DatabaseInterface
PSS SINCAL
Database Interface and Automation
This document describes the organization and the structure of the PSS SINCAL database, shows you how to
fill the database with external programs and explains the automation functions of the calculation methods.
General Remarks
19
27
30
30
38
43
49
86
Reference
126
5.1 Documentation
126
127
128
October 2014
1/129
SIEMENS
General Remarks
One of the most important characteristics of PSS SINCAL is the complete transparency of the data.
With standard methods, you can access input data and calculation results at any time, even if you
are not using PSS SINCAL. This transparency is reached by saving all data in a relational database,
necessary for the network planning. Unlike other network planning systems that you only fill when
you "export", PSS SINCAL uses the database as the central storage medium for all your data.
Calculation methods are relatively easily to use for individual solutions because of their open
architecture. Normally, you use an existing PSS SINCAL network that you analyze with a "tool" you
have created. The "tool" can take advantage of all the functions of the PSS SINCAL calculation
methods. You can use any programming or script language you want for your individual solution. The
only prerequisite is that you must be able to access COM functions.
If you use a relational database, you can even couple to a Geographic Information System (GIS),
a Network Information System (NIS) or a network management system. Basically, you distinguish
between a pure calculation solution and one that exports all the data to PSS SINCAL. Which solution
you choose depends on what you want to achieve.
October 2014
2/129
SIEMENS
October 2014
3/129
SIEMENS
2.1
{networkname}.sin
{networkname}_files
The file with extension ".sin" is a PSS SINCAL User Interface help file to simplify network
management. Most network-specific settings of the user interface and the supplementary graphics
objects of the network are stored in this file. When a network is opened with the Open dialog box, this
file is selected.
The directory with the suffix "_files" has all the additional network data. This directory stores the
actual network database, the diagram files, various log files and files with the results.
Example Ele1.sin
Example Ele1_files
|
database.ini
|
database.mdb
|
database.dia
|
\---NETO
network.bat
network.ctl
...
The file with the ending ".ini " is a configuration file that lets you configure how PSS SINCAL will use
the database.
The file with the extension ".mdb" is the network database in Microsoft Access format. All data that
describe the network are stored in this file.
If you use a server database system such as ORACLE or SQL Server, for example, there is no MDB
file. In this case, the program stores network data directly in the central server database.
October 2014
4/129
SIEMENS
2.2
The standardized layout used through most of the program reduces redundancies and simplifies
the search for, and control of, consistency.
The PSS SINCAL Data Model is separated into categories to simplify evaluations and
management.
There are no limitations as to how the selected data model is implemented in all the
PSS SINCAL Relational Database Management systems.
Table Names
Appropriate English terms have been selected as table names. PSS SINCAL uses upper- and lowercase letters to improve legibility.
Essentially, the names of tables differentiate among input data, graphic data, and results.
All tables for input data have appropriate simple names:
Line
etc.
Infeeder
TwoWindingTransformer
GraphicElement
GraphicLayer
etc.
The tables for result data begin with an abbreviation for the calculation method and end with
"Result":
October 2014
LFNodeResult
LFBranchResult
SC1NodeResult
SC1BranchResult
etc.
5/129
SIEMENS
Keys
Most of the tables in the PSS SINCAL Data Model have primary keys to uniquely identify data. The
primary key in a table contains the name of the table and has the ending "_ID".
References in the PSS SINCAL Data Model have a secondary key. It includes the name of the
reference table and has the ending "_ID".
The data type of keys is always "LongInteger".
Examples of primary and secondary keys:
Table Element
Primary key: Element_ID
Secondary key: VoltLevel_ID, Variant_ID
Table Terminal
Primary key: Terminal_ID
Secondary key: Element_ID, Node_ID
Note: PSS SINCAL uses special algorithms for the management of the key fields. Therefore it is
important to ensure that the IDs are generated ascending starting with the smallest possible ID (1).
Gaps in the IDs are easily possible, but it should be avoided to store very large numbers, because
otherwise problems with PSS SINCAL GUI functions and variant management have to be expected.
Also the direct storage of unique GIS IDs in the primary key fields is not allowed. For this purpose,
the special MasterResource mapping table is available.
Attribute Names
October 2014
Whenever possible, attribute names are the same as the corresponding formula sign.
Attribute names are kept as language-neutral as possible or English terms are used.
Attribute names are both unique and case-sensitive.
Numbers replace superscripts and commas (e.g. ' > 1 > 2).
Underscoring ("_") is used as a placement marker for slashes and to connect expressions.
External and primary keys end with "_ID" (e.g. Element_ID Variant_ID).
6/129
SIEMENS
2.3
Terminal_ID
Variant_ID
Element_ID
Node_ID
Flag_Variant
TerminalNo
Flag_State
Flag_Terminal
Node
PK
PK
Node_ID
Variant_ID
Element
PK
PK
Group_ID
BusbarType_ID
SwitchBay1_ID
SwitchBay2_ID
VoltLevel_ID
Flag_Variant
Flag_Type
Name
ShortName
Un
Ik2
Ip
Uul
Ull
Uref
InclName
Element_ID
Variant_ID
VoltLevel_ID
EcoStation_ID
EcoField_ID
Flag_Variant
Group_ID
Name
ShortName
Type
Flag_Input
Flag_State
ci
Cs
cm
coo
Ti
Tl
Ts
Load
PK
PK
Element_ID
Variant_ID
Flag_Variant
Typ_ID
Flag_Load
Flag_LoadType
Flag_Lf
P
Q
u
Ul
S
I
cosphi
Line
PK
PK
Element_ID
Variant_ID
Flag_Variant
Flag_LineTyp
LineTyp
Typ_ID
Flag_Typ_ID
q
l
r
x
c
Un
ParSys
Flag_Vart
Flag_Mat
Flag_Cond
va
Ith
fn
I1s
Flag_Z0_Input
X0_X1
R0_R1
r0
x0
c0
q0
The Node table describes the basic network topology. Terminal tables attach node and branch
elements to a node and are used to construct the entire network topology.
At the center of the data model, you have the Element table. This describes the actual network
elements. This table is assigned an additional table for the detailed description of the particular
network element:
October 2014
7/129
SIEMENS
Pipe Networks
October 2014
8/129
SIEMENS
Example for coding short circuit and load flow data for electrical networks:
Bit 0 + Bit 1 = 1 + 2 = 3
2.4
October 2014
9/129
SIEMENS
VoltageLevel
VoltLevel_ID
October 2014
Name
ShortName
Un
Uop
LV
1.0 kV
1,0
1,0
1,1
HV
10.0 kV
10,0
10,0
1,1
cmax
Flag_Variant
Variant_ID
1,1
1,1
10/129
SIEMENS
Node
Node_ID
Group_ID
VoltLevel_ID
Name
Un
Flag_Variant
Variant_ID
N1
10,0
N2
1,0
Here you can already see the nodes/busbars (Node) are assigned to the network levels
(VoltageLevel) with the secondary key. The busbar N1 has been assigned to the 10 kV network level
HV and given the ID 2. The busbar N2 has been assigned to the 1 kV network level LV and given the
ID 1.
October 2014
11/129
SIEMENS
Terminal: This table creates the connection between the network element and the
nodes/busbars.
Infeeder: This table contains the specific attributes for the infeeder.
Element
Element_ID
1
VoltLevel_ID
Group_ID
Name
I1
Type
Infeeder
Flag_Input
3
Flag_Variant
Variant_ID
The basic data for the network element are stored in the Element table. The record contains the
primary key for the network element in the Element_ID field. This assures the network element is
uniquely identifiable.
The VoltLevel_ID field creates a connection to the network level. In this case, this is the 10 kV
network level HV: VoltLevel_ID = 2
The Type field stores the type of network element. This is an ASCII field and contains exactly the
name of the data table for the network element: types = "Infeeder"
October 2014
12/129
SIEMENS
The Flag_Input field has the code for the network elements input status. The binary value 3 is for
the Bit 0 + Bit 1 short circuit data + load flow data
Infeeder
Element_ID
1
Typ_ID
Flag_Typ_ID
Flag_Typ
Sk2
1000,0
cact
1,0
0,0
0,0
The specific data for network supply are stored in the Infeeder table. The secondary key Element_ID
creates the connection to the table Element: Element_ID = 1
Terminal
Terminal_ID
1
Element_ID
Node_ID
TerminalNo
Flag_State
Flag_Variant
Variant_ID
The Terminal table connects the network element to the nodes/busbars. Use the Element_ID and
Node_ID fields for this. In our example, the infeeder I1 is attached to the busbar N1: Element_ID = 1
, Node_ID = 1
The TerminalNo field is a counter for the connection number. In network supply (= node element)
this is always 1, since this element only has one terminal.
October 2014
13/129
SIEMENS
two nodes/busbars. In our example, these are the busbars N1 and N2.
This branch element is described in the database with the following tables:
Terminal: This table creates the connection between the network element and the
nodes/busbars.
Element
Element_ID
VoltLevel_ID
Group_ID
Name
Type
Flag_Input
I1
Infeeder
2T2
TwoWinding
Transformer
Flag_Variant
Variant_ID
The data in the element table for the two-winding transformer are the same as those previously
described for the infeeder.
As with the infeeder, the Type field stores the network element: Type = "TwoWindingTransformer"
TwoWindingTransformer
Element_ID
Typ_ID
Flag_Typ_ID
Un1
Un2
Sn
uk
10,0
1,0
0,63
8,0
The input data for the two-winding transformer are stored in the TwoWindingTransformer table. The
secondary key Element_ID creates the connection to the table element: Element_ID = 2
Terminal
Terminal_ID
Element_ID
Node_ID
TerminalNo
Flag_State
Flag_Variant
Variant_ID
The table Terminal is used to create the connection between the network element and the
nodes/busbars. Use the Element_ID and Node_ID fields for this.
The two-winding transformer is a branch element and thus has two terminals. These attach the
transformer 2T2 to the busbars N1 and N2:
October 2014
14/129
SIEMENS
Terminal: This table creates the connection between the network element and the
nodes/busbars.
Line: This table contains the specific attributes for the line.
The structure and semantics of the tables are the same as above. For this reason, the tables are only
displayed briefly here. So these are easier to recognize, the new records are colored.
Element
Element_ID
VoltLevel_ID
Group_ID
Name
Type
Flag_Input
I1
Infeeder
2T2
L3
TwoWinding
Transformer
Line
Flag_Variant
Variant_ID
Line
Element_ID
Typ_ID
Flag_Typ_ID
October 2014
0,0
1,0
ParSys
Flag_Vart
15/129
SIEMENS
Terminal
Terminal_ID
Element_ID
Node_ID
TerminalNo
Flag_State
4
5
Flag_Variant
Variant_ID
Node
Node_ID
Group_ID
VoltLevel_ID
Name
Un
N1
Flag_Variant
Variant_ID
10,0
N2
1,0
N3
1,0
Terminal: This table creates the connection between the network element and the
nodes/busbars.
October 2014
16/129
SIEMENS
The structure and semantics of the tables are the same as above.
Infeeder: I1
Consumer: LO4
VoltageLevel
VoltLevel_ID
Name
ShortName
Un
Uop
LV
1.0 kV
1,0
1,0
1,1
HV
10.0 kV
10,0
10,0
1,1
cmax
Flag_Variant
Variant_ID
1,1
1,1
Node
Node_ID
October 2014
Group_ID
VoltLevel_ID
Name
Un
N1
Flag_Variant
Variant_ID
10,0
N2
1,0
N3
1,0
17/129
SIEMENS
Element
Element_ID
VoltLevel_ID
Group_ID
3
4
Name
Type
Flag_Input
I1
Infeeder
2T2
Flag_Variant
Variant_ID
L3
TwoWinding
Transformer
Line
LO4
Load
Terminal
Terminal_ID
Element_ID
Node_ID
TerminalNo
Flag_State
Flag_Variant
Variant_ID
Infeeder
Element_ID
Typ_ID
Flag_Typ_ID
Flag_Typ
Sk2
cact
1000,0
1,0
0,0
0,0
TwoWindingTransformer
Element_ID
Typ_ID
Flag_Typ_ID
Un1
Un2
Sn
uk
10,0
1,0
0,63
8,0
Line
Element_ID
Typ_ID
Flag_Typ_ID
0,0
1,0
ParSys
Flag_Vart
Load
Element_ID
Flag_Load
Flag_LoadType
October 2014
UI
0,07
0,03
100.0
0.0
18/129
SIEMENS
2.5
Additional tables
o
GraphicText: Texts
Basic structures
o
GraphicLayer: Layers
The simple network elements are nodes and busbars. They have only one symbol and text. All
node elements and branch elements are connected to these.
Network elements are more complex graphics elements. They are composed of symbols, terminals
and text.
October 2014
19/129
SIEMENS
Data type
GraphicNode_ID
Long Integer
GraphicLayer_ID
Long Integer
GraphicType_ID
Long Integer
GraphicText_ID1
Long Integer
GraphicText_ID2
Long Integer
Node_ID
Long Integer
FrgndColor
Long Integer
RGB
Line Color
BkgndColor
Long Integer
RGB
Background Color
PenStyle
Integer
PenWidth
Integer
0.25mm
Pen Width
NodeSize
Integer
0.25mm
NodeStartX
Double
NodeStartY
Double
NodeEndX
Double
NodeEndY
Double
October 2014
Unit
Description
Pen Style
0: Straight line
1: Small dotted
2: Dotted
3: Straight line point straight line
4: Straight line point point straight line
20/129
SIEMENS
SymType
Integer
Flag
Long Integer
Flag
Variant_ID
Long Integer
Flag_Variant
Integer
GraphicArea_ID
Long Integer
The secondary key GraphicText_ID1 assigns a graphic text object. This means an individual text
object will be displayed in the Graphics Editor with its own position and graphics attributes. If you
wish, you can initialize the field with "NULL". Then PSS SINCAL will display the text with default
attributes in the Graphics Editor, but the text cannot be edited manually.
The secondary key GraphicText_ID2 is not implemented at this time and should therefore always be
initialized with "NULL".
Data type
GraphicElement_ID
Long Integer
GraphicLayer_ID
Long Integer
GraphicType_ID
Long Integer
GraphicText_ID1
Long Integer
GraphicText_ID2
Long Integer
Element_ID
Long Integer
SymbolDef
Long Integer
FrgndColor
Long Integer
RGB
Line Color
BkgndColor
Long Integer
RGB
Background Color
PenStyle
Integer
PenWidth
Integer
0.25mm
Pen Width
SymbolSize
Integer
0.25mm
SymCenterX
Double
SymCenterY
Double
October 2014
Unit
Description
Pen Style
0: Straight line
1: Small dotted
2: Dotted
3: Straight line point straight line
4: Straight line point point straight line
21/129
SIEMENS
SymbolType
Long Integer
SymbolNo
Integer
Symbol Number
Flag
Long Integer
Flag
Variant_ID
Long Integer
Flag_Variant
Integer
GraphicArea_ID
Long Integer
The SymbolType field is particularly important here. It needs to be properly initialized or the graphic
data will not be assigned or they will be assigned incorrectly to network element data in the
PSS SINCAL user interface.
The SymbolDef field is used to enhance the control of the network element symbols. For coupling
solutions this should be initialized with "-1".
The secondary key GraphicText_ID1 assigns a graphic text object. This means an individual text
object will be displayed in the Graphics Editor with its own position and graphics attributes. If you
wish, you can initialize the field with "NULL". Then PSS SINCAL will display the text with default
attributes in the Graphics Editor, but the text cannot be edited manually.
The secondary key GraphicText_ID2 is not implemented at this time and should therefore always be
initialized with "NULL".
October 2014
22/129
SIEMENS
Data type
GraphicTerminal_ID
Long Integer
GraphicElement_ID
Long Integer
GraphicText_ID
Long Integer
Terminal_ID
Long Integer
PosX
Double
X-Coordinate
PosY
Double
Y-Coordinate
FrgndColor
Long Integer
RGB
Line Color
PenStyle
Integer
PenWidth
Integer
SwtType
Integer
Switch Type
0: No Type
1: Type 1
2: Type 2
3: Type 3
4: Type 4
5: Type 5
6: Type 6
SwtAlign
Integer
Switch Direction
0: Automatic
1: Position 1
2: Position 2
3: Position 3
4: Position 4
SwtNodePos
Double
0.25mm
SwtFactor
Integer
0.25mm
SwtFrgndColor
Long Integer
RGB
SwtPenStyle
Integer
SwtPenWidth
Integer
SymbolType
Integer
SymbolAlign
Integer
SymbolNodePos
Double
SymbolFactor
Integer
SymbolFrgndColor
Long Integer
SymbolPenStyle
Integer
SymbolPenWidth
Integer
TextAlign
Integer
Adjust Text
Flag
Long Integer
Flag
Variant_ID
Long Integer
Flag_Variant
Integer
GraphicArea_ID
Long Integer
October 2014
Unit
Description
Pen Style
0: Straight line
1: Small dotted
2: Dotted
3: Straight line point straight line
4: Straight line point point straight line
0.25mm
Pen Width
0.25mm
RGB
0.25mm
23/129
SIEMENS
The fields Pos_X and Pos_Y define the connection point between the terminal and the node or the
busbar. With a node, this is always the center. With a busbar, this can be anywhere on the busbar.
The secondary key GraphicText_ID assigns a graphic text object. This means an individual text
object will be displayed in the Graphics Editor with its own position and graphics attributes. If you
wish, you can initialize the field with "NULL". Then PSS SINCAL will display the text with default
attributes in the Graphics Editor, but the text cannot be edited manually.
Data type
Unit
Description
GraphicText_ID
Long Integer
GraphicLayer_ID
Long Integer
Font
Text (20)
Font
FontStyle
Integer
Style
16: Standard
17: Fat
18: Cursive
FontSize
Integer
Text Height
TextAlign
Integer
Text Alignment
0: Left
1: Middle
2: Right
TextOrient
Integer
0,1
Text Orientation
TextColor
Long Integer
RGB
Text Color
Visible
Integer
Visible
0: No
1: Yes
AdjustAngle
Integer
Angle
Double
Text Angle
Pos1
Double
Distance X-Direction
Pos2
Double
Distance Y-Direction
Flag
Long Integer
RowTextNo
Integer
Number of Rows
AngleTermNo
Integer
Variant_ID
Long Integer
Flag_Variant
Integer
Flag
Caution: A text object may only be used once. You cannot use the same text object for different
elements!
October 2014
24/129
SIEMENS
Data type
Unit
Description
GraphicPoint_ID
Long Integer
GraphicTerminal_ID
Long Integer
NoPoint
Integer
PosX
Double
PosY
Double
Variant_ID
Long Integer
Flag_Variant
Integer
The fields PosX and PosY define the graphic position of the bend.
The NoPoint field determines the sequence of the bends. The bends are numbered sequentially
from the network elements symbol point to the connection point at the node/busbar.
Data type
GraphicArea_ID
Long Integer
AreaWidth
Double
cm
Page Width
AreaHeight
Double
cm
Page Height
VectorX
Double
Zero-Coordinate Placement X
VectorY
Double
Zero-Coordinate Placement Y
GridWidth
Integer
0.25mm
GridHeight
Integer
0.25mm
Scale1
Integer
Predefined Scale
0: 1:100000000
1: 1:10000000
2: 1:1000000
3: 1:100000
4: 1:10000
5: 1:1000
6: 1:100
7: 1:10
8: 1:1
Scale2
Integer
Display Unit
0: mm
1: cm
2: m
3: km
4: Inch
5: Feet
6: Yards
7: Miles
October 2014
Unit
Description
Primary Key Area/Tile
25/129
SIEMENS
Flag
Long Integer
Variant_ID
Long Integer
ScalePaper
Double
Scale Paper
ScaleReal
Double
Scale Real
Name
Text (50)
Name of View
TileIndex
Text (8)
Index of Tile
In a PSS SINCAL network, more than one worksheet can be created. Simply create multiple records
in this table. In all graphics tables, the GraphicArea_ID is available as a secondary key. This
specifies which worksheet the respective graphic is assigned to.
Data type
GraphicLayer_ID
Long Integer
Unit
Description
Primary Key Layer
Name
Text (50)
Layer Name
Visible
Integer
Visible
0: Not visible
1: Visible on screen
2: Visible on print
3: Visible on screen and print
Locked
Integer
Type
Integer
Plot Header
0: No
1: Yes
Flag
Long Integer
Order Flag
Variant_ID
Long Integer
Flag_Variant
Integer
VisibleZF
Integer
GraphicArea_ID
Long Integer
Data type
GraphicType_ID
Long Integer
ParentType_ID
Long Integer
Name
Text (50)
Visible
Integer
Locked
Integer
October 2014
Unit
Description
26/129
SIEMENS
2.6
Type
Integer
Object Type
Flag
Long Integer
Variant_ID
Long Integer
Flag_Variant
Integer
VisibleZF
Integer
October 2014
Load flow
o
Short circuit
o
Optimizations
o
27/129
SIEMENS
Reliability
o
The basic structure of the result tables is displayed according to load flow results. For a detailed
description of all available result tables with their attributes, see the Database Description Manual.
Data type
Unit
Description
Result_ID
Long Integer
Node_ID
Long Integer
Variant_ID
Long Integer
Double
kV
Node Voltage
U_Un
Double
phi
Double
Double
MW
Active Power
Double
Mvar
Reactive Power
Double
MVA
Apparent Power
Integer
tdiag
Double
Flag_Result
Integer
Result Type
0: Load flow
1: Load profile
2: Load development
ResDate
Date
ResTime
Double
Flag_State
Integer
Loading
Double
Uph
Double
kV
Uph_Unph
Double
phi_ph
Double
U_Uref
Double
Voltage/Reference Voltage
Uph_Urefph
Double
October 2014
Time
State
1: Ok
2: Limit reached
28/129
SIEMENS
Data type
Unit
Description
Result_ID
Long Integer
Terminal1_ID
Long Integer
Terminal2_ID
Long Integer
Variant_ID
Long Integer
Double
MW
Active Power
Double
Mvar
Reactive Power
Double
MVA
Apparent Power
cos_phi
Double
pu
Power Factor
Double
kA
Current
Inb
Double
Basic Rating
Pl
Double
MW
Ql
Double
Mvar
Sl
Double
MVA
dU
Double
kV
deltaphi
Double
Phase Rotation
Sn
Double
MVA
S_Sn
Double
Inp
Double
kA
I_Inp
Double
Ins
Double
kA
I_Ins
Double
Integer
tdiag
Double
Flag_Result
Integer
Result Type
0: Load flow
1: Load profile
2: Load development
ResDate
Date
ResTime
Double
Flag_State
Integer
Inb1
Double
Inb2
Double
Inb3
Double
October 2014
Time
State
1: Ok
2: Limit reached
29/129
SIEMENS
3.1
To import data, you need a prepared database with import data ImportDB.mdb and the appropriate
PSS SINCAL network database SincalDB.mdb. The MODE parameter differentiates between
electrical networks and pipe networks.
Start "ImportDB.vbs" with the correct parameters:
>cscript.exe ImportDB.vbs EleData.mdb EleTest.mdb E
Init IDs...
Reading Nodes...
Reading Lines...
Reading Loads...
Reading Transformers...
Writing Data...
Node: 27/27
Element: 48/48
Terminal: 82/82
Line: 32/32
TwoWindingTransformer: 2/2
Load: 14/14
GraphicNode: 27/27
GraphicTerminal: 82/82
GraphicElement: 48/48
Successfully finished import to D:\Network\_Import\GIS\EleTest.mdb.
Inserted 362 records in 0.01 seconds.
October 2014
30/129
SIEMENS
October 2014
=
=
=
=
=
=
=
"Node"
"Element"
"Terminal"
"GraphicText"
"GraphicNode"
"GraphicElement"
"GraphicTerminal"
=
=
=
=
=
=
=
"FlowNode"
"FlowElement"
"FlowTerminal"
"FlowGraphicText"
"FlowGraphicNode"
"FlowGraphicElement"
"FlowGraphicTerminal"
31/129
SIEMENS
iNodeID
iElementID
iTerminalID
iGraphicTextID
iGraphicNodeID
iGraphicElementID
iGraphicTerminalID
=
=
=
=
1
1
1
1
+
+
+
+
ReadMaxID(
ReadMaxID(
ReadMaxID(
ReadMaxID(
strTableGraphicText, "GraphicText_ID" )
strTableGraphicNode, "GraphicNode_ID" )
strTableGraphicElement, "GraphicElement_ID" )
strTableGraphicTerminal, "GraphicTerminal_ID" )
Call CloseDatabase()
End Sub
Read out Node Data from the Database ReadNodes & AddNode
ReadNodes reads the node data from the sources database and converts this to PSS SINCAL
format. When the data are converted, they generate the proper SQL command at the same time.
'-----------------------------------------------------------------------------' Read Node data from IMPORT DB
'-----------------------------------------------------------------------------Sub ReadNodes( iMode ) ' iMode = 1 ... Normal Mode, 0 ... Only init
Dim rsNode
If iMode = 0 And iCntNode > 0 then Exit Sub
WScript.Echo "Reading Nodes..."
Call OpenDatabase(strIMPORTdb)
Call OpenRecordset( "SELECT Name AS ID, Name, ShortName, NodeType, NetworkLevel,
& "FROM Node", rsNode )
If Not rsNode.EOF And Not rsNode.BOF Then
Dim iRet
rsNode.MoveFirst
Dim pt
Set pt = New Point
Do While Not rsNode.EOF
' Names
Dim strName, strShortName
strName
= CStr( rsNode("Name") )
strShortName = Left( rsNode("ShortName"), 8 )
' VoltageLevel/NetworkLevel & NetworkGroup
Dim iLevelID, iGroupID
iLevelID = GetVoltageLevel( CDbl( rsNode("Un") ) )
iGroupID = 1
' Type of Node
Dim iType
iType = GetNodeType( rsNode("NodeType") )
' Position & Height
Dim dSh
dSh = 1.0
pt.SetXY CDbl( rsNode("hr") ), CDbl( rsNode("hh") )
' Add data of node to internal arrays
iRet = InsertIntoNodeArray( CStr( rsNode("ID") ), iNodeID, pt, iLevelID )
if iMode = 1 Then
Dim iNID
iNID = AddNode( strName, strShortName, iLevelID, iGroupID, iType, pt.x,
If Not pt.IsEmptyPoint Then
iRet = AddGraphicNode( iNID, 1, pt, pt )
End If
October 2014
32/129
SIEMENS
Else
iNodeID = iNodeID + 1
End If
rsNode.MoveNext
Loop
Set pt = Nothing
End If
Call CloseRecordset( rsNode )
Call CloseDatabase()
End Sub
Records are selected from the ImportDatabase with following SQL command:
Call OpenRecordset( "SELECT Name AS ID, Name, ShortName, NodeType, NetworkLevel, Un, hr, hh "
_
& "FROM Node", rsNode )
These records are processed in a loop and stored to an internal list using AddNode.
'-----------------------------------------------------------------------------' Add Node
'-----------------------------------------------------------------------------Function AddNode( strName_, strShortName_, iVoltLevelID_, iGroupID_, iType_, dHr_, dHh_, dSh_
)
Dim iRet
If bElectro Then
iRet = InsertIntoArray( arrNode, iCntNode, _
"insert into " & strTableNode & "( Node_ID, VoltLevel_ID, Group_ID, Name,
& iNodeID & "," _
& iVoltLevelID_ & "," _
& iGroupID_ & "," _
& "'" & strName_ & "'," _
& "'" & strShortName_ & "'," _
& iType_ & "," _
& dHr_ & "," _
& dHh_ & "," _
& dSh_ & "," _
& "1,1 )" )
Else
iRet = InsertIntoArray( arrNode, iCntNode, _
"insert into " & strTableNode & "( Node_ID, NetworkLevel_ID, Group_ID, Name,
& iNodeID & "," _
& iVoltLevelID_ & "," _
& iGroupID_ & "," _
& "'" & strName_ & "'," _
& "'" & strShortName_ & "'," _
& iType_ & "," _
& dHr_ & "," _
& dHh_ & "," _
& dSh_ & "," _
& "1,1 )" )
End If
AddNode = iNodeID
iNodeID = iNodeID + 1
End Function
AddNode is actually very simple. At each call, the parameters generate a SQL string that is entered
in the arrNode array. The SQL commands that are generated look as follows:
insert into Node( Node_ID, VoltLevel_ID, Group_ID, Name, ShortName, Flag_Type,
hr, hh, sh, Variant_ID, Flag_Variant)
values ( 1,2,1,'K1','K1',2,7750,21500,1,1,1 )
October 2014
33/129
SIEMENS
This command show that you do not need to fill in all the table attributes. It is sufficient to fill the key
attributes (highlighted above). Basically, these are the primary key, secondary key and the variant
code. PSS SINCAL automatically fills in all the other attributes with the default values (if they have
not already been filled in).
October 2014
34/129
SIEMENS
End If
If bIsVaid Then
' VoltageLevel/NetworkLevel & NetworkGroup
Dim iLevelID, iGroupID
iLevelID = Node1.iLevel
iGroupID = 1
' Check if there are multiple line segments in this case we must add new
nodes
Dim strName, strShortName, strFullName, iNr, iCntNr
strName
= CStr( rsLine("Name") )
strShortName = Left( rsLine("ShortName"), 8 )
strFullName = CStr( rsLine("Node_ID1") & "|" & rsLine("Node_ID2") & "|"
If dctLineSegments.Exists( strFullName ) Then iCntNr = dctLineSegments.Item(
October 2014
35/129
SIEMENS
& rsLine("Ith") _
& " )" )
If Not Node1.IsPosEmpty() And Not Node2.IsPosEmpty() Then
Dim iGraEleID, iGraTermID1, iGraTermID2
iGraEleID
= AddGraphicElement( iEleID, 19, Node1.ptPos, Node2.ptPos )
iGraTermID1 = AddGraphicTerminal( iTermID1, iEleID, iGraEleID,
Node1.ptPos )
iGraTermID2 = AddGraphicTerminal( iTermID2, iEleID, iGraEleID,
Node2.ptPos )
End If
End If
rsLine.MoveNext
Loop
Set Node1 = Nothing
Set Node2 = Nothing
End If
Call CloseRecordset( rsLine )
Call CloseDatabase()
End Sub
The following SQL command reads out the line data from the import database:
Call OpenRecordset( "SELECT Node1 AS Node_ID1, Node2 AS Node_ID2, Name AS ID, Name, " _
& "'' As ShortName, "0 As Nr, l AS LineLength, r, x, c, Un, " _
& Ith, 'ON' AS Status, 'ON' AS Switch1, 'ON' AS Switch2 " _
& "FROM Line", rsLine )
Records selected in this way are processed in a program loop. For each line record, it creates the
appropriate SQL insert commands. Basically, the following commands are used:
iEleID
= AddElement( "Line", strName, strShortName, iLevelID, iGroupID, 3, iState )
iTermID1 = AddTerminal( iEleID, iInternalID1, 1, 7, iTermState1 )
iTermID2 = AddTerminal( iEleID, iInternalID2, 2, 7, iTermState2 )
iRet = InsertIntoArray( arrLine, iCntLine, _
"insert into Line ( Element_ID, Typ_ID, Flag_Typ_ID, l, r, x, c, " _
& "Un, Ith ) values ( " _
& iEleID & "," _
& iStandardType & "," _
& iFlagStandardType & "," _
& rsLine("LineLength") & "," _
& rsLine("r") & "," _
& rsLine("x") & "," _
& rsLine("c") & "," _
& rsLine("Un") & "," _
& rsLine("Ith") _
& " )" )
The network diagram for the line is generated with the following commands:
iGraEleID
= AddGraphicElement( iEleID, 19, Node1.ptPos, Node2.ptPos )
iGraTermID1 = AddGraphicTerminal( iTermID1, iEleID, iGraEleID, Node1.ptPos )
iGraTermID2 = AddGraphicTerminal( iTermID2, iEleID, iGraEleID, Node2.ptPos )
The SQL commands that are generated to create line data look as follows:
insert into Element( Element_ID, VoltLevel_ID, Group_ID,
Name, ShortName, Type, Flag_Input, Flag_State,
Variant_ID, Flag_Variant )
values ( 1,1,1,'L10','','Line',3,1,1,1 )
October 2014
36/129
SIEMENS
October 2014
37/129
SIEMENS
' Nodes
Call InsertRecords( iCntNode, arrNode, "Node: " )
' Element & Terminal
Call InsertRecords( iCntElement, arrElement, "Element: " )
Call InsertRecords( iCntTerminal, arrTerminal, "Terminal: " )
' Lines
Call InsertRecords( iCntLine, arrLine, "Line: " )
' Transfomer
Call InsertRecords( iCntTransformer, arrTransformer, "TwoWindingTransformer: " )
' Load & Customer data
Call InsertRecords( iCntLoad,
' Graphics
Call InsertRecords(
Call InsertRecords(
Call InsertRecords(
Call InsertRecords(
arrLoad,
iCntGraphicNode,
iCntGraphicText,
iCntGraphicTerminal,
iCntGraphicElement,
"Load: " )
arrGraphicNode,
arrGraphicText,
arrGraphicTerminal,
arrGraphicElement,
"GraphicNode: " )
"GraphicText: " )
"GraphicTerminal: " )
"GraphicElement: " )
Call CloseDatabase()
End Sub
3.2
October 2014
/FILE:{Database}
MS Access:
SQL Server Express:
ORACLE:
SQL Server:
/ADMIN:User/Password
/USER:User/Password
/SRV:Instance
/TYPE:{E|W|G|H}
[/DB:{NET|STD|PROT}]
[/DATA]
Network-Type (E)lectro|(W)ater|(G)as|(H)eating
Database-Type (Network-Database is default]
Fills STD-DB and Prot-DB with default data
38/129
SIEMENS
[/LANG:{ENG|GER}]
[/SIN:Filename]
Required Parameters
/DBSYS:{ACCESS|ORACLE|SQLSERVER|SQLEXPRESS}
Database-System
/FILE:{Database}
MS Access:
SQL Server Express:
ORACLE:
SQL Server:
/ADMIN:User/Password
/USER:User/Password
/SRV:Instance
/TYPE:{E|W|G|H}
Network-Type (E)lectro|(W)ater|(G)as|(H)eating
Optional Parameters
[/DB:{NET|STD|PROT}]
[/DATA]
[/LANG:{ENG|GER}]
[/SIN:Filename]
The DBSYS parameter determines which database system is used. You can select between
ACCESS (Microsoft Access), ORACLE, SQLSERVER (SQL Server) and SQLEXPRESS (SQL
Server Express).
The FILE parameter designates the PSS SINCAL database name. Depending on which database
system is used, this parameter must be entered in different ways. In Microsoft Access and SQL
Server Express, you need the complete path and file name. In Oracle, you need the user name,
password and server name in the format "User/Password/@Server". When you use the SQL Server,
you need the database name and server name in the format "DBName@Server".
ADMIN is required for Oracle and SQL Server database systems. This is needed for the main user
managing the PSS SINCAL networks. This parameter is defined in the format "User/Password". If
this parameter has not been entered, the settings are loaded from the PSS SINCAL registry.
USER is required when the SQL Server is used as a database system. This provides information on
who is using the SQL Server and is defined in the format "User/Password".
SRV is used to explicitly enter the database server. If this parameter has not been entered, the
server name is loaded from the PSS SINCAL registry.
October 2014
39/129
SIEMENS
The TYPE parameter indicates the network type. You can select E (electricity), W (water), G (gas)
and H (district heating/district cooling) networks.
All other parameters are optional and control the generation procedure.
To define the type of database to be created, use the parameter for DB. The default is network
database (NET). Additional values for these parameters are STD for standard type database and
PROT for protection device database.
The DATA parameter fills the standard database or protection-device database with standard types
or standard devices.
LANG lets you select the language (English, German) of the network database.
SIN lets you enter the PSS SINCAL network file. This parameter is only for creating network
databases.
The above example creates the Access database "dbnet.mdb" for an electrical network in the
"C:\Temp" directory in English.
In the above example, an Oracle standard database has been created for pipe networks in English.
This database has "OraSTDFL" for the Oracle user and the password "pwd123". Additionally the
database is filled with standard types.
The above example creates an Access protection device database for electrical networks in English.
The "stdprot.mdb" database is created in the directory "C:\Temp". An empty database is created.
October 2014
40/129
SIEMENS
Required Parameters
/DBSYS:{ORACLE|SQLSERVER}
Database-System
/ADMIN:User/Password
/SRV:Instance
The DBSYS parameter determines which database system is used. You can select between
ORACLE and SQLEXPRESS (SQL Server).
ADMIN is required for Oracle and SQL Server database systems. This is needed for the main user
managing the PSS SINCAL networks. This parameter is defined in the format "User/Password". If
this parameter has not been entered, the settings are loaded from the PSS SINCAL registry.
SRV is used to explicitly enter the database server. If this parameter has not been entered, the
server name is loaded from the PSS SINCAL registry.
Example
C:\> SinDBCreate /LIST /DBSYS:ORACLE /ADMIN:SINCAL/SINCAL /SRV:ORA10
The above example lists all available PSS SINCAL databases. First of all a connection to the
ORACLE instance with the name "ORA10" and the user "SINCAL" is established. If the connection is
successful the available databases are displayed line by line.
Required Parameters
/DBSYS:{ORACLE|SQLSERVER}
Database-System
/FILE:{Database}
ORACLE:
SQL Server:
User
Database
/ADMIN:User/Password
/SRV:Instance
The DBSYS parameter determines which database system is used. You can select between
ACCESS (Microsoft Access), ORACLE, SQLSERVER (SQL Server) and SQLEXPRESS (SQL
Server Express).
The FILE parameter designates the PSS SINCAL database name. Depending on which database
system is used, this parameter must be entered in different ways. When using Oracle, enter the user
name. When using the SQL Server, enter the database name.
October 2014
41/129
SIEMENS
ADMIN is required for Oracle and SQL Server database systems. This is needed for the main user
managing the PSS SINCAL networks. This parameter is defined in the format "User/Password". If
this parameter has not been entered, the settings are loaded from the PSS SINCAL registry.
SRV is used to explicitly enter the database server. If this parameter has not been entered, the
server name is loaded from the PSS SINCAL registry.
Example
C:\> SinDBCreate /DELETE /DBSYS:ORACLE /FILE:SINCAL_TEST /ADMIN:SINCAL/SINCAL /SRV:ORA10
The above example deletes the PSS SINCAL "SINCAL_TEST" database. First of all a connection to
the ORACLE instance with the name "ORA10" and the user "SINCAL" is established. Deleting the
PSS SINCAL database cannot be undone.
October 2014
42/129
SIEMENS
External Server
SimulateSrv.exe
COM Interface
COM Interface
For high performance solutions, you can administer all the network data and, of course, the results in
"virtual tables" directly in the PSS SINCAL calculations. The structure of these virtual tables is exactly
like the PSS SINCAL data model. COM interfaces write network data, get results and control the
calculation methods.
For a C++ sample program that shows how calculation methods are integrated into external
applications and how virtual tables are used, see the PSS SINCAL installation structure
("Batch\SimAuto.zip").
October 2014
43/129
SIEMENS
October 2014
44/129
SIEMENS
October 2014
45/129
SIEMENS
& "Mvar"
End Sub
'-----------------------------------------------------------------------------' Output some data of LFAccurResult to console
'-----------------------------------------------------------------------------Sub OutputLFAccurResult( ByRef SimulateNetworkDataSource )
' Get datbase object LFAccurResult from virtual database
Dim LFAccurResult
Set LFAccurResult = SimulateNetworkDataSource.GetRowObj( CStr( "LFAccurResult" ) )
If LFAccurResult Is Nothing Then
WScript.Echo "Error: cant get objects in LFAccurResult!"
WScript.Quit
End If
' Open table LFAccurResult
Dim hr
hr = LFAccurResult.Open
If hr <> 0 Then
WScript.Echo "Error: cant open LFAccurResult!"
WScript.Quit
End If
' Move cursor to first row
Dim bRead_next_data
bRead_next_data = LFAccurResult.MoveFirst
If bRead_next_data = 0 Then
' Get attribut Iteration Number
Dim IterCnt
IterCnt = LFAccurResult.Item( "IT" )
' Get attribute Power Node Balance
Dim PNB
PNB = LFAccurResult.Item( "PNB" )
' Get attribute Power Node Balance
Dim PNBre
PNBre = LFAccurResult.Item( "PNBre" )
'Get attribute Voltage Mesh Balance
Dim VLB
VLB = LFAccurResult.Item( "VLB" )
'Get attribut Voltage Mesh Balance
Dim VLBre
VLBre = LFAccurResult.Item( "VLBre" )
'Output to console
WScript.Echo "IT = " & IterCnt & ", Power Accuracy PNBre = " & FormatNumber( PNBre /
1000.0 ) & "kW"
End If
' Release datbase object LFAccurResult
Set LFAccurResult = nothing
End Sub
'-----------------------------------------------------------------------------' Write simulation messages
October 2014
46/129
SIEMENS
After the program starts, PSS SINCAL normally displays an error message. The reason for this is
simple. The sample program statically stores the PSS SINCAL network database to be used in the
calculations. These global preliminary settings need to be adapted for individual experiments.
Dim strDatabase ' Database of sincal network
strDatabase = "D:\Network\_Test\Example Ele.mdb"
Dim strProtDatabase ' Database with protection devices
strProtDatabase = "D:\Server-Setup\Database\ProtectionDB.mdb"
Dim strLoad ' Name of Load to be changed
strLoad = "LO8"
First, modify the contents of the strDatabase variable. Enter the network to be calculated.
Then change the strProtDatabase variable. This defines the database for global protection devices
and can be found in the PSS SINCAL Installation "database" directory.
The strLoad variable specifies the load to be increased. In our example, this is the load with the
name "L08".
October 2014
47/129
SIEMENS
When you restart the sample program after you have modified the database paths, PSS SINCAL
displays the following text.
>cscript.exe VoltageDrop.vbs
-------- 0 -------Set load LO8 to P = 0.5MW, Q = 0.4Mvar
Node voltage at modified load U/Un = 92.37%
IT = 9, Power Accuracy PNBre = 0.00kW
-------- 1 -------Set load LO8 to P = 0.6MW, Q = 0.5Mvar
Node voltage at modified load U/Un = 91.75%
IT = 9, Power Accuracy PNBre = 0.00kW
-------- 2 -------Set load LO8 to P = 0.7MW, Q = 0.6Mvar
Node voltage at modified load U/Un = 91.13%
IT = 10, Power Accuracy PNBre = 0.00kW
...
-------- 33 -------Set load LO8 to P = 3.8MW, Q = 3.7Mvar
Node voltage at modified load U/Un = 55.96%
IT = 10, Power Accuracy PNBre = 0.00kW
-------- 34 -------Set load LO8 to P = 3.9MW, Q = 3.8Mvar
Load flow failed!
Simulation Messages:
W 2714: Element data not physically meaningful
E 3101: Load flow: no convergence break after 200 iterations
E 1070: Please have a look at System Manual Technical Reference Messages from
Calculations Errors for further error information
Now the program executes without errors. 34 load flow calculations are performed. Before every
rd
calculation, the load value of "L08" increases by 0.1 MW. The 33 time around, a convergence with a
th
node voltage of 55.96 was still possible. The 34 time, no convergence is possible. This means the
maximum load value permitted is P = 3.8 MW and Q = 3.7 Mvar.
October 2014
48/129
SIEMENS
4.1
Message Object
Database Object
Tabular Object
October 2014
49/129
SIEMENS
Calculation Object:
Database Object:
Tabular Object:
Message Object:
October 2014
50/129
SIEMENS
Local Server
Local servers are executable programs that implement COM components. When a COM component
is instantiated, this program starts as its own background process.
For communication between the processes, PSS SINCAL uses a special RPC log (Remote
Procedure Call) to slow down the speed in the data exchange. The advantage is that completely
separate processes and storage models are used. This means that even serious program errors do
not influence any other processes.
The following starts the calculations as a new process.
Set SincalSimSrv = WScript.CreateObject( "Sincal.SimulationSrv" )
If SincalSimSrv Is Nothing Then
WScript.Echo "Error: CreateObject Sincal. SincalSimSrv failed!"
WScript.Quit
End If
In-Process Server
In the case of an in-process server, PSS SINCAL provides the interfaces in a DLL. If you instantiate
a COM component of an in-process server, PSS SINCAL loads the appropriate server into the
current process. In-process servers are particularly fast, since the functions of the interfaces are
accessed within the limits of the process.
The following instantiates the calculations in the "current" process as an additional COM component.
Set SincalSim = WScript.CreateObject( "Sincal.Simulation" )
If SincalSim Is Nothing Then
WScript.Echo "Error: CreateObject Sincal.Simulation failed!"
WScript.Quit
End If
October 2014
51/129
SIEMENS
Parameters
iMode (Integer)
Database mode for the calculations. The mode is a numerical value from 0 to 2.
Code
Description
Comments
In normal simulation, the output data are stored directly in the database. The Batchmode function,
however, sends the output data to a virtual database. This greatly increases the speed, since you do
not lose time making entries in the database. The results are kept only in the virtual database of the
main memory for the calculations.
Example
' Enable virtual database.
SimulateObj.BatchMode 1
Parameters
strDBType (String)
Predefined sign for the database type.
Database type
Description
"DEFAULT"
Network database
"PROT"
"PROT_USR"
October 2014
52/129
SIEMENS
strDBSystem (String)
Predefined sign for the database system.
Database system
Description
"JET"
Microsoft Access
"ORACLE"
Oracle
strDatabase (String)
Complete path and file name of the database.
strUser (String)
User name for the database.
strPassword (String)
Password for the database.
Comments
This function is obsolete and no longer recommended for use. It is only included for reasons of
compatibility and should be replaced by the Database Set the Databases function.
Example
' Set database filename and path.
SimulateObj.DataSourceEx "DEFAULT", "JET", strDatabase, "Admin", ""
SimulateObj.DataSourceEx "PROT", "JET", strProtDatabase, "Admin", ""
Parameters
strConnection (String)
Database connection.
Code
Description
"TYP"
Database type
"MODE"
Database system
"INSTANCE"
Database server
"NAME"
Database name
"USR"
User name
"PWD"
Password
"SYSUSR"
"SYSPWD"
"FILE"
"SINFILE"
October 2014
53/129
SIEMENS
Description
"NET"
Network database
"PROT"
"PROT_USR"
"STD"
"STD_USR"
Description
"JET"
Microsoft Access
"ORACLE"
Oracle
"SQLSERVER"
SQL Server
"SQLEXPRESS"
Comments
Database connections can either be entered as pairs with field=value and ";" or as short forms in the
complete sequence.
Pairs:
TYP=NET;MODE=JET;...
Short form:
TYP;MODE;FILE;INSTANCE;NAME;USR;PWD;SINFILE;SYSUSR;SYSPWD;
Example
Depending on the database system, different connection codes are used.
' Set database connection string depending on database system.
' ACCESS:
SimulateObj.Database "TYP=NET;MODE=JET;FILE=C:\Temp\Example
Ele_files\database.mdb;USR=Admin;PWD=;SINFILE=C:\Temp\Example Ele.sin;"
SimulateObj.Database "NET;JET;C:\Temp\Example Ele_files\database.mdb;;;Admin;;C:\Temp\Example
Ele.sin;;;"
' ORACLE:
SimulateObj.Database
"TYP=NET;MODE=ORACLE;USR=ORA_ELE1;PWD=ORA_ELE1;INSTANCE=ORA11;SINFILE=C:\Temp\Example
Ele.sin;SYSUSR=sincal;SYSPWD=sincal;"
SimulateObj.Database "NET;ORACLE;;ORA11;;ORA_ELE1;ORA_ELE1;C:\Temp\Example
Ele.sin;sincal;sincal;"
' SQLEXPRESS:
SimulateObj.Database "TYP=NET;MODE=SQLEXPRESS;FILE=C:\Temp\Example
Ele_files\database.mdf;NAME=Example Ele;SINFILE=C:\Temp\Example Ele.sin;"
SimulateObj.Database "NET;SQLEXPRESS;C:\Temp\Example Ele_files\database.mdf;;Example Ele;;;
C:\Temp\Example Ele.sin;;;"
October 2014
54/129
SIEMENS
' SQLSERVER:
SimulateObj.Database
"TYP=NET;MODE=SQLSERVER;NAME=SQLSRV_ELE1;INSTANCE=SQLSRV;USR=username;PWD=password;SINFILE=C:
\Temp\Example Ele.sin;SYSUSR=sincal;SYSPWD=sincal;"
SimulateObj.Database "NET;SQLSERVER;;SQLSRV;SQLSRV_ELE1;username;password;C:\Temp\Example
Ele.sin;sincal;sincal;"
Parameters
strUser (String)
SQL user name.
strPassword (String)
SQL password.
Example
' Set the SQL user.
SimulateObj.SQLUser "User", "Password"
Parameters
strDataFile (String)
Complete path and file name of the data file.
Example
' Set the datafile for imports or exports.
SimulateObj.DataFile "C:\Test\CIM\CIMExample.xml"
October 2014
55/129
SIEMENS
Parameters
strGlobalPath (String)
Complete path of the directory, where global models are stored.
strLocalPath (String)
Complete path of the directory, where local models are stored.
Example
' Set global and local path for models.
SimulateObj.MacroPath "C:\GlobalMacros", "C:\LocalMacros"
Parameters
strLanguage (String)
Predefined code for the language to be set.
Code
Description
"DE"
"US"
Example
' Select language for messages.
SimulateObj.Language "DE"
Parameters
strCurrency (String)
Currency sign to be set.
Example
' Set currency.
SimulateObj.Currency "EUR"
October 2014
56/129
SIEMENS
SimulateObj.Currency ""
Parameters
lInputMask (Long Integer)
Bitwise form with predefined codes for input states.
Code
Description
Electrical networks
0x00000001
Load Flow
0x00000002
Short Circuit
0x00000004
Harmonics
0x00000008
Motor Start-Up
0x00000010
Low-Voltage Dimensioning
0x00000020
Multiple Faults
0x00000040
Protection
0x00000080
Distance Protection
0x00000100
Optimization
0x00000200
Dynamics
0x00000400
0x00000800
Reliability
0x00001000
Economic Efficiency
0x00002000
Load Assignment
0x00004000
Arc Flash
Pipe networks
0x00080000
Steady-State Calculations
0x00100000
Dynamic Calculations
0x00200000
Geo-Stationary Calculations
Example
const CalcMethod_LF = &H00000001
const CalcMethod_SC = &H00000002
' Set input data mask.
SimulateObj.SetInputState CalcMethod_LF Or CalcMethod_SC
October 2014
57/129
SIEMENS
Parameters
strMethod(String)
Predefined sign for the calculation method. For a complete list of permissible values, see the function
Start Start Calculation.
Comments
When you select a specific calculation method, PSS SINCAL loads only the data required by this
calculation method from the database.
Example
' Load input data for load flow calculations from database.
SimulateObj.LoadDB "LF_NR"
Parameters
strMethod (String)
Predefined sign for the calculation method. For a complete list of permissible values, see the function
Start Start Calculation.
Example
' Save results to database.
SimulateObj.SaveDB "LF_NR"
Parameters
lRowType (Long Integer)
Database type of the object.
lDBID (Long Integer)
Database ID of the object.
October 2014
58/129
SIEMENS
eMode (Enum)
Predefined code for using objects in the calculations.
Enumeration
Code
ADDOBJ_LF_NONE
Description
ADDOBJ_LF_MALF
Contingency Analysis
ADDOBJ_OBJ_SC
ADDOBJ_OBJ_EXP
ADDOBJ_OBJ_MOT_SIMPLE
ADDOBJ_LF_ALLOC
Load Allocation
ADDOBJ_LF_RESUP
Restoration of Supply
ADDOBJ_FLOW_H2O_MALF
ADDOBJ_FLOW_GAS_MALF
ADDOBJ_FLOW_HEAT_MALF
ADDOBJ_OPT_CAP
10
Capacitor Placement
ADDOBJ_GEN_PV
11
PV Curves
ADDOBJ_FLOW_H2O_LEAK
12
Fire Water
ADDOBJ_LF_MALF_RECON
13
ADDOBJ_OPT_NET
14
ADDOBJ_ECO
15
Economic Efficiency
ADDOBJ_NETRED_INCLUDE
16
ADDOBJ_NETRED_EXCLUDE
17
ADDOBJ_NETRED_BOUNDARY
18
Example
' Set object for further usage.
const ADDOBJ_OBJ_SC = 2
Simulation.AddObjID( 4, 1, ADDOBJ_OBJ_SC );
Properties
Parameter (Variant)
Value of the parameter.
Parameters
strParameter (String)
Predefined name of the parameter. Different calculation methods have different parameters.
October 2014
59/129
SIEMENS
Global Parameters
Parameter
Data type
Description
"Sim.Identification"
String
"GRAPHIC_VIEWID"
Integer
Contingency Analysis
Parameter
Data type
Description
"CA_MODE"
String
"CA_PRE_ANALYSE_MODE"
String
"CA_PRE_ANALYSE_COUNT"
Integer
Restoration of Supply
Parameter
Data type
Description
"LF_RESUP_MODE"
Integer
"LF_RESUP_RESUPPLYCNT_ACT"
Integer
"LF_RESUP_RESUPPLYCNT"
Integer
"LF_RESUP_SWITCHCNT_ACT"
Integer
"LF_RESUP_SWITCHCNT"
Integer
"LF_RESUP_LOADSHEDDING_ACT"
Integer
"LF_RESUP_VIOLATION_ACT"
Integer
"LF_RESUP_SWITCHCNT_FACTOR"
Double
"LF_RESUP_LOADSHEDDING_FACTOR"
Double
"LF_RESUP_VIOLATION_FACTOR"
Double
VoltVar
Parameter
Data type
Description
"OPT_VOLTVAR_CAP_SN"
Double
"OPT_VOLTVAR_TRAFO"
Integer
October 2014
60/129
SIEMENS
1 = activated
"OPT_VOLTVAR_TRAFO_SN"
Double
"OPT_VOLTVAR_TRAFO_UK"
Double
"OPT_VOLTVAR_LIMIT_LOWER"
Double
"OPT_VOLTVAR_LIMIT_UPPER"
Double
"OPT_VOLTVAR_MINMAX_MODE"
Integer
"OPT_VOLTVAR_MIN_FACTOR"
Double
"OPT_VOLTVAR_MAX_FACTOR"
Double
"OPT_VOLTVAR_MIN_OPID"
Integer
"OPT_VOLTVAR_MAX_OPID"
Integer
Data type
Description
"STATNETRED_USESOURCEDB"
Integer
"STATNETRED_SINFILE"
String
"STATNETRED_DATABASE"
String
"STATNETRED_CREATEGRAPHIC"
Integer
"STATNETRED_EXTWARD"
Integer
"STATNETRED_SC1"
Integer
"STATNETRED_SC3"
Integer
Data type
Description
"DYNNETRED_USESOURCEDB"
Integer
"DYNNETRED_SINFILE"
String
"DYNNETRED_DATABASE"
String
"DYNNETRED_CREATEGRAPHIC"
Integer
October 2014
61/129
SIEMENS
Double
"DYNNETRED_TIMEEND"
Double
"DYNNETRED_LOWERLIMIT"
Double
"DYNNETRED_MACHINES"
Integer
"DYNNETRED_FUNCTION"
Integer
"DYNNETRED_REFNODE"
Integer
"DYNNETRED_REFVOLTAGE"
Double
"DYNNETRED_MAXPOWER"
Double
"DYNNETRED_POWERIGNORE"
Double
"DYNNETRED_PREFIX"
String
"DYNNETRED_NODEMODELNET"
Integer
"DYNNETRED_NODEMODELMACHINES"
Integer
"DYNNETRED_NODEMODELCOUPLING"
Integer
"DYNNETRED_KEEPNAMES"
Integer
"DYNNETRED_REDCONTROLLER"
Integer
"DYNNETRED_NOTREDCONTROLLER"
Integer
"DYNNETRED_KEEPCONTROLLER"
Integer
"DYNNETRED_PSSCONTROLLER"
Sting
"DYNNETRED_EXCITER"
String
"DYNNETRED_GOVERNOR"
String
CIM Export
Parameter
Data type
Description
"CIM_FORMAT"
String
CIM version
October 2014
62/129
SIEMENS
"CIM_V10"
"CIM_V11"
"CIM_V12"
"CIM_V14"
"CIM_V15"
"CIM_PROFILE"
String
CIM profile
"CIM_STANDARD" = CIM Standard
"CIM_PLANNING" = CIM for Planning
"CIM_ENTSOE" = CIM for ENTSO-E
"FILENAME"
"FILENAME_###"
String
Complete path and file name for the first file as well as the subsequent files.
### specifies the file number, ranging from 2 up to at the very most the
number indicated under FILENAME_CNT.
"FILENAME_FLAG"
"FILENAME_FLAG_###"
String
File type for the first data file as well as the subsequent files, ### specifies
the file number, ranging from 2 up to at the very most the number
indicated under FILENAME_CNT.
"DATA" = CIM input file
"BOUNDARY" = CIM boundary file
"CONFIG" = CIM configuration file
"CIM_NAME"
Integer
Determines what CIM attribute is used as the name. Valid indicators are:
0 = none
1 = cim:IdentifiedObject.Name
2 = cim:IdentifiedObject.AliasName
3 = cim:IdentifiedObject.Description
"CIM_SHORTNAME"
Integer
Determines what CIM attribute is used as the short name. Valid indicators
are:
0 = none
1 = cim:IdentifiedObject.Name
2 = cim:IdentifiedObject.AliasName
3 = cim:IdentifiedObject.Description
"CIM_SPLITFILES"
Integer
"CIM_CREATEZIP"
Integer
"CIM_MRID"
String
Type of ID used
"SINCALID" = ID generated by PSS SINCAL
"UUID" = Universal Unique ID
"GUID" = Global Unique ID
"CIM_LFRESULTS"
Integer
"EXPORT_GRAPHIC"
Integer,
String
Export graphics
0, "NONE" = no graphic export
1, "AUTOMATIC" = automatic graphic export
2, "SINCAL" = simple graphic export
3, "EXTENDED" = extended graphic export
"CIM_GENERATEDNAMES"
Integer
CIM Import
Parameter
Data type
Description
"FILENAME_CNT"
Integer
"FILENAME"
"FILENAME_###"
String
Complete path and file name for the first file as well as the
subsequent files. ### specifies the file number, ranging from 2
up to at the very most the number indicated under
October 2014
63/129
SIEMENS
FILENAME_CNT.
"FILENAME_FLAG"
"FILENAME_FLAG_###"
String
File type for the first data file as well as the subsequent files,
### specifies the file number, ranging from 2 up to at the very
most the number indicated under FILENAME_CNT.
"DATA" = CIM input file
"BOUNDARY" = CIM boundary file
"CONFIG" = CIM configuration file
"CIM_FORMAT"
String
CIM version
"CIM_V10"
"CIM_V11"
"CIM_V12"
"CIM_V14"
"CIM_V15"
"CIM_PROFILE"
String
CIM profile
"CIM_STANDARD" = CIM Standard
"CIM_PLANNING" = CIM for Planning
"CIM_ENTSOE" = CIM for ENTSO-E
"BASE_FREQUENCY"
Double
Basic frequency
"LENGTH_FACTOR"
Double
"CIM_NAME"
Integer
"CIM_SHORTNAME"
Integer
"IMPORT_GRAPHIC"
Integer
Import graphics
0 = no
1 = yes
"GRAPHIC_MODE"
Integer
Graphics mode
0 = schematic
1 = geographical
"GRAPHIC_INDIVIDUAL_TEXT"
Integer
"GRAPHIC_SCALE_FACTOR"
Double
"GRAPHIC_SYMBOLSIZE"
Integer
"GRAPHIC_OFFSETX"
Double
"GRAPHIC_OFFSETY"
Double
PSS E Export
Parameter
Data type
Description
"EXPORT_NAME"
Integer
"EXPORT_NAME_KEY"
Integer
"PSSE_VERSION"
Integer
Version number
Permissible are: 32 and 33
October 2014
64/129
SIEMENS
PSS E Import
Parameter
Data type
Description
"FILENAME_CNT"
Integer
"FILENAME"
"FILENAME_###"
String
Complete path and file name for the first data file as well
as for all subsequent files. ### specifies the file number,
ranging from 2 up to at the very most the number
indicated under FILENAME_CNT.
"PSSE_VERSION"
Integer
Version number
Permissible are: 29, 30, 31, 32, 33 and 0 (Auto)
"PSSE_SEQ_FILENAME"
String
"PSSE_MODE"
Integer
Import mode
0 = standard mode
1 = enhanced import
"BASE_FREQUENCY"
Double
Basic frequency
"LENGTH_FACTOR"
Double
"ZERO_IMPEDANCE"
Integer
"ZERO_IMPEDANCE_MIN_VALUE"
Double
"PSSE_REFVOLTAGE"
Double
"GRAPHIC_FILENAME_CNT"
Integer
"GRAPHIC_FILENAME"
"GRAPHIC_FILENAME_###"
String
Complete path and file name for the first graphics file as
well as for all subsequent files. ### specifies the file
number, ranging from 2 up to at the very most the
number indicated under GRAPHIC_FILENAME_CNT.
UCTE Export
Parameter
Data type
Description
"EXPORT_NAME"
Integer
"EXPORT_NAME_KEY"
Integer
DVG Export
Parameter
Data type
Description
"EXPORT_NAME"
Integer
DVG Import
Parameter
Data type
Description
"FILENAME"
String
"DVG_IMPORT_MODE"
Integer
October 2014
65/129
SIEMENS
"GRAPHIC_FILENAME_CNT"
Integer
"GRAPHIC_FILENAME"
"GRAPHIC_FILENAME_###"
String
Complete path and file name for the first graphics file as well as
for all subsequent files. ### specifies the file number, ranging from
2 up to at the very most the number indicated under
GRAPHIC_FILENAME_CNT.
Example
' Set ShortName as default for object access.
SimulateObj.Parameter( "Sim.Identification" ) = "ShortName"
' Set Name as default for object access.
SimulateObj.Parameter( "Sim.Identification" ) = "Name"
Parameters
strCommand (String)
Predefined sign of the command to be executed.
Command
Description
"CHANGEVARIANT"
Change variant
"DELETERESULTS"
Data type
Description
vtParameter1
vtParameter2
Boolean
Data type
Description
vtParameter1
vtParameter2
Boolean
Example
' Change variant to Base.
SimulateObj.DoCommand "CHANGEVARIANT", "Base", False
October 2014
66/129
SIEMENS
Parameters
strMethod (String)
Predefined sign for the calculation method.
The following table lists the parameters that can be used to specify the calculation method.
Calc. method
Description
Electrical networks
LF
LF_NR
LF_YMAT
LF_CI
LF_USYM
LF_NETO
LF_PSSE
LF_MALF
LF_TRIM
Load Assignment
LF_ALLOC
Load Allocation
LF_BAL
Load Balancing
LF_RESUP
Restoration of Supply
LF_TAP
LF_INC
Load Development
LC
Load Profile
GEN_PV
PV Curves
OPT_LF
OPT_BR
Optimal Branching
OPT_COMP
Compensation Power
OPT_CAP
Capacitor Placement
OPT_NET
COND
Contingency Analysis
SC1
SC2
SC3
SC1 [NodeID]
SC2 [NodeID]
SC3 [NodeID]
IC[x][R][E] [NodeID]
GC2
MF
Multiple Faults
DIM
Low-Voltage Dimensioning
HAR
Harmonics
RC
Ripple Control
ECO_SUM
Economic Efficiency
October 2014
67/129
SIEMENS
MOT
Motor Start-Up
MOT_SIMPLE
NETO_STAB
Stability
NETO_TSTAB
Transient Stability
NETO_EW
Eigenvalues
REL
Reliability
REL_EVAL
Reliability Evaluations
PROT IC[x][R][E]
[FaultID]
PROT MF
PROT_DET
PROT_SET
DI Device Settings
PROT_SET_CHART
DI Device Charts
PROT_ROUTE SC1
PROT_ROUTE SC2
PROT_ROUTE GC2
PROT_ROUTE SC3
PROT_ROUTE
IC[x][R][E]
ARCFL
Arc Flash
ZUBER
Reliability
ZUBER_EVAL
Reliability Evaluations
Water networks
FLOW_H2O
Steady-State
FLOW_H2O_TM
Time Series
FLOW_H2O_OP
Operating Series
FLOW_H2O_COND
Contingency Analysis
FLOW_H2O_MALF
FLOW_H2O_FWP
FLOW_H2O_FWQ
FLOW_H2O_LEAKP
FLOW_H2O_LEAKQ
Gas networks
FLOW_GAS
Steady-State
FLOW_GAS_TM
Time Series
FLOW_GAS_OP
Operating Series
FLOW_GAS_COND
Contingency Analysis
FLOW_GAS_MALF
Heating/cooling
networks
FLOW_HEAT
Steady-State
FLOW_HEAT _TM
Time Series
FLOW_HEAT _OP
Operating Series
FLOW_HEAT_COND
Contingency Analysis
FLOW_HEAT_MALF
October 2014
68/129
SIEMENS
The following table lists the parameters that can be used to specify the import and export functions.
Import/export
Description
Electrical networks
CIM_IMP
CIM Import
CIM_EXP
CIM Export
PSSE_IMP
PSS E Import
PSSE_EXP
PSS E Export
UCTE_IMP
UCTE Import
UCTE_EXP
UCTE Export
DVG_IMP
DVG Import
DVG_EXP
DVG Export
Example
' Start load flow simulation.
SimulateObj.Start "LF_NR"
If SimulateObj.StatusID = 1101 Then
WScript.Echo "Simulation finished without errors!"
Else
WScript.Echo "Error: Load flow failed!"
Exit Do
End If
Properties
StatusID (Long Integer)
Status code for the calculation procedure. "1101" indicates that the calculations were error-free.
Example
' Check if the simulation was finished without any errors.
If Not ( SimulateObj.StatusID = 1101 ) Then
WScript.Echo "Error: Simulation failed!"
End If
October 2014
69/129
SIEMENS
Parameters
strObjectType (String)
Object type of the network element. This is the name of the database table where the element data
are stored.
lDBID (String)
Database ID of the network element.
strName (String)
Name of the network element. A global parameter can be assigned to use the name or the short
name for identification.
Return Value
Object (Object)
Automation object of a network element created in the calculations.
Example
' Get SimulationObject of type "LOAD" with name "LO8".
Dim LoadObj
Set LoadObj = SimulateObj.GetObj( "LOAD", CStr( "LO8" ) )
If LoadObj is Nothing Then
WScript.Echo "Error: Load not found!"
WScript.Quit
End If
Parameters
lID (Long Integer)
Internal number of the calculation object. See the topology data of the calculation objects for this
"Internal ID".
strGUID (String)
Master Resource of the calculation object.
Return Value
SimObj (Object)
Automation object of a network element created in the calculations.
October 2014
70/129
SIEMENS
Example
' Get SimulationObject with internal ID 8.
Dim SimObj
Set SimObj = SimulateObj.GetObjByID( 8 )
If SimObj Is Nothing Then
WScript.Echo "Error: Object not found!"
WScript.Quit
End If
' Get SimulationObject with Master Resource ID.
Dim SimObj
Set SimObj = SimulateObj.GetObjByGUID( "289DAFC1-8541-4abb-AE9F-1C47E6A2D32B" )
If SimObj Is Nothing Then
WScript.Echo "Error: Object not found!"
WScript.Quit
End If
Properties
DB_EL (Object)
Database object for electrical networks.
DB_FLOW (Object)
Database object for pipe networks.
Comments
This property is read-only.
Example
' Get the database object.
Dim SimulateDatabase
Set SimulateDatabase = SimulateObj.DB_EL
If SimulateDatabase Is Nothing Then
WScript.Echo "Error: Getting database object failed!"
WScript.Quit
End If
' ...
Set SimulateDatabase = Nothing
October 2014
71/129
SIEMENS
Properties
Messages (Object)
Automation object for the calculation messages.
Comments
This property is read-only.
Example
' Get message object.
Dim objMessages
Set objMessages = SimulateObj.Messages
' Release message object.
Set objMessages = Nothing
Example
' Get simulation object of type "Load" with name "LO8".
Dim LoadObj
Set LoadObj = SimulateObj.GetObj( "LOAD", "LO8" )
If LoadObj Is Nothing Then
WScript.Echo "Error: Load not found!"
WScript.Quit
End If
' Release the simulation object.
Set LoadObj = Nothing
October 2014
72/129
SIEMENS
Return Value
lCnt (Long Integer)
Number of possible attributes.
Example
' Get the number of available attributes.
Dim Cnt
Cnt = LoadObj.Count()
Properties
Name (String)
Name of the attribute.
Parameters
iAttribute (Long Integer)
Number of the attribute.
Example
' Display the names of all available attributes for the object.
Dim iAttr, lCnt
lCnt = SimObj.Count()
For iAttr = 1 To lCnt
Dim strName
strName = SimObjObj.Name( iAttr )
WScript.Echo iAttr & ": " & strName
Next
October 2014
73/129
SIEMENS
Properties
Item (Variant)
Value of the attribute.
Parameters
iAttribute (Long Integer)
Numerical index of the attribute.
strAttribute (Long Integer)
Name of the attribute.
Comments
What attributes are actually available depends on the object. All objects have identical topology
attributes. These topology attributes uniquely identify nodes and network elements and are used to
switch them ON and OFF.
For a detailed presentation of all the objects and their available attributes, see the chapter
Calculation Objects and their Attributes.
Example
' Get P from the object and set a new value for this attribute.
Dim Val
Val = SimObj.Item( "P" )
SimObj.Item( "P" ) = P * 2
' Get the value with the index 3 and assign a new value.
Dim Val
Val = SimObj.Item( 3 )
SimObj.Item( 3 ) = Val * 2
Parameters
strResult (String)
SQL name of the desired results table.
iTerminalNo (Integer)
Connection number for the desired results.
October 2014
74/129
SIEMENS
Return Value
ResultObj (Object)
Automation object for the results.
Comments
PSS SINCAL provides network element results for each terminal. Node elements (such as
generators, asynchronous machines and loads) have one terminal and branch elements (such as
lines, transformers and serial reactors) have two terminals.
Example
' Get load flow results on the first terminal of object.
Dim ResultObj
Set ResultObj = SimObj.Result( "LFBRANCHRESULT", 1 )
If ResultObj Is Nothing Then
WScript.Echo "Error: No result available!"
End If
Example
' Get the load flow result object for a load.
Dim LFBranchResultLoad
Set LFBranchResultLoad = LoadObj.Result( "LFBRANCHRESULT", 1 )
If LFBranchResultLoad Is Nothing Then
WScript.Echo "Error: Cant get result object!"
End If
If the instance of the automation object is not used any longer, it must be released with the following
instruction.
' Relase the result object.
Set LFBranchResultLoad = Nothing
October 2014
75/129
SIEMENS
Return Value
lCnt (Long Integer)
Number of possible attributes.
Example
' Get the number of available attributes.
Dim Cnt
Cnt = ResultObj.Count()
Properties
Name (String)
Name of the attribute.
Parameters
lAttribute (Long Integer)
Number of the attribute.
Example
' Display the names of all available attributes for the object.
Dim iAttr, lCnt
lCnt = ResultObj.Count()
For iAttr = 1 To lCnt
Dim strName
strName = ResultObj.Name( iAttr )
WScript.Echo iAttr & ": " & strName
Next
Properties
Item (Variant)
Value of the attribute.
October 2014
76/129
SIEMENS
Parameters
iAttribute (Long Integer)
Numerical index of the attribute.
strAttribute (Long Integer)
Name of the attribute.
Comments
This property is read-only.
The calculation results object is exactly the same as the results tables in the PSS SINCAL database.
This means the attribute names are the same as the field names in the results table. For detailed
documentation of all results tables, see the PSS SINCAL Database Description.
Example
' Getting load flow result for node.
Dim LFNodeResult
Set LFNodeResult = NodeObj.Result( "LFNodeResult", 0 )
If LFNodeResult Is Nothing Then
Else
Dim u_un
u_un = LFNodeResult.Item( "U_Un" )
WScript.Echo "Node voltage at node U/Un = " & u_un & "%"
Set LFNodeResult = Nothing
End If
Example
' Database object.
Dim SimulateDatabase
Set SimulateDatabase = SimulateObj.DB_EL
If SimulateDatabase Is Nothing Then
WScript.Echo "Error: Getting database object failed!"
WScript.Quit
End If
If the instance of the automation object is not used any longer, it must be released with the following
instruction.
' Release the tabular object.
Set SimulateDataBase = Nothing
October 2014
77/129
SIEMENS
Parameters
strTable (String)
Name of the database table.
Return Value
TableObj (Object)
Automation object of the database table.
Example
' Get the load flow node result tabular object.
Dim LFNodeResult
Set LFNodeResult = SimulateDatabase.GetRowObj( "LFNodeResult" )
If LFNodeResult Is Nothing Then
WScript.Echo "Error: Getting LFNodeResult object failed!"
WScript.Quit
End If
Example
' Get the load flow node result tabular object.
Dim LFNodeResult
Set LFNodeResult = SimulateDataBase.GetRowObj( "LFNodeResult" )
If LFNodeResult Is Nothing Then
WScript.Echo "Error: Getting LFNodeResult object failed!"
WScript.Quit
End If
If the instance of the automation object is not used any longer, it must be released with the following
instruction.
' Release the tabular object.
Set LFNodeResult = Nothing
October 2014
78/129
SIEMENS
Return Value
hr (HRESULT)
Status code of the command.
Example
' Open a database table.
Dim hr
hr = TableObj.Open()
If hr <> 0 Then
WScript.Echo "Error: Open failed!"
WScript.Quit
End If
Comments
Once you close the database table, you must not access the tabular object any longer. The instance
of the tabular object also needs to be released.
Example
' Close a database table and release it.
TableObj.Close
Set LFNodeResult = Nothing
Properties
CountRows (Long Integer)
Number of the records in a tabular object.
Example
' Open a database table and determine the count of records in it.
Dim hr
hr = TableObj.Open()
If hr <> 0 Then
WScript.Echo "RecordCount: " & TableObj.CountRows
End If
October 2014
79/129
SIEMENS
=
=
=
=
TableObj.MoveFirst()
TableObj.MoveNext()
TableObj.MoveLast()
TableObj.MovePrev()
Return Value
hr (HRESULT)
Status code of the command.
Comments
MoveFirst positions the data cursor at the beginning of the table, MoveLast positions it at the last
record in a table. MoveNext and MovePrev move the data cursor to the next or previous record.
Example
' Move to the first record and start reading.
Dim hr
hr = LFNodeResult.MoveFirst()
Do While hr = 0
' Your own code is here ...
' Move to next records.
hr = LFNodeResult.MoveNext()
Loop
Return Value
lCnt (Long Integer)
Number of possible attributes.
Comments
This property is read-only.
Example
' Get the number of available attributes.
Dim lCnt
lCnt = TableObj.Count
October 2014
80/129
SIEMENS
Properties
Name (String)
Name of the attribute.
Parameters
iAttribute (Long Integer)
Number of the attribute.
Example
' Display the names of all available attributes for the object.
Dim iAttr, lCnt
lCnt = TableObj.Count
For iAttr = 1 To lCnt
Dim strName
strName = TableObj.Name( iAttr )
WScript.Echo iAttr & ": " & strName
Next
Properties
Item (Variant)
Value of the attribute.
Parameters
iAttribute (Long Integer)
Numerical index of the attribute.
strAttribute (Long Integer)
Name of the attribute.
October 2014
81/129
SIEMENS
Example
' Get U_Un from the table.
Dim Val
Val = TableObj.Item( "U_Un" )
Example
' Get messages from simulation.
Dim objMessages
Set objMessages = SimulateObj.Messages
Dim strType
Dim intMsgIdx
For intMsgIdx = 1 To objMessages.Count
Dim Msg
Set Msg = objMessages.Item( intMsgIdx )
Select Case Msg.Type
case 1 ' STATUS
case 2 ' INFO
case 3 ' WARNING
WScript.Echo Msg.Text
case 4 ' ERROR
WScript.Echo Msg.Text
End Select
Set Msg = Nothing
Next
' Release message object if not longer needed.
Set objMessages = Nothing
Properties
Count (Long Integer)
Number of available messages.
Comments
This property is read-only.
October 2014
82/129
SIEMENS
Example
' Get the number of available messages.
Dim Cnt
Cnt = objMessages.Count
WScript.Echo "Number of Messages: " & intMsgCnt
Properties
Item (Object)
Automation object of a message.
Parameters
iMsgIndex (Long Integer)
Numerical index of the message. Permitted indices start with "1" and end with the number of
messages.
Comments
This property is read-only.
Example
' Get a message.
Dim Msg
Set Msg = objMessages.Item( 1 )
Example
' Get the first message and display the message type and text.
Dim Msg
Set Msg = objMessages.Item( 1 )
Select Case Msg.Type
case 1 ' STATUS
WScript.Echo "Status: " & Msg.Text
case 2 ' INFO
WScript.Echo "Info: " & Msg.Text
case 3 ' WARNING
WScript.Echo "Warning: " & Msg.Text
October 2014
83/129
SIEMENS
Properties
Text (String)
Message text.
Comments
This property is read-only.
Example
' Get the first message and display the message text.
Dim Msg
Set Msg = objMessages.Item( 1 )
WScript.Echo Msg.Text
Properties
Type (Integer)
Predefined code for the type of message.
Code
Message type
Description
Status
The calculation methods display status messages while they perform different functions.
Info
Warning
Error
Error messages show serious errors in the calculations and indicate that the calculations
could not be completed properly.
Example
' Get the first message and display the message type.
Dim Msg
Set Msg = objMessages.Item( 1 )
October 2014
84/129
SIEMENS
Properties
CountObjectIds (Long Integer)
Number of network elements.
Comments
This property is read-only.
Example
' Loop over all objects of the current message.
If Msg.CountObjectIds > 0 Then
Dim i
For i = 1 To Msg.CountObjectIds
' ...
Next
End If
Parameters
lIndex (Long Integer)
Numerical index starting with 1.
October 2014
85/129
SIEMENS
Properties
ObjectIdAt (Long Integer)
Network element ID.
ObjectTypeAt (Integer)
Database and type of the network element in a screen form.
Comments
The object type is stored in the first 12 bits and the database type in the highest 4 bits. To determine
the object type, the bit mask has to be combined with 0FFF. You get the database type by moving
the bits 12 spaces to the right.
These properties are read-only.
Example
' Loop over all objects of the current message.
If Msg.CountObjectIds > 0 Then
Dim i
Dim strObjects
For i = 1 To Msg.CountObjectIds
If strObjects <> "" Then
strObjects = strObjects & ", "
End If
' Determine database and object type.
Dim sDBType
Dim sRowType
sDBType = Msg.ObjectTypeAt( i ) \ &H1000
sRowType = Msg.ObjectTypeAt( i ) And &H0FFF
strObjects = strObjects & Msg.ObjectIdAt( i ) & "(" & sRowType & ")"
Next
WScript.Echo strObjects
End If
4.2
Electrical Networks
Object type
Description
General Data
CalcParameter
Calculation settings
VoltageLevel
Network level
NetworkGroup
Network area
October 2014
86/129
SIEMENS
Nodes/Busbars
Node
Node
Node Elements
SynchronousMachine
Synchronous machine
PowerUnit
Power unit
Infeeder
Infeeder
DCInfeeder
DC-Infeeder
AsynchronousMachine
Asynchronous machine
Load
Load
ShuntImpedance
Shunt impedance
ShuntReactor
Shunt reactor
ShuntCondensator
Shunt capacitor
VarShuntElement
HarResNet
Branch Elements
TwoWindingTransformer
Two-winding transformer
ThreeWindingTransformer
Three-winding transformer
Line
Line
VarSerialElement
SerialReactor
Serial reactor
SerialCondensator
Serial capacitor
HarBranchResNet
Additional Elements
ProtOCFault
Fault observation
ProtLocation
Protection location
Water Networks
Object type
Description
General Data
FlowCalcParameter
Calculation settings
FlowNetworkLevel
Network level
FlowNetworkGroup
Network area
Nodes/Busbars
FlowNode
Node
Node Elements
FlowWaterTower
Water tower
FlowPump
Pump
FlowConsumer
Consumer
FlowPressureBuffer
Pressure buffer
FlowLeakage
Leakage
Branch Elements
FlowLine
Line
FlowValve
October 2014
87/129
SIEMENS
FlowPumpLine
FlowConstLine
FlowPressureReg
Pressure regulator
Gas Networks
Object type
Description
General Data
FlowCalcParameter
Calculation settings
FlowNetworkLevel
Network level
FlowNetworkGroup
Network area
Nodes/Busbars
FlowNode
Node
Node Elements
FlowInfeederG
Infeeder gas
FlowConsumer
Consumer
FlowPressureBuffer
Pressure buffer
FlowLeakage
Leakage
Branch Elements
FlowLine
Line
FlowValve
FlowConstLine
FlowPressureReg
Pressure regulator
FlowCompressor
Compressor
Heating/Cooling Networks
Object type
Description
General Data
FlowCalcParameter
Calculation settings
FlowNetworkLevel
Network level
FlowNetworkGroup
Network area
Nodes/Busbars
FlowNode
Node
Node Elements
FlowInfeederH
Infeeder heating/cooling
FlowPump
Pump
FlowConsumer
Consumer
FlowPressureBuffer
Pressure buffer
FlowLeakage
Leakage
October 2014
88/129
SIEMENS
Branch Elements
FlowLine
Line
FlowValve
FlowPumpLine
FlowConstLine
FlowPressureReg
Pressure regulator
FlowThermoReg
Temperature regulator
FlowHeatExchanger
Heat Exchanger
State
Description
TOPO.ID
Read
Internal ID Node
TOPO.DBID
Read
TOPO.Name
Read
Name Node
TOPO.ShortName
Read
TOPO.Phase
Read
TOPO.TI
Read / Write
Establishment Time
TOPO.TS
Read / Write
Shutdown Time
TOPO.ID
Read
TOPO.DBID
Read
TOPO.Name
Read
TOPO.ShortName
Read
TOPO.State
Read / Write
TOPO.TI
Read / Write
Establishment Time
TOPO.TS
Read / Write
Shutdown Time
TOPO.Node1.ID
Read
TOPO.Node1.DBID
Read
Database ID 1. Node
TOPO.Terminal1.ID
Read
TOPO.Terminal1.DBID
Read
Database ID 1. Terminal
TOPO.Terminal1.State
Read / Write
TOPO.Terminal1.Phase
Read
Connection Phase
1: L1
2: L2
Node
Network Elements
October 2014
89/129
SIEMENS
3: L3
4: L12
5: L23
6: L31
7: L123
Additional Elements
TOPO.ID
Read
TOPO.DBID
Read
TOPO.Name
Read
The ID attribute has a unique key for the unique identification of every object in the calculation
methods.
DBID has the Database ID of the specific node, network element or terminal.
The State attribute is a special feature for network elements and their terminals. This attribute shows
the operating status of the network element or the tripping status of the respective terminal. Simply
changing this attribute can switch network elements ON or OFF.
Data type
ViewDate
Double
LoadDataDate
Double
Sref
Double
MVA
Reference Power
FrqNet
Double
Hz
Frequency
Uref
Double
kV
Reference Voltage
ExportForm
Integer
IncreaseLoads
Integer
ContrAdjustment
Integer
Controller Adjustment
1: Discrete
2: Continuous
FlatStart
Integer
Flat Start
0: No
1: Yes
ChangeLFMethode
Integer
LFPreCalc
Integer
Pre-Calculate
0: No
1: Yes
LFMethod
Integer
October 2014
Unit
Description
View Date
Load Data Date
90/129
SIEMENS
StoreRes
Integer
ImpLoad
Integer
LFControl
Integer
Island
Integer
Island Operation
0: No
1: Yes
StartTime
Double
Duration
Double
TimeStep
Double
IncrStartDate
Double
IncrEndDate
Double
PeakCurrentCalc
Integer
TrippCurrentCalc
Integer
EcoInflation
Double
Cost increase
Data type
Unit
Description
Un
Double
kV
Nominal Voltage
Uop
Double
kV
Double
Hz
Frequency
fRD
Double
Hz
Temp_Line
Double
Temp_Cabel
Double
CalcSC
Integer
CalcNpt
Integer
FlagUsc
Integer
Uk
Double
kV
Source Voltage
Double
c Value
ts
Double
Switch Delay
Ipmax
Double
kA
Ibrkmax
Double
kA
Upre
Double
pu
Flag_Toleranz
Integer
October 2014
91/129
SIEMENS
Data type
Unit
Description
Flag_IC
Integer
Pdes
Double
MW
Ptol
Double
MW
Flag_Malfunc
Integer
Malfunction
0: None
1: All elements
2: Loaded elements
3: All lines
4: Loaded lines
5: All lines and transformers
6: Loaded lines and transformers
Flag_Connectors
Integer
Util_BaseLimit
Double
Flag_CausedMalfunc
Integer
Caused Malfunction
0: None
1: Marked areas
2: Own area
Flag_CausedElem
Integer
Caused Elements
1: Loaded elements
2: Loaded lines
3: Loaded lines and transformers
Util_CausedLimit
Double
Flag_CausedForeign
Integer
Flag_Util
Integer
Transfer Active
0: No
1: Yes
Node (Node)
Attribute name
Data type
Unit
Description
Uref
Double
kV
uul
Double
ull
Double
StartU
Double
kV
Initial Voltage
StartPhi
Double
Ik2
Double
kA
Ip
Double
kA
uul1
Double
ull1
Double
October 2014
92/129
SIEMENS
FlagPhase
Integer
Data type
Unit
Description
Flag_Machine
Integer
Sn
Double
MVA
Double
MW
Active Power
Double
Mvar
Reactive Power
Double
Un
Double
kV
Rated Voltage
Ug
Double
kV
R_X
Double
pu
xd2sat
Double
xd1sat
Double
xi
Double
Internal Reactance
Ugmax
Double
Ikp
Double
kA
Flag_LF
Integer
Double
kA
delta
Double
Voltage Angle
Double
MVA
Apparent Power
cosphi
Double
Power Factor
Type of Machine
1: Turbo generator
2: Hydro gen. (amort.)
3: Hydro generator
4: Condenser
5: Non-interconnected equivalent
6: Power station equivalent
7: Transmission system equivalent
8: Distribution system equivalent
Integer
Grounding
0: Not grounded
1: Fixed grounded
2: Grounded w. impedances
Flag_Z0Input
Integer
R0_X0
Double
pu
Z0_Z1
Double
pu
October 2014
93/129
SIEMENS
R0
Double
Ohm
X0
Double
Ohm
X22
Double
R2_X2
Double
pu
Double
Pmin
Double
MW
Pmax
Double
MW
Qmin
Double
Mvar
Qmax
Double
Mvar
Umin
Double
Umax
Double
cosphi_lim
Double
Controller Data
Unode
Control Range Data
Dynamic Data
xd2
Double
pu
Subtransient Reactance
Reliability Data
Flag_LP
Integer
CustCnt
Long Integer
Load Priority
1: High
2: Medium
3: Normal
4: Small
5: Low
1
Unit
Description
Data type
Flag_Machine
Integer
Sn
Double
MVA
Un
Double
kV
Rated Voltage
R_X
Double
pu
xd2
Double
Subtransient Reactance
xi
Double
Internal Reactance
Ugmax
Double
Ug
Double
kV
cosphin
Double
Ikp
Double
kA
xd1sat
Double
xd2sat
Double
Un2
Double
kV
Un1
Double
kV
October 2014
Type of Machine
1: Turbo generator
2: Hydro gen. (amort.)
3: Hydro generator
4: Condenser
5: Non-interconnected equivalent
6: Power station equivalent
7: Transmission system equivalent
8: Distribution system equivalent
94/129
SIEMENS
Snt
Double
MVA
Smax
Double
MVA
ur
Double
Flag_LF
Integer
phi
Double
Phase Angle
Double
kA
Double
MW
Active Power
Double
Mvar
Reactive Power
Double
MVA
Apparent Power
cosphi
Double
Power Factor
Double
Integer
Grounding
0: Not grounded
1: Fixed grounded
2: Grounded w. impedances
Flag_Z0Input
Integer
R0_X0
Double
pu
Z0_Z1
Double
pu
R0
Double
Ohm
X0
Double
Ohm
X22
Double
R2_X2
Double
pu
Controller Data
State Tap Position
1: Fixed
2: Variable
Flag_Roh
Integer
roh
Double
rohl
Double
rohu
Double
alpha
Double
Unode
Double
Pmin
Double
MW
Pmax
Double
MW
Qmin
Double
Mvar
Qmax
Double
Mvar
Umin
Double
Umax
Double
cosphi_lim
Double
October 2014
95/129
SIEMENS
Infeeder (Infeeder)
Attribute name
Data type
Flag_Typ
Integer
Unit
Description
R_X
Double
pu
Resistance/Reactance
xi
Double
Internal Reactance
Flag_LF
Integer
Double
kA
Double
MW
Active Power
Double
Mvar
Reactive Power
Double
Voltage
Double
MVA
Apparent Power
cosphi
Double
Power Factor
Ug
Double
kV
Generator Voltage
Integer
Grounding
0: Not grounded
1: Fixed grounded
2: Grounded w. impedances
Flag_Z0Input
Integer
Z0_Z1
Double
pu
R0_X0
Double
pu
R0
Double
Ohm
X0
Double
Ohm
Double
Pmin
Double
MW
Pmax
Double
MW
Qmin
Double
Mvar
Qmax
Double
Mvar
Umin
Double
Umax
Double
cosphi_lim
Double
Controller Data
Unode
Control Range Data
October 2014
96/129
SIEMENS
DC-Infeeder (DCInfeeder)
Attribute name
Data type
Flag_Input_Type
Integer
Unit
Description
Double
MW
Active Power
Double
Mvar
Reactive Power
cosphi
Double
Power Factor
DC_power
Double
kW
Installed DC-Power
fDC_power
Double
fP
Double
fQ
Double
DC_losses
Double
Eta_Inverter
Double
Efficiency Inverter
Q_Inverter
Double
Ctrl_power
Double
Controller Power
Tr_UrNet
Double
kV
Tr_Sr
Double
kVA
Tr_uk
Double
Tr_rx
Double
pu
Umin_Inverter
Double
Umax_Inverter
Double
t_off
Double
Flag_Connect
Integer
Type of Connecting
1: Directly
2: Transformer
Flag_I
Flag_I
Ireg
Ireg
kA
Control Current
pk
pk
DC Input
1: P and Q
2: P and cosphi
3: Inverter
Data type
Flag_Typ
Integer
Pn
Double
MW
Un
Double
kV
Rated Voltage
Speedn
Double
1/min
Rated Speed
pol
Double
cosphin
Double
pu
etan
Double
pu
Rated Efficiency
IaIn
Double
pu
R_X
Double
pu
Inm
Double
kA
Rated Current
October 2014
Unit
Description
Input Type of Asynchronous Machine
1: Pn
2: In
3: NEMA
97/129
SIEMENS
Flag_LF
Integer
Double
MW
Active Power
Double
Mvar
Reactive Power
cosphi
Double
Power Factor
ppn
Double
pu
Utilization
Double
kA
Slip
Double
Slip
Flag_SC
Integer
Flag_Z0
Integer
Grounding
0: Not grounded
1: Fixed grounded
2: Grounded w. impedances
Flag_Z0Input
Integer
Z0_Z1
Double
pu
R0_X0
Double
pu
R0
Double
Ohm
X0
Double
Ohm
Ia2In
Double
pu
R2_X2
Double
pu
TA
Double
GD2
Double
Mpm
Characteristics
Motor Start-Up
Flag_StartUpCtrl
Integer
Start Up Control
0: None
1: Current
2: Auto transformer
3: Current and auto transformer
4: Capacitor
5: Current and capacitor
ConStart
Integer
Start-Up Circuitry
1: Star
2: Delta
3: Star/delta
ConRun
Integer
Reliability Data
CustCnt
October 2014
Long Integer
98/129
SIEMENS
Load (Load)
Attribute name
Data type
Flag_LoadTyp
Integer
Unit
Description
Load Type
1: Load
2: Customer load
Flag_LF
Integer
Load Input
1: P, Q and (u)
2: P, Q and (U)
3: S, cosphi and u
4: S, cosphi and U
5: I, cosphi and u
6: I, cosphi and U
7: P and I
8: E, cosphi and t
9: Eap and Eaq
10: Pi and Qi
11: P, cosphi and u
12: P, cosphi and U
13: Pi, Qi and (u) star
14: Pij, Qij and (u) delta
15: P, Q and (u) delta
Double
MW
Active Power
Double
Mvar
Reactive Power
Double
Voltage
Ul
Double
kV
Voltage
Double
MVA
Apparent Power
cosphi
Double
pu
Power Factor
Double
kA
Current
P1
Double
MW
Q1
Double
Mvar
P2
Double
MW
Q2
Double
Mvar
P3
Double
MW
Q3
Double
Mvar
P12
Double
MW
Q12
Double
Mvar
P23
Double
MW
Q23
Double
Mvar
P31
Double
MW
Q31
Double
Mvar
Integer
Grounding
0: Not grounded
1: Fixed grounded
2: Grounded w. impedances
Flag_Z0Input
Integer
Z0_Z1
Double
pu
R0_X0
Double
pu
R0
Double
Ohm
X0
Double
Ohm
Pneg
Double
MW
Qneg
Double
Mvar
October 2014
99/129
SIEMENS
Dynamic Data
ResFlux1
Double
pu
ResFlux2
Double
pu
ResFlux3
Double
pu
Data type
Unit
Description
Un
Double
kV
Rated Voltage
Double
Ohm
Resistance
Double
Ohm
Reactance
Zero-Phase Sequence
Flag_Z0
Integer
Grounding
0: Not grounded
1: Fixed grounded
2: Grounded w. impedances
Flag_Z0Input
Integer
R0_X0
Double
pu
Z0_Z1
Double
pu
R0
Double
Ohm
X0
Double
Ohm
ResFlux1
Double
pu
ResFlux2
Double
pu
ResFlux3
Double
pu
Dynamic Data
Data type
Unit
Description
Sn
Double
MVA
Un
Double
kV
Rated Voltage
Vfe
Double
kW
Iron Losses
Vcu
Double
kW
Copper Losses
Zero-Phase Sequence
Flag_Z0
Integer
Grounding
0: Not grounded
1: Fixed grounded
2: Grounded w. impedances
Flag_Z0Input
Integer
R0_X0
Double
pu
Z0_Z1
Double
pu
R0
Double
Ohm
X0
Double
Ohm
October 2014
100/129
SIEMENS
Controller Data
Flag_Roh
Integer
Controller State
1: Fix
2: Variable node
3: Variable terminal
roh
Integer
rohl
Integer
rohu
Integer
deltaS
Double
uul
Double
ull
Double
Qmin
Double
Mvar
Qmax
Double
Mvar
CosPhiMin
Double
CosPhiMax
Double
ResFlux1
Double
pu
ResFlux2
Double
pu
ResFlux3
Double
pu
Dynamic Data
Data type
Unit
Description
Sn
Double
MVA
Un
Double
kV
Rated Voltage
Vdi
Double
kW
Dielectric Losses
Zero-Phase Sequence
Flag_Z0
Integer
Grounding
0: Not grounded
1: Fixed grounded
2: Grounded w. impedances
Flag_Z0Input
Integer
R0_X0
Double
pu
Z0_Z1
Double
pu
R0
Double
Ohm
X0
Double
Ohm
Controller Data
Flag_Roh
Integer
roh
Integer
rohl
Integer
rohu
Integer
deltaS
Double
uul
Double
ull
Double
Qmin
Double
Mvar
October 2014
Controller State
1: Fix
2: Variable node
3: Variable terminal
101/129
SIEMENS
Qmax
Double
Mvar
CosPhiMin
Double
CosPhiMax
Double
Data type
Unit
Description
Flag_LF
Integer
Flag_LoadType
Integer
Flag_Macro_LF
Integer
Plf
Double
MW
Qlf
Double
Mvar
Ulf
Double
kV
Rlf
Double
Ohm
Xlf
Double
Ohm
fPk
Double
pu
fPi
Double
pu
fPu
Double
pu
fQk
Double
pu
fQi
Double
pu
fQu
Double
pu
f_p_1
Double
pu
f_q_1
Double
pu
e_p_1
Double
pu
e_q_1
Double
pu
f_p_2
Double
pu
f_q_2
Double
pu
e_p_2
Double
pu
e_q_2
Double
pu
f_p_3
Double
pu
f_q_3
Double
pu
e_p_3
Double
pu
e_q_3
Double
pu
Rsc
Double
Ohm
Xsc
Double
Ohm
Integer
Z0_Z1
Double
pu
R0_X0
Double
pu
October 2014
102/129
SIEMENS
R0
Double
Ohm
X0
Double
Ohm
Pneg
Double
MW
Qneg
Double
Mvar
Data type
Unit
Description
Un
Double
kV
Rated Voltage
Double
Double
Factor
Double
Impedance
Integer
Determine Impedance
1: Vmax
2: Imax
FlagZ0
Integer
Data type
Unit
Description
Un1
Double
kV
Un2
Double
kV
Sn
Double
MVA
Smax
Double
MVA
Smax1
Double
MVA
Smax2
Double
MVA
Smax3
Double
MVA
uk
Double
ur
Double
Vfe
Double
kW
Iron Losses
i0
Double
No Load Current
VecGrp
Integer
uk_ct
Double
ur_ct
Double
Vector Group
1: DD0, 2: DZ0, 3: DZN0, 4: YNY0, 5: YNYN0, 6: YY0, 7:
YYN0, 8: ZD0, 9: ZND0, 10: DYN1, 11: DZ1, 12: DZN1, 13:
YD1, 14: YND1, 15: YNZN1, 16: YZ1, 17: YZN1, 18: ZD1,
19: ZND1, 20: ZNYN1, 21: ZY1, 22: ZYN1, 23: DY5, 24:
DYN5, 25: YD5, 26: YND5, 27: YNZ5, 28: YNZN5, 29: YZ5,
30: YZN5, 31: ZNY5, 32: ZNYN5, 33: ZY5, 34: ZYN5, 35:
DD6, 36: DZ6, 37: DZN6, 38: YNY6, 39: YNYN6, 40: YY6,
41: YYN6, 42: ZD6, 43: ZND6, 44: DY7, 45: DYN7, 46: DZ7,
47: DZN7, 48: YD7, 49: YND7, 50: YNZN7, 51: YZ7, 52:
YZN7, 53: ZD7, 54: ZND7, 55: ZNYN7, 56: ZY7, 57: ZYN7,
58: DY11, 59: DYN11, 60: YD11, 61: YND11, 62: YNZ11,
63: YNZN11, 64: YZ11, 65: YZN11, 66: ZNY11, 67:
ZNYN11, 68: ZY11, 69: ZYN11, 70: DY1, 71: Y0, 72: YN0,
73: D0, 74: ZNY1, 75: ZNY7, 76: DDN0, 77: DND0, 78:
DNYN1, 79: DNYN11, 80: YNDN1, 81: YNDN11
Zero-Phase Sequence
October 2014
103/129
SIEMENS
FlagZ0Input
Integer
Z0_Z1
Double
pu
R0_R1
Double
pu
R0
Double
Ohm
X0
Double
Ohm
X0_X1
Double
pu
R0_X0
Double
pu
ZABNL
Double
Ohm
ZBANL
Double
Ohm
ZABSC
Double
Ohm
Controller Data
FlagConNode
Integer
Controller Node
1: Side 1
2: Side
Flag_Roh
Integer
Flag_Tap
Integer
roh
Double
roh1
Double
roh2
Double
roh3
Double
rohl
Double
rohm
Double
rohu
Double
alpha
Double
ukr
Double
phi
Double
ukl
Double
uku
Double
ull
Double
uul
Double
Plp
Double
MW
Pup
Double
MW
Qlp
Double
Mvar
Qup
Double
Mvar
ResFlux1
Double
pu
ResFlux2
Double
pu
ResFlux3
Double
pu
Dynamic Data
October 2014
104/129
SIEMENS
Data type
Unit
Description
Un1
Double
kV
Un2
Double
kV
Un3
Double
kV
Sn12
Double
MVA
Sn23
Double
MVA
Sn31
Double
MVA
Smax1
Double
MVA
Smax2
Double
MVA
Smax3
Double
MVA
Smax1_1
Double
MVA
Smax1_2
Double
MVA
Smax1_3
Double
MVA
Smax2_1
Double
MVA
Smax2_2
Double
MVA
Smax2_3
Double
MVA
Smax3_1
Double
MVA
Smax3_2
Double
MVA
Smax3_3
Double
MVA
uk1
Double
uk2
Double
uk3
Double
ur1
Double
ur2
Double
ur3
Double
i0
Double
No Load Current
Vfe
Double
kW
Iron Losses
phi1
Double
phi2
Double
phi3
Double
VecGrp1
Integer
VecGrp2
Integer
VecGrp3
Integer
FlagZ0Input
Integer
Input
1: Z0/Z1 and R0/X0
2: R0 and X0
3: R0/R1 and X0/X1
Z0_Z1_12
Double
pu
Z0_Z1_23
Double
pu
Z0_Z1_31
Double
pu
R0_R1_12
Double
pu
R0_R1_23
Double
pu
Zero-Phase Sequence
October 2014
105/129
SIEMENS
R0_R1_31
Double
pu
R0_12
Double
Ohm
R0_23
Double
Ohm
R0_31
Double
Ohm
X0_12
Double
Ohm
X0_23
Double
Ohm
X0_31
Double
Ohm
X0_X1_12
Double
pu
X0_X1_23
Double
pu
X0_X1_31
Double
pu
R0_X0_12
Double
pu
R0_X0_23
Double
pu
R0_X0_31
Double
pu
Controller Data
Flag_Roh1
Integer
Flag_Roh2
Integer
Flag_Roh3
Integer
roh1
Double
roh2
Double
roh3
Double
rohu1
Double
rohu2
Double
rohu3
Double
rohm1
Double
rohm2
Double
rohm3
Double
rohl1
Double
rohl2
Double
rohl3
Double
Dynamic Data
ResFlux1
Double
pu
ResFlux2
Double
pu
ResFlux3
Double
pu
October 2014
106/129
SIEMENS
Line (Line)
Attribute name
Data type
Flag_LineTyp
Integer
Unit
Description
Line Type
1: Cable
2: Overhead line
3: Connector
FlagMat
Integer
Line Material
1: Al
2: Cu
Len
Double
km
Length
ParSys
Double
Double
Ohm/km
Resistance
Double
Ohm/km
Reactance
Double
nF/km
Capacitance
va
Double
kW/km
Ith
Double
kA
Ith1
Double
kA
Ith2
Double
kA
Ith3
Double
kA
FrqNenn
Double
Hz
Rated Frequency
alpha
Double
1/C
Zero-Phase Sequence
Flag_Z0Input
Integer
R0_R1
Double
pu
X0_X1
Double
pu
R0
Double
Ohm/km
X0
Double
Ohm/km
C0
Double
nF/km
rR
Double
Ohm/km
xR
Double
Ohm/km
Data type
Flag_LF
Integer
Flag_Macro_LF
Integer
Ur1
Double
kV
Ur2
Double
kV
R12lf
Double
Ohm
X12lf
Double
Ohm
R21lf
Double
Ohm
X21lf
Double
Ohm
R12sc
Double
Ohm
October 2014
Unit
Description
107/129
SIEMENS
X12sc
Double
Ohm
R21sc
Double
Ohm
X21sc
Double
Ohm
Zero-Phase Sequence
Flag_Z0Input
Integer
R0_X0
Double
pu
Z0_Z1
Double
pu
R0
Double
Ohm
X0
Double
Ohm
Dynamic Data
Flag_Macro_SC
Integer
Flag_Har
Integer
State Harmonics
0: No frequency dependency
1: Quality R constant
2: Quality X/R constant
3: Impedance characteristic
qr
Double
Quality R Constant
ql
Double
Unit
Description
Harmonics
Data type
Flag_CoInput
Integer
uD
Double
Double
mH
Inductance
Un
Double
kV
Rated Voltage
InD
Double
kA
Rated Current
Ith1
Double
kA
Ith2
Double
kA
Ith3
Double
kA
Input Data
1: Reference coil voltage
2: Inductance
Zero-Phase Sequence
R_X
Double
Flag_Z0Input
Integer
X0_X1
Double
R0_R1
Double
R0
Double
Ohm
X0
Double
Ohm
L0
Double
mH
October 2014
108/129
SIEMENS
Dynamic Data
ResFlux1
Double
pu
ResFlux2
Double
pu
ResFlux3
Double
pu
Data type
Unit
Description
Double
nF/km
Capacitance
XC
Double
Ohm
Capacitive Reactance
Un
Double
kV
Rated Voltage
R_X
Double
pu
Smax
Double
MVA
Smax1
Double
MVA
Smax2
Double
MVA
Smax3
Double
MVA
Zero-Phase Sequence
Flag_Z0Input
Integer
X0_X1
Double
R0_R1
Double
R0
Double
Ohm
X0
Double
Ohm
Data type
Unit
Description
Un
Double
kV
Rated Voltage
R1
Double
Ohm
X1
Double
Ohm
Impedance
Integer
Determine Impedance
1: Vmax
2: Imax
RCData
Integer
R1rc
Double
Ohm
X1rc
Double
Ohm
FlagZ0
Integer
R0
Double
Ohm
X0
Double
Ohm
R0_R1
Double
X0_X1
Double
October 2014
109/129
SIEMENS
Data type
Node_ID
Long Integer
Element_ID
Long Integer
Flag_State
Integer
Operating State
0: Off
1: On
Flag_FaultPhase
Integer
Faulty Phases
1: L1
2: L2
3: L3
4: L23
5: L31
6: L12
7: L123
0: None
Flag_InterruptPhase
Integer
Interrupted Phases
1: L1
2: L2
3: L3
6: L12
4: L23
5: L31
7: L123
0: None
8: N
9: L123N
len
Double
Distance
Flag_FaultReturn
Integer
Flag_FaultGround
Integer
Fault to Ground
1: Short Circuit
2: Return Circuit
3: Ground Circuit
4: Return and Ground Circuit
Flag_RefPhase
Integer
Reference Phase
0: None
1: L1
2: L2
3: L3
Flag_CondFaultOn
Integer
Conditions Fault On
0: None
1: Default
2: Time
3: Voltage
4: Voltage and time delay
ton
Double
Time On
On_NodeID
Long Integer
On Node
Flag_PhaseOn
Integer
On Phase
1: L1
2: L2
3: L3
Flag_Val
Integer
On Value
1: Minimum
2: Maximum
3: User-defined
Uon
Double
On Voltage
dT1
Double
dT2
Double
October 2014
Unit
Description
110/129
SIEMENS
Flag_CondFaultOff
Integer
toff
Double
Time Off
Current
Double
Off Current
Data type
Flag_State
Integer
October 2014
Unit
Description
Active
0: Off
1: On
111/129
SIEMENS
Data type
Unit
Description
ITmax
Integer
ITmax2
Integer
MeshAccuracy
Double
bar
Mesh Accuracy
NodeAccuracy
Double
l/s
Node Accuracy
FlowStep
Double
l/s
Flag_Operate
Integer
fCharCurve
Double
pu
SpecDensity
Double
kg/m
Specific Density
KinematicVis
Double
mm/s
Kinematic Viscosity
Flag_Pump
Integer
Parallel Pumps
0: No
1: Yes
Flag_Result
Integer
StartTime
Double
Starting Time
Duration
Double
Duration
TimeStepGeo
Double
Data type
Unit
Description
pRated
Double
bar
Rated Pressure
vMax
Double
m/s
pMin
Double
bar
pMax
Double
bar
Data type
Flag_MarkedForCaused
Integer
Flag_Malfunc
Integer
Malfunction
0: None
1: All elements
2: All lines
3: All restricted elements
4: All restricted lines
Speed_BaseLimit
Double
October 2014
Unit
m/s
Description
112/129
SIEMENS
Flag_CausedMalfunc
Integer
Caused Malfunction
0: None
1: Marked areas
2: Own area
Flag_CausedElem
Integer
Caused Elements
1: Restricted elements
2: Restricted lines
Speed_CausedLimit
Double
Flag_Report
Integer
Reporting
0: None
1: Elements and nodes
2: Lines and nodes
3: Elements
4: Lines
5: Nodes
Flag_FireWater
Integer
ConLineLength
Double
Length
ConLineDiameter
Double
mm
Diameter
ConLineRoughness
Double
mm
Sand Roughness
ConLineZeta
Double
dsh
Double
Delta Elevation
QFireWater
Double
l/s
pFireWater
Double
bar
tFireWater
Double
pRelMinLimit
Double
bar
m/s
Data type
Flag_Typ
Integer
PressureDecr
Double
Unit
Description
Line Type
1: Constant pressure drop
2: Constant flow
bar
Pressure Drop
Consumer (FlowConsumer)
Attribute name
Data type
Unit
Description
Double
l/s
Const. Consumption
Flag_ConControl
Integer
pDiffMin
Double
bar
pRelMin
Double
bar
Data type
Unit
Description
pInlet
Double
bar
pOutlet
Double
bar
pDevation
Double
bar
October 2014
113/129
SIEMENS
Flag_PessInc
Integer
Function
1: Pressure increase
2: Pressure drop
3: Pressure increase and drop
Data type
Unit
Description
Flag_Type
Integer
QOutput
Double
l/s
Output Flow
uPump
Double
1/min
FlowStep
Double
l/s
Maximum Flow
Pump Type
1: Centrifugal pump
2: Reciprocating pump
Data type
Flag_Type
Integer
Unit
Description
Opening
Double
Degree of Opening
Diameter
Double
mm
Valve Diameter
Pos
Integer
Valve Type
1: Sliding valve
2: Non-return valve
Valve Position
0: Close
1: Open
Leakage (FlowLeakage)
Attribute name
Data type
Unit
Description
OutputSurface
Double
mm
Output Surface
fFlow
Double
pu
Flow Number
FlowStep
Double
l/s
ConLineLength
Double
ConLineDiameter
Double
mm
ConLineRoughness
Double
mm
ConLineZeta
Double
dsh
Double
Delta Elevation
QFireWater
Double
l/s
pFireWater
Double
bar
tFireWater
Double
Data type
Unit
Description
PMax
Double
bar
Maximum Pressure
October 2014
114/129
SIEMENS
Pump (FlowPump)
Attribute name
Data type
Flag_Type
Integer
Unit
Description
QOutput
Double
l/s
Output Flow
uPump
Double
1/min
FlowStep
Double
l/s
Maximum Flow
Flag_Limits
Integer
QOutputmin
Double
l/s
QOutputmax
Double
l/s
Pump Type
1: Centrifugal pump
2: Reciprocating pump
Limit Type
0: None
1: Flow
Data type
Unit
Description
hWaterLevel
Double
Water Level
hFillStart1
Double
hFillStop1
Double
uPump1
Double
1/min
Pump Characteristics 1
hFillStart2
Double
hFillStop2
Double
uPump2
Double
1/min
Pump Characteristics 1
hFillStart3
Double
hFillStop3
Double
uPump3
Double
1/min
Pump Characteristics 1
Flag_Level
Integer
Level Data
0: No
1: Yes
Flag_Limits
Integer
Limit Type
0: None
1: Flow
Qmin
Double
l/s
Minimum Flow
Qmax
Double
l/s
Maximum Flow
Attribute name
Data type
Unit
Description
LineLength
Double
Length
Diameter
Double
mm
Diameter
SandRoughness
Double
mm
Sand Roughness
fLength
Double
fCurve
Double
fDiameterAn
Double
fRoughnessAn
Double
Zeta
Double
LeakageRate
Double
Line (FlowLine)
October 2014
Curve Factor
Zeta Value
l/sm
Leakage Rate
115/129
SIEMENS
Node (FlowNode)
Attribute name
Data type
Unit
Description
Sh
Double
Elevation
Gas Networks
Calculation Settings (FlowCalcParameter)
Attribute name
Data type
Unit
Description
ITmax
Integer
ITmax2
Integer
MeshAccuracy
Double
bar
Mesh Accuracy
NodeAccuracyG
Double
m/h
Node Accuracy
FlowStepG
Double
m/h
Flag_Operate
Integer
SpecDensity
Double
kg/m
Specific Density
HeatingAmount
Double
MJ/kg
Heating Amount
pAir
Double
bar
Air Pressure
SutherlandConst
Double
Sutherland Constant
AdiabaticExp
Double
Adiabatic Exponent
fConst
Double
Constant Factor
fLinear
Double
Linear Factor
Flag_Result
Integer
StartTime
Double
Starting Time
Duration
Double
Duration
TimeStepGeo
Double
Data type
Unit
Description
pRated
Double
bar
Rated Pressure
TGas
Double
Gas Temperature
TAir
Double
Air Temperature
vMax
Double
m/s
pMin
Double
bar
pMax
Double
bar
October 2014
116/129
SIEMENS
Data type
Flag_MarkedForCaused
Integer
Unit
Flag_Malfunc
Integer
Malfunction
0: None
1: All elements
2: All lines
3: All restricted elements
4: All restricted lines
Speed_BaseLimit
Double
Flag_CausedMalfunc
Integer
Caused Malfunction
0: None
1: Marked areas
2: Own area
Flag_CausedElem
Integer
Caused Elements
1: Restricted elements
2: Restricted lines
Speed_CausedLimit
Double
Flag_Report
Integer
m/s
m/s
Description
Compressor (FlowCompressor)
Attribute name
Data type
Unit
Description
pInlet
Double
bar
pOutlet
Double
bar
pDevation
Double
bar
Data type
Flag_Typ
Integer
Unit
Description
PressureDecr
Double
bar
Pressure Drop
FlowGas
Double
mN/h
Flow
Unit
Description
Line Type
1: Constant pressure drop
2: Constant flow
Consumer (FlowConsumer)
Attribute name
Data type
Flag_Q
Integer
Q1
Double
October 2014
Consumption Type
1: Standard
2: Operating Conditions
3: Power
m/h
117/129
SIEMENS
Q2
Double
m/h
Q3
Double
MW
pDiffMin
Double
bar
pRelMin
Double
bar
Data type
Unit
Description
pInlet
Double
bar
pOutlet
Double
bar
pDevation
Double
bar
Flag_PessInc
Integer
QReturn
Double
Function
1: Pressure increase
2: Pressure drop
3: Pressure increase and drop
m/h
Data type
Unit
Description
Flag_Type
Integer
Valve Type
1: Sliding valve
2: Non-return valve
Pos
Integer
Valve Position
0: Close
1: Open
Leakage (FlowLeakage)
Attribute name
Data type
Unit
Description
OutputSurface
Double
mm
Output Surface
fFlow
Double
pu
Flow Number
FlowStpG
Double
m/h
Unit
Description
Data type
Flag_Typ
Integer
QReturn
Double
m/h
pConst
Double
bar
FlagQ
Integer
Q1
Double
m/h
Q2
Double
m/h
October 2014
Infeeder Type
1: Pressure supply
2: Flow supply
118/129
SIEMENS
MW
Q3
Double
Flag_Limits
Integer
Limit Type
0: None
1: Flow
Qmin
Double
Minimum Supply
Qmax
Double
Maximum Supply
Data type
Unit
Description
PMax
Double
bar
Maximum Pressure
Attribute name
Data type
Unit
Description
LineLength
Double
Length
Diameter
Double
mm
Diameter
SandRoughness
Double
mm
Sand Roughness
fLength
Double
fCurve
Double
fDiameterAn
Double
fRoughnessAn
Double
Zeta
Double
Line (FlowLine)
Curve Factor
Zeta Value
Node (FlowNode)
Attribute name
Data type
Unit
Description
Sh
Double
Elevation
Pres
Double
bar
Pressure Reservation
Heating/Cooling Networks
Calculation Settings (FlowCalcParameter)
Attribute name
Data type
ITmax
Integer
ITmax2
Integer
MeshAccuracy
Double
bar
Mesh Accuracy
NodeAccuracy
Double
l/s
Node Accuracy
FlowStep
Double
l/s
Flag_Operate
Integer
qSpec
Double
October 2014
Unit
Description
Maximum Number of Iterations (non-linear)
Maximum Number of Iterations (linear)
119/129
SIEMENS
Flag_MalFunc
Integer
Flag_Result
Integer
StartTime
Double
Starting Time
Duration
Double
Duration
TimeStepGeo
Double
Data type
Unit
Description
pRated
Double
bar
Rated Pressure
TRated
Double
Rated Temperature
TAir
Double
Air Temperature
vMax
Double
m/s
pMin
Double
bar
pMax
Double
bar
TSupplyLine
Double
pMinR
Double
bar
pMaxR
Double
bar
TReturnLine
Double
Data type
Flag_MarkedForCaused
Integer
Flag_Malfunc
Integer
Malfunction
0: None
1: All elements
2: All lines
3: All restricted elements
4: All restricted lines
Speed_BaseLimit
Double
Flag_CausedMalfunc
Integer
Caused Malfunction
0: None
1: Marked areas
2: Own area
Flag_CausedElem
Integer
Caused Elements
1: Restricted elements
2: Restricted lines
Speed_CausedLimit
Double
Flag_Report
Integer
October 2014
Unit
m/s
m/s
Description
120/129
SIEMENS
Data type
Flag_Typ
Integer
Unit
Description
PressureDecr
Double
bar
Pressure Drop
FlowHeating
Double
t/h
Flow
Line Type
1: Constant pressure drop
2: Constant flow
Consumer (FlowConsumer)
Attribute name
Data type
Unit
Description
Double
l/s
Const. Consumption
Flag_ConTyp
Integer
Q3
Double
MW
Q4
Double
t/h
Constant Consumption
Power
Double
MW
Flag_ConControl
Integer
pDiffMin
Double
Flag_Temp
Integer
Double
Consumption Type
1: Constant consumption
2: Constant power consumption
3: Sum of consumption and power
Temperature
Data type
Flag_Typ
Integer
Flag_ConControl
Integer
Flag_Temp
Integer
Temperature Type
1: Return temperature
2: Difference of temperature sup ret
3: Difference of temperature sec prim
Flag_Maint
Integer
Flag_Master
Integer
Leading Supply
0: No
1: Yes
Efficiency
Double
Efficiency
pDiffMin
Double
bar
tPrim
Double
Primary Temperature
October 2014
Unit
Description
121/129
SIEMENS
tFeed
Double
uPump
Double
1/min
FlowStep
Double
l/s
Power
Double
MW
Power
pMedium
Double
bar
Medium Pressure
pSupRet
Double
bar
Difference Pressure
pSupplyMaint
Double
bar
Supply Pressure
pReturnMaint
Double
bar
Return Pressure
SupplyPart
Double
ReturnPart
Double
QOutput
Double
l/s
Output Flow
Data type
Unit
Description
pInlet
Double
bar
pOutlet
Double
bar
pDevation
Double
bar
Flag_PessInc
Integer
Function
1: Pressure increase
2: Pressure drop
3: Pressure increase and drop
Flag_PressDif
Integer
pSupRet
Double
bar
Difference Pressure
Data type
Unit
Description
Flag_Type
Integer
QOutput
Double
l/s
Output Flow
uPump
Double
1/min
FlowStep
Double
l/s
Maximum Flow
Pump Type
1: Centrifugal pump
2: Reciprocating pump
Data type
Flag_Type
Integer
Opening
Double
Degree of Opening
Diameter
Double
mm
Valve Diameter
Pos
Integer
October 2014
Unit
Description
Valve Type
1: Sliding valve
2: Non-return valve
Valve Position
0: Close
1: Open
122/129
SIEMENS
Leakage (FlowLeakage)
Attribute name
Data type
Unit
Description
OutputSurface
Double
mm
Output Surface
fFlow
Double
pu
Flow Number
FlowStep
Double
l/s
Data type
Unit
Description
tMin
Double
Minimum Temperature
tMax
Double
Maximum Temperature
TempAccuracy
Double
Temperature Accuracy
FlowStep
Double
t/h
Data type
Flag_Typ
Integer
Infeeder Type
1: Pressure supply
2: Power Supply
3: Pressure maintenance
Flag_SupTyp
Integer
Flag_ConControl
Integer
Flag_T
Integer
Temperature Type
1: Supply temperature
2: Difference of temperature
Flag_Maint
Integer
Flag_Master
Integer
Leading Supply
0: No
1: Yes
Double
Temperature
pDiffMin
Double
bar
uPump
Double
1/min
FlowStep
Double
l/s
pSupply
Double
bar
Pressure Supply
Double
t/h
Power
Double
MW
pMedium
Double
bar
Medium Pressure
pSupRet
Double
bar
Difference Pressure
QOutput
Double
l/s
Output Flow
pSupplyMain
Double
bar
Supply Pressure
pReturnMain
Double
bar
Return Pressure
October 2014
Unit
Description
123/129
SIEMENS
SupplyPart
Double
ReturnPart
Double
Flag_Limits
Integer
Qmin
Double
t/h
Minimum Flow
Qmax
Double
t/h
Maximum Flow
Pmin
Double
MW
Minimum Power
Pmax
Double
MW
Maximum Power
Limit Type
0: None
1: Flow
2: Power
Data type
Unit
Description
PMax
Double
bar
Maximum Pressure
Attribute name
Data type
Unit
Description
Flag_Type
Integer
QOutput
Double
l/s
Output Flow
uPump
Double
1/min
tSupply
Double
Supply Temperature
FlowStep
Double
l/s
Maximum Flow
Flag_Limits
Integer
QOutputmin
Double
l/s
QOutputmax
Qmax
l/s
Attribute name
Data type
Unit
Description
LineLength
Double
Length
Diameter
Double
mm
Diameter
SandRoughness
Double
mm
Sand Roughness
fLength
Double
fCurve
Double
Zeta
Double
LeakageRate
Double
l/sm
Leakage Rate
HeatingCond
Double
W/Mk
Thermal Conductivity
Pump (FlowPump)
Pump Type
1: Centrifugal pump
2: Reciprocating pump
Limit Type
0: None
1: Flow
Line (FlowLine)
October 2014
Curve Factor
Zeta Value
124/129
SIEMENS
Node (FlowNode)
Attribute name
Data type
Unit
Description
Sh
Double
Elevation
PDiffMin
Double
bar
October 2014
125/129
SIEMENS
Reference
5.1
Documentation
The complete PSS SINCAL documentation is available as online help. You can also find these
documents in the "Doc\English\Sincal" directory on the installation DVD as PDF files.
User Interface
For a comprehensive description of all the functions of the PSS SINCAL user interface, see the
System Manual.
New users should refer to the chapter on Using an Example to Work on a Network. This outlines,
step by step, how to create, process, calculate and display the results for an electrical network.
Simulation Procedure
The technical manuals for electrical networks contain detailed descriptions of the various
calculation methods for electrical networks and their input data. These manuals have two parts:
Input data:
Description of the input data for all simulation procedures.
The technical manuals for pipe networks contain detailed descriptions of the various calculation
methods for pipe networks and their input data. The following manuals are available: Water, Gas and
Heating/Cooling.
Network Database
For detailed information about the network database structure, see the Database Description
Manual. This manual presents the PSS SINCAL data model in detail. It explains both the structure
and the semantics of the data model, and has detailed tables (relations) with their attributes.
October 2014
126/129
SIEMENS
5.2
External
Applications
(using COM)
Config
Graphic User Interface
Graphics Editor
Tool Library
Charts
based on Quinn Curtis
with extensions
Tabular View
based on Stingray with
extensions
Screen Forms
Reports
based on Crystal
UI Controls
Database API
Meta Model
Files
Servers (COM)
Type
DB
Network Model
(Electro, Flow, StandardTypes)
Variant Manager
UNDO Manager
Message Manager
Chart Manager
External
Applications
(using COM)
Network
Database
Simulation
Electricity Calculation
Methods
Flow Calculation
Methods
ZUBER
Interfaces
Electricity Network
Model
Flow Network
Model
Database API
Simulation
This component contains all the PSS SINCAL calculation methods. The calculation component
can also be used stand-alone (without the user interface).
Between these, the Servers (COM) component for internal data exchange is available. The entire
database can be accessed with this component.
COM Interfaces
All PSS SINCAL components have COM interfaces. A differentiation is made between internal and
external COM interfaces. The internal interfaces are only used within PSS SINCAL. They are not
documented and as such not designed for external use. The external interfaces are documented and
can also be used in your own applications. This lets you, for example, automize work sequences or
integrate calculation methods into your own applications.
October 2014
127/129
SIEMENS
5.3
Ready-Made Solutions
In the area of GIS coupling, our partners offer ready-made solutions that can be tailored to meet your
specific needs. Varied PSS SINCAL clients have successfully implemented these solutions.
Mettenmeier GmbH
Mettenmeier GmbH is a software consultant, service and solution provider with corporate
headquarters in Paderborn, Germany, supporting clients in the gas, water and electric industries. We
are dedicated to enabling the owners and operators of utility assets to plan and manage their
networks more successfully.
Mettenmeier GmbH provides a SIEMENS certified interface between the Smallworld standard
Network Resource Managers and PSS SINCAL.
Mettenmeier GmbH Utility Solutions
Mr Benjamin Pehle
Klingenderstr. 10 14
33100 Paderborn
Germany
Fon +49 5251 150-375
Fax +49 5251 150-366
e-mail benjamin.pehle@mettenmeier.de
http://mettenmeier.de
October 2014
128/129
SIEMENS
K&A provides an interface between ArcGIS and PSS SINCAL. This interface is for electricity
transmission and distribution networks.
Khatib & Alami C.E.C.
GIS Services Division
Mr Bilal A. Hassan
P.O. Box 2732, Abu Dhabi UAE
Fon +971-2-6767300 X202
Fax +971-2-6767070
e-mail bahassan@gisadwea.ae
http://www.khatibalami.com
October 2014
129/129