Advanced Distance Automation Interface
Advanced Distance Automation Interface
Advanced Distance Automation Interface
TEST UNIVERSE
Advanced Distance
Automation Interface
OMICRON Test Universe
2
Contents
Contents
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
Object Hierarchy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Application Object. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Methods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Document Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Methods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
TestSettings Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Methods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
FaultTypes Collection Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Methods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
FaultType Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Shots Collection Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Methods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Shot Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
SearchLines Collection Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Methods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
SearchLine Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Reaches Collection Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Methods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Reach Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
3
OMICRON Test Universe
4
Advanced Distance Automation Interface
1 Test Settings: it defines the test model and the test parameters.
2 Fault Types Collection: there are 7 fault types in a test:
L1N, L2N, L3N, L1L2, L2L3, L3L1 L1L2L3.
Figure 1:
Object hierarchy of an
Advanced Distance
Document
5
OMICRON Test Universe
3 Shots collection
4 SearchLines collection
5 CheckLines collection
Each FaultType has 1 to n Shot objects, has 1 to n SearchLine objects, and has
1 to n CheckLine objects.
Each SearchLine object has 1 to n Reach objects.
Reference
Application Object
Properties
Application (read only)
The application object is the root of the OMICRON Advanced Distance object
hierarchy. It is the only object that can be created directly by other OLE
Automation controllers (e.g. MS Excel using CreateObject).
This object is unique within the OMICRON Advanced Distance Module. If you
want to create another Application object with CreateObject, a new instance of
the OMICRON Advanced Distance program is started to handle this object.
You can use this object as a starting point to navigate through the hierarchy tree.
You can get references to the Document Object (Document) and the Predefined
Constant Values (Constants) objects.
6
Advanced Distance Automation Interface
Syntax: object.Constants
Description: Returns the object with the constant values (Constants) you
can use with several functions.
Syntax: object.Document
7
OMICRON Test Universe
Syntax: object.Name
Type: String
Syntax: object.Parent
Type: Object
Description: This property always returns the parent object in the object
hierarchy. In this case it is the Application Object
(Application).
8
Advanced Distance Automation Interface
Visible
Syntax: object.Visible
Type: Boolean
Note: If you use an external OLE Automation controller (e.g. OMICRON Con-
trol Center) and you create the Application Object (Application) (and start the
OMICRON Advanced Distance application) you have to set the visible property
to TRUE to see the main window of the application.
9
OMICRON Test Universe
Methods
Quit
Syntax: object.Quit
10
Advanced Distance Automation Interface
Document Object
With the Document Object (Document) you can control the document.
From this object you can get references to the Fault Types Collection Object
(FaultTypes), the Test Settings Object (TestSettings).
Properties
Application (read only)
Syntax: Object.Application
Type: Object (Application)
Description: Returns the Application Object (Application).
Example: Dim otm As Object
Dim dist As Object
Set otm =
Document.InsertObject(“OMADist.Document”)
Set dist = otm.Specific
Dim app As Application
Set app = dist.Document.Application
Comment
Syntax: object.Comment
Type: String
Description: This property allows access to the comment string which can
be shown in the report.
Example: Dim otm As Object
Dim dist As Object
Set otm =
Document.InsertObject(“OMADist.Document”)
Set dist = otm.Specific
'Set comment
dist.Document.Comment = "This test is
simulated."
11
OMICRON Test Universe
Syntax: object.Parent
Type: Object
Description: This property always returns the parent object in the object
hierarchy. In this case it is the Application Object
(Application).
Syntax: object.FaultTypes
12
Advanced Distance Automation Interface
Shot
Syntax: object.Shot
Description: This property returns a shot object (Shot). The returned shot
object can be modified but the changes do not affect the test.
13
OMICRON Test Universe
TestSettings
Syntax: object.TestSettings
Type: Object
14
Advanced Distance Automation Interface
Methods
RemoveAllAll
Syntax: object.RemoveAllAll
Type: None
Description: This method removes all shots and lines for all fault types
RemoveAllChecks
Syntax: object.RemoveAllChecks
Type: None
Description: This method removes all check lines for all fault types
15
OMICRON Test Universe
RemoveAllSearches
Syntax: object.RemoveAllSearches
Type: None
Description: This method removes all search lines for all fault types
RemoveAllShots
Syntax: object.RemoveAllShots
Type: None
Description: This method removes all shots for all fault types
16
Advanced Distance Automation Interface
TestSetDefaults
Syntax: object.TestSetDefaults
Type: None
Description: This method has the same effect as pressing the “Set
Defaults” button on the Test Settings page. It loads the default
test settings defined in the Test Object.
U
pdateAllViews
Syntax: object.UpdateAllViews(hint)
Long hint
Type: None
Description: This method updates the UI and the report. The optional Hint
parameter specifies which view becomes the update. By
calling this method without parameter, all the UI is updated.
17
OMICRON Test Universe
TestSettings Object
Properties
AllowReduction
Syntax: object.AllowReduction
Type: Boolean
CBSimulationON
Syntax: object.CBSimulationON
Type: Boolean
18
Advanced Distance Automation Interface
DCOffset
Syntax: object.DCOffset
Type: Boolean
ExtendedZonesActive
Syntax: object.ExtendedZonesActive
Type: Boolean
19
OMICRON Test Universe
FaultInceptionAngle
20
Advanced Distance Automation Interface
FaultInceptionMode
21
OMICRON Test Universe
IgnoreNominalChar
Type: Boolean
IVTest
Syntax: object.IVTest
Type: Double
Description: This property specifies the test current or the test voltage
(depending on the test mode).
22
Advanced Distance Automation Interface
KSMag
Syntax: object.KSMag
Type: Double
KSAngle
Syntax: object.KSAngle
Type: Double
Description: This property specifies the angle of the KS factor. The unit
is °.
23
OMICRON Test Universe
MaxFaultTime
Syntax: object.MaxFaultTime
Type: Double
PostFaultTime
Syntax: object.PostFaultTime
Type: Double
24
Advanced Distance Automation Interface
PreFaultTime
Syntax: object.PreFaultTime
Type: Double
SearchInterval
Syntax: object.SearchInterval
Type: Double
Description: This property specifies the search interval. The unit is Ohm.
25
OMICRON Test Universe
SearchIntervalAbs
Syntax: object.SearchResolutionAbs
Type: Double
SearchIntervalRel
Syntax: object.SearchResolutionAbs
Type: Double
Description: This property specifies the relative search resolution. The unit
is %.
26
Advanced Distance Automation Interface
SwitchOffAtZeroCrossing
Syntax: object.SwitchOffAtZeroCrossing
Type: Boolean
TestMode
Syntax: object.TestMode
Type: Long
27
OMICRON Test Universe
TimeReference
Syntax: object.TimeReference
Type: Long
ZSMag
Syntax: object.ZSMag
Type: Double
28
Advanced Distance Automation Interface
ZSAngle
Syntax: object.ZSAngle
Type: Double
29
OMICRON Test Universe
Methods
TestSetDefaults
Syntax: object.TestSetDefaults
Type: None
Description: This method has the same effect as pressing the “Set
Defaults” button on the Test Settings page. It loads the default
test settings defined in the Test Object.
30
Advanced Distance Automation Interface
Syntax: object.Application
31
OMICRON Test Universe
Syntax: object.Count
Type: Long
32
Advanced Distance Automation Interface
Syntax: object.Parent
Type: Object
Description: This property always returns the parent object in the object
hierarchy. In this case it is the Document Object (Document).
33
OMICRON Test Universe
Methods
Add
Syntax: object.Add
Syntax: object.Item(Index)
34
Advanced Distance Automation Interface
Remove
Syntax: object.Remove
35
OMICRON Test Universe
FaultType Object
Properties
CheckLines (read only)
Syntax: object.CheckLines
Syntax: object.FTString
Type: String
36
Advanced Distance Automation Interface
Syntax: object.SearchLines
Syntax: object.Shots
37
OMICRON Test Universe
Syntax: object.Application
Syntax: object.Count
Type: Long
38
Advanced Distance Automation Interface
Syntax: object.Parent
Type: Object
Description: This property always returns the parent object in the object
hierarchy. In this case it is the Fault Type Object (FaultType).
39
OMICRON Test Universe
Methods
Add
Syntax: object.Add
Return type: +
Description: This method adds a shot to the Shots collection and returns
the created Shot Object (Shot).
AddRelative
Description: This method adds a relative shot to the Shots collection and
returns the created Shot Object (Shot).
AddRX
Syntax: object.AddRX(R, X)
Double R
Double X
40
Advanced Distance Automation Interface
AddZPhi
Remove
Syntax: object.Remove(index)
Long index
Description: This method removes the specified shot from the Shots
collection.
41
OMICRON Test Universe
RemoveAll
Syntax: object.RemoveAll
Description: This method removes all the shots from the Shots collection.
Syntax: object.Item(index)
Long index
Description: This method returns a Shot Object (Shot) from the Shots
Collection. The parameter is the shot index in the collection.
42
Advanced Distance Automation Interface
ItemIndex
Syntax: object.ItemIndex(Index)
Variant Index – Index number of the shot.
Description: This method returns a Shot Object (Shot) from the Shots
Collection. The index is the number of the shot in the
collection (between 1 and Shots.Count).
43
OMICRON Test Universe
Shot Object
Properties
Dev (read only)
Syntax: object.Dev
Type: Double
44
Advanced Distance Automation Interface
Syntax: object.IsFailed
Type: Boolean
45
OMICRON Test Universe
Syntax: object.IVTest
Type: Double
Description: This property returns the test current or the test voltage
(depending on the test mode).
46
Advanced Distance Automation Interface
PercentZone
Syntax: object.PercentZone
Type: Double
47
OMICRON Test Universe
Phi
Syntax: object.Phi
Type: Double
Description: This property specifies the shot angle. The unit is degree.
Phi1FaultInc
Syntax: object.Phi1FaultInc
Type: Double
Description: This property returns the fault inception angle on phase one.
The unit is degree.
48
Advanced Distance Automation Interface
Syntax: object.R
Type: Double
Description: This property specifies the R value of the shot. The unit is
Ohm.
49
OMICRON Test Universe
ShotType
Syntax: object.ShotType
Type: Long
50
Advanced Distance Automation Interface
Syntax: object.Status
Type: Long
51
OMICRON Test Universe
Syntax: object.StatusString(format)
52
Advanced Distance Automation Interface
Syntax: object.TAct
Type: Double
53
OMICRON Test Universe
Syntax: object.TMax
Type: Double
54
Advanced Distance Automation Interface
Syntax: object.TMin
Type: Double
55
OMICRON Test Universe
Syntax: object.X
Type: Double
56
Advanced Distance Automation Interface
Syntax: object.Z
Type: Double
57
OMICRON Test Universe
ZeroCrossing
Syntax: object.ZeroCrossing
Type: Boolean
58
Advanced Distance Automation Interface
ZoneKey
Syntax: object.ZoneKey
Type: Long
Description: This property specifies the zone-key, the zone index used for
a relative shot.
59
OMICRON Test Universe
Syntax: object.Application
Syntax: object.Count
Type: Long
60
Advanced Distance Automation Interface
Syntax: object.Parent
Type: Object
Description: This property always returns the parent object in the object
hierarchy. In this case it is the Fault Type Object (FaultType).
61
OMICRON Test Universe
Methods
Add
Syntax: object.Add
AddRelRX
62
Advanced Distance Automation Interface
AddRelZPhi
AddRX
63
OMICRON Test Universe
AddZPhi
Remove
Syntax: object.Remove(index)
Long index
Description: This method removes the specified search line from the
SearchLines collection.
RemoveAll
Syntax: object.RemoveAll
Description: This method removes all the search lines from the
SearchLines collection.
64
Advanced Distance Automation Interface
Syntax: object.Item(index)
Long index
ItemIndex
Syntax: object.ItemIndex(Index)
Variant Index – Index number of the search line.
65
OMICRON Test Universe
SearchLine Object
Properties
Absolute
Syntax: object.Absolute
Type: Boolean
66
Advanced Distance Automation Interface
Angle
Syntax: object.Angle
Type: Double
Description: This property specifies the search line angle. The unit is
degree
67
OMICRON Test Universe
Syntax: object.IsFailed
Type: Boolean
Description: This property returns True if the search line test has failed.
68
Advanced Distance Automation Interface
Length
Syntax: object.Length
Type: Double
Description: This property specifies the search line length. The unit is Ohm
69
OMICRON Test Universe
PercentZone
Syntax: object.PercentZone
Type: Double
70
Advanced Distance Automation Interface
Phi
Syntax: object.Phi
Type: Double
Description: This property specifies the angle of the search line origine.
The unit is degree.
71
OMICRON Test Universe
Syntax: object.R
Type: Double
Description: This property specifies the R value of the search line origine.
The unit is Ohm.
72
Advanced Distance Automation Interface
Syntax: object.Status
Type: Long
73
OMICRON Test Universe
Syntax: object.Reaches
74
Advanced Distance Automation Interface
Syntax: object.X
Type: Double
Description: This property specifies the X value of the search line origine.
The unit is Ohm.
75
OMICRON Test Universe
Syntax: object.Z
Type: Double
Description: This property specifies the Z value of the search line origine.
The unit is Ohm.
76
Advanced Distance Automation Interface
ZoneKey
Syntax: object.ZoneKey
Type: Long
77
OMICRON Test Universe
Syntax: object.Application
78
Advanced Distance Automation Interface
Syntax: object.Count
Type: Long
79
OMICRON Test Universe
Syntax: object.Parent
Type: Object
Description: This property always returns the parent object in the object
hierarchy. In this case it is the Search Line Object
(SearchLine).
80
Advanced Distance Automation Interface
Methods
Item (default property)
Syntax: object.Item(index)
Long index
81
OMICRON Test Universe
Reach Object
Properties
IsStepUp
Syntax: object.IsStepUp
Type: Boolean
Syntax: object.RAct
Type: Double
82
Advanced Distance Automation Interface
83
OMICRON Test Universe
Syntax: object.RDev
Type: Double
Syntax: object.RDevPercent
Type: Double
84
Advanced Distance Automation Interface
Syntax: object.RNom
Type: Double
Syntax: object.Status
Type: Long
Syntax: object.StatusString(format)
85
OMICRON Test Universe
Syntax: object.Tlower
Type: Double
86
Advanced Distance Automation Interface
Syntax: object.TMax
Type: Double
Syntax: object.TMin
Type: Double
Syntax: object.TUpper
Type: Double
Syntax: object.TUpper
Type: Long
87
OMICRON Test Universe
Syntax: object.XAct
Type: Double
Syntax: object.XDev
Type: Double
Syntax: object.XDevPercent
Type: Double
Syntax: object.XNom
Type: Double
88
Advanced Distance Automation Interface
Syntax: object.ZAct
Type: Double
Syntax: object.ZDev
Type: Double
Syntax: object.ZMax
Type: Double
Syntax: object.ZMin
Type: Double
89
OMICRON Test Universe
Syntax: object.ZNom
Type: Double
Syntax: object.ZoneLabelHigh
Type: String
Syntax: object.ZoneLabelLow
Type: String
90
Advanced Distance Automation Interface
Syntax: object.Application
Syntax: object.Count
Type: Long
91
OMICRON Test Universe
Syntax: object.Parent
Type: Object
Description: This property always returns the parent object in the object
hierarchy. In this case it is the Fault Type Object (FaultType).
92
Advanced Distance Automation Interface
Methods
Add
Syntax: object.Add
AddRelRx
93
OMICRON Test Universe
AddRelZPhi
AddRx
94
Advanced Distance Automation Interface
AddZPhi
Remove
Syntax: object.Remove(index)
Long index
Description: This method removes the specified check line from the
CheckLines collection.
RemoveAll
Syntax: object.RemoveAll
Long index
Description: This method removes all the check lines from the
CheckLines collection.
95
OMICRON Test Universe
Syntax: object.Item(index)
Long index
96
Advanced Distance Automation Interface
CheckLine Object
Properties
Absolute
Syntax: object.Absolute
Type: Boolean
97
OMICRON Test Universe
Angle
Syntax: object.Angle
Type: Double
Description: This property specifies the check line angle. The unit is degree.
98
Advanced Distance Automation Interface
Syntax: object.IsFailed
Type: Boolean
Description: This property returns True if the check line test has failed.
99
OMICRON Test Universe
Length
Syntax: object.Length
Type: Double
Description: This property specifies the check line length. The unit is Ohm
100
Advanced Distance Automation Interface
Phi
Syntax: object.Phi
Type: Double
Description: This property specifies the angle of the check line origine.
The unit is degree.
101
OMICRON Test Universe
Syntax: object.R
Type: Double
Description: This property specifies the R value of the check line origine.
The unit is Ohm.
102
Advanced Distance Automation Interface
Syntax: object.Status
Type: Long
103
OMICRON Test Universe
Syntax: object.X
Type: Double
Description: This property specifies the X value of the check line origine.
The unit is Ohm.
104
Advanced Distance Automation Interface
Syntax: object.Z
Type: Double
Description: This property specifies the Z value of the check line origine.
The unit is Ohm.
105
OMICRON Test Universe
ZoneKey
Syntax: object.ZoneKey
Type: Long
106
Advanced Distance Automation Interface
ZoneType
Syntax: object.ZoneType
Type: Long
107
OMICRON Test Universe
PercentZone
Syntax: object.PercentZone
Type: Double
Description: This property specifies the percent of the zone, defined for a
relative check line.
108
Advanced Distance Automation Interface
ZoneLabel (read-only)
Syntax: object.ZoneLabel
Type: String
109
OMICRON Test Universe
LinkToLineAngle
Syntax: object.LinkToLineAngle
Type: Boolean
Description: This property specifies the link to line angle option (Follow
line angle change).
110
Advanced Distance Automation Interface
Constants Object
Properties
The following is a list some useful IDs supported by the OMICRON Advanced
Distance Module.
Note: Do NOT use these IDs out of the Automation scope.
Fault Types
FTL1N
FTL2N
FTL3N
FTL1L2
FTL2L3
FTL3L1
FTL1L2L3
Reach Status
RSFailed
RSNotTested
RSOutOfRange
RSOverloadFailed
RSOverloadPassed
RSOverloadTrippedPrefault
RSPassed
RSTrippedPrefault
111
OMICRON Test Universe
Reach Type
RTIdentify
RTSearchZ
RTVerify
Shot Status
SSFailed
SSNotTested
SSOutOfRange
SSOverloadFailed
SSOverloadPassed
SSOverloadTrippedPrefault
SSPassed
SSTrippedPrefault
Shot Type
STAbsolute
STRelative
Test Mode
TMConstantCurrent
TMConstantVoltage
TMConstantSourceImp
Time Reference
TRFaultInception
TRStarting
112
Advanced Distance Automation Interface
Zone Type
ZTExtended
ZTNonTripping
ZTStarting
ZTTripping
113
OMICRON Test Universe
114