Advanced Distance Automation Interface
Advanced Distance Automation Interface
Automation Interface
OMICRON Test Universe
2
Contents
Contents
3
OMICRON Test Universe
Methods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
CheckLine Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Constants Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
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.
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).
12
Advanced Distance Automation Interface
Syntax: object.FaultTypes
13
OMICRON Test Universe
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.
14
Advanced Distance Automation Interface
TestSettings
Syntax: object.TestSettings
Type: Object
15
OMICRON Test Universe
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
16
Advanced Distance Automation Interface
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
17
OMICRON Test Universe
TestSetDefaults
Syntax: object.TestSetDefaults
Type: None
UpdateAllViews
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.
18
Advanced Distance Automation Interface
TestSettings Object
Properties
AllowReduction
Syntax: object.AllowReduction
Type: Boolean
CBSimulationON
Syntax: object.CBSimulationON
Type: Boolean
19
OMICRON Test Universe
DCOffset
Syntax: object.DCOffset
Type: Boolean
ExtendedZonesActive
Syntax: object.ExtendedZonesActive
Type: Boolean
20
Advanced Distance Automation Interface
FaultInceptionAngle
21
OMICRON Test Universe
FaultInceptionMode
22
Advanced Distance Automation Interface
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).
23
OMICRON Test Universe
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 °.
24
Advanced Distance Automation Interface
MaxFaultTime
Syntax: object.MaxFaultTime
Type: Double
PostFaultTime
Syntax: object.PostFaultTime
Type: Double
25
OMICRON Test Universe
PreFaultTime
Syntax: object.PreFaultTime
Type: Double
SearchInterval
Syntax: object.SearchInterval
Type: Double
Description: This property specifies the search interval. The unit is Ohm.
26
Advanced Distance Automation Interface
SearchIntervalAbs
Syntax: object.SearchResolutionAbs
Type: Double
SearchIntervalRel
Syntax: object.SearchResolutionAbs
Type: Double
Description: This property specifies the relative search resolution. The unit
is %.
27
OMICRON Test Universe
SwitchOffAtZeroCrossing
Syntax: object.SwitchOffAtZeroCrossing
Type: Boolean
28
Advanced Distance Automation Interface
TestMode
Syntax: object.TestMode
Type: Long
TimeReference
Syntax: object.TimeReference
Type: Long
29
OMICRON Test Universe
ZSMag
Syntax: object.ZSMag
Type: Double
30
Advanced Distance Automation Interface
ZSAngle
Syntax: object.ZSAngle
Type: Double
31
OMICRON Test Universe
Methods
TestSetDefaults
Syntax: object.TestSetDefaults
Type: None
32
Advanced Distance Automation Interface
Syntax: object.Application
33
OMICRON Test Universe
Syntax: object.Count
Type: Long
34
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).
35
OMICRON Test Universe
Methods
Add
Syntax: object.Add
Syntax: object.Item(Index)
36
Advanced Distance Automation Interface
Remove
Syntax: object.Remove
37
OMICRON Test Universe
FaultType Object
Properties
CheckLines (read only)
Syntax: object.CheckLines
Syntax: object.FTString
Type: String
38
Advanced Distance Automation Interface
Syntax: object.SearchLines
Syntax: object.Shots
39
OMICRON Test Universe
Syntax: object.Application
Syntax: object.Count
Type: Long
40
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).
41
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
42
Advanced Distance Automation Interface
AddZPhi
Remove
Syntax: object.Remove(index)
Long index
Description: This method removes the specified shot from the Shots
collection.
43
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.
44
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).
45
OMICRON Test Universe
Shot Object
Properties
Dev (read only)
Syntax: object.Dev
Type: Double
46
Advanced Distance Automation Interface
Syntax: object.IsFailed
Type: Boolean
47
OMICRON Test Universe
Syntax: object.IVTest
Type: Double
Description: This property returns the test current or the test voltage
(depending on the test mode).
48
Advanced Distance Automation Interface
PercentZone
Syntax: object.PercentZone
Type: Double
49
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.
50
Advanced Distance Automation Interface
Syntax: object.R
Type: Double
Description: This property specifies the R value of the shot. The unit is
Ohm.
51
OMICRON Test Universe
ShotType
Syntax: object.ShotType
Type: Long
52
Advanced Distance Automation Interface
Syntax: object.Status
Type: Long
53
OMICRON Test Universe
Syntax: object.StatusString(format)
54
Advanced Distance Automation Interface
Syntax: object.TAct
Type: Double
55
OMICRON Test Universe
Syntax: object.TMax
Type: Double
56
Advanced Distance Automation Interface
Syntax: object.TMin
Type: Double
57
OMICRON Test Universe
Syntax: object.X
Type: Double
58
Advanced Distance Automation Interface
Syntax: object.Z
Type: Double
59
OMICRON Test Universe
ZeroCrossing
Syntax: object.ZeroCrossing
Type: Boolean
60
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.
61
OMICRON Test Universe
Syntax: object.Application
Syntax: object.Count
Type: Long
62
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).
63
OMICRON Test Universe
Methods
Add
Syntax: object.Add
AddRelRX
64
Advanced Distance Automation Interface
AddRelZPhi
AddRX
65
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.
66
Advanced Distance Automation Interface
Syntax: object.Item(index)
Long index
ItemIndex
Syntax: object.ItemIndex(Index)
Variant Index – Index number of the search line.
67
OMICRON Test Universe
SearchLine Object
Properties
Absolute
Syntax: object.Absolute
Type: Boolean
68
Advanced Distance Automation Interface
Angle
Syntax: object.Angle
Type: Double
Description: This property specifies the search line angle. The unit is
degree
69
OMICRON Test Universe
Syntax: object.IsFailed
Type: Boolean
Description: This property returns True if the search line test has failed.
70
Advanced Distance Automation Interface
Length
Syntax: object.Length
Type: Double
Description: This property specifies the search line length. The unit is Ohm
71
OMICRON Test Universe
PercentZone
Syntax: object.PercentZone
Type: Double
72
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.
73
OMICRON Test Universe
Syntax: object.R
Type: Double
Description: This property specifies the R value of the search line origine.
The unit is Ohm.
74
Advanced Distance Automation Interface
Syntax: object.Status
Type: Long
75
OMICRON Test Universe
Syntax: object.Reaches
76
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.
77
OMICRON Test Universe
Syntax: object.Z
Type: Double
Description: This property specifies the Z value of the search line origine.
The unit is Ohm.
78
Advanced Distance Automation Interface
ZoneKey
Syntax: object.ZoneKey
Type: Long
79
OMICRON Test Universe
Syntax: object.Application
80
Advanced Distance Automation Interface
Syntax: object.Count
Type: Long
81
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).
82
Advanced Distance Automation Interface
Methods
Item (default property)
Syntax: object.Item(index)
Long index
83
OMICRON Test Universe
Reach Object
Properties
IsStepUp
Syntax: object.IsStepUp
Type: Boolean
Syntax: object.RAct
Type: Double
84
Advanced Distance Automation Interface
85
OMICRON Test Universe
Syntax: object.RDev
Type: Double
Syntax: object.RDevPercent
Type: Double
86
Advanced Distance Automation Interface
Syntax: object.RNom
Type: Double
Syntax: object.Status
Type: Long
Syntax: object.StatusString(format)
87
OMICRON Test Universe
Syntax: object.Tlower
Type: Double
88
Advanced Distance Automation Interface
Syntax: object.TMax
Type: Double
Syntax: object.TMin
Type: Double
Syntax: object.TUpper
Type: Double
Syntax: object.TUpper
Type: Long
89
OMICRON Test Universe
Syntax: object.XAct
Type: Double
Syntax: object.XDev
Type: Double
Syntax: object.XDevPercent
Type: Double
Syntax: object.XNom
Type: Double
90
Advanced Distance Automation Interface
Syntax: object.ZAct
Type: Double
Syntax: object.ZDev
Type: Double
Syntax: object.ZMax
Type: Double
Syntax: object.ZMin
Type: Double
91
OMICRON Test Universe
Syntax: object.ZNom
Type: Double
Syntax: object.ZoneLabelHigh
Type: String
Syntax: object.ZoneLabelLow
Type: String
92
Advanced Distance Automation Interface
Syntax: object.Application
Syntax: object.Count
Type: Long
dist.Document.FaultTypes(1).CheckLines.Count
93
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).
94
Advanced Distance Automation Interface
Methods
Add
Syntax: object.Add
AddRelRx
95
OMICRON Test Universe
AddRelZPhi
AddRx
96
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.
97
OMICRON Test Universe
Syntax: object.Item(index)
Long index
98
Advanced Distance Automation Interface
CheckLine Object
Properties
Absolute
Syntax: object.Absolute
Type: Boolean
99
OMICRON Test Universe
Angle
Syntax: object.Angle
Type: Double
Description: This property specifies the check line angle. The unit is degree.
100
Advanced Distance Automation Interface
Syntax: object.IsFailed
Type: Boolean
Description: This property returns True if the check line test has failed.
101
OMICRON Test Universe
Length
Syntax: object.Length
Type: Double
Description: This property specifies the check line length. The unit is Ohm
102
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.
103
OMICRON Test Universe
Syntax: object.R
Type: Double
Description: This property specifies the R value of the check line origine.
The unit is Ohm.
104
Advanced Distance Automation Interface
Syntax: object.Status
Type: Long
105
OMICRON Test Universe
Syntax: object.X
Type: Double
Description: This property specifies the X value of the check line origine.
The unit is Ohm.
106
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.
107
OMICRON Test Universe
ZoneKey
Syntax: object.ZoneKey
Type: Long
108
Advanced Distance Automation Interface
ZoneType
Syntax: object.ZoneType
Type: Long
109
OMICRON Test Universe
PercentZone
Syntax: object.PercentZone
Type: Double
Description: This property specifies the percent of the zone, defined for a
relative check line.
110
Advanced Distance Automation Interface
ZoneLabel (read-only)
Syntax: object.ZoneLabel
Type: String
111
OMICRON Test Universe
LinkToLineAngle
Syntax: object.LinkToLineAngle
Type: Boolean
Description: This property specifies the link to line angle option (Follow
line angle change).
112
Advanced Distance Automation Interface
Constants Object
Properties
List of some useful IDs supported by the Advanced Distance module.
Note: Do not use these IDs out of the Automation scope.
Fault Types
FTL1N
FTL2N
FTL3N
FTL1L2
FTL2L3
FTL3L1
FTL1L2L3
Fault Inception Mode
FIMFixed
FIMMaximum
FIMRandom
FIMZero
Reach Status
RSFailed
RSNotTested
RSOutOfRange
RSOverloadFailed
RSOverloadPassed
RSOverloadTrippedPrefault
RSPassed
RSTrippedPrefault
RSTrippedBeforeStart
RSOverloadTrippedBeforeStart
113
OMICRON Test Universe
Reach Type
RTIdentify
RTSearchZ
RTVerify
Shot Status
SSFailed
SSNotTested
SSOutOfRange
SSOverloadFailed
SSOverloadPassed
SSOverloadTrippedPrefault
SSPassed
SSTrippedPrefault
SSTrippedBeforeStart
SSOverloadTrippedBeforeStart
Shot Type
STAbsolute
STRelative
Test Mode
TMConstantCurrent
TMConstantVoltage
TMConstantSourceImp
Time Reference
TRFaultInception
TRStarting
114
Advanced Distance Automation Interface
Zone Type
ZTExtended
ZTNonTripping
ZTStarting
ZTTripping
115
OMICRON Test Universe
116
Support
Support
When you are working with our products we want to provide you with the
greatest possible benefits. If you need any support, we are here to assist you!
OMICRON electronics GmbH, Oberes Ried 1, 6833 Klaus, Austria, +43 59495
117
Support
118