Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Automation Interface
OMICRON Test Universe
2
Contents
Contents
3
OMICRON Test Universe
TestPoint Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Constants Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
4
Annunciation Checker Automation Interface
5
OMICRON Test Universe
Application Object
Properties
Application (read only)
The application object is the root of the OMICRON Annunciation Checker 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 Annunciation Checker. If you want to
create another Application object with CreateObject, a new instance of the
OMICRON Annunciation Checker 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.
Constants (read only)
Syntax: object.Constants
Description: Returns the object with the Constant Values (Constants) you
can use with several functions.
6
Annunciation Checker Automation Interface
Syntax: object.Document
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).
7
OMICRON Test Universe
Visible
Syntax: object.Visible
Type: Boolean
8
Annunciation Checker Automation Interface
Methods
Quit
Syntax: object.Quit
9
OMICRON Test Universe
Document Object
With the Document Object (Document) you can control the document.
From this object you can get references to the Signals Collection Object
(Signals) (definition of test signals) and the Measurements Collection Object
(Measurements) (definition of measurement conditions and results).
Properties
Application (read only)
Syntax: object.Application
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).
10
Annunciation Checker Automation Interface
Syntax: object.Signals
Syntax: object.Locations
11
OMICRON Test Universe
Comment
Syntax: object.Comment
Type: String
Autolock
Syntax: object.Autolock
Type: Boolean
Description: Set this property to True to automatically lock each test point
once it was assessed. Locked test points cannot be changed
or retested anymore. Clear the test results to unlock the test
points.
12
Annunciation Checker Automation Interface
LockTestedTestPoints
Syntax: object.LockTestedTestPoints()
Type: None
Description: This method locks all tested test points. Locked test points
cannot be changed or retested anymore. Clear the test
results to unlock the test points.
13
OMICRON Test Universe
Syntax: object.Application
14
Annunciation Checker Automation Interface
Syntax: object.Count
Type: Long
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).
15
OMICRON Test Universe
Syntax: object.Item(Index)
(optional) Variant Index - Index number of the signal
Description: This method returns Signal Object from the Signals Collection
of the specified Index (must be between 1 and Signals.Count).
Note that there will always be at least one signal in the signals
collection.
16
Annunciation Checker Automation Interface
Methods
Add
Syntax: object.Add()
Return type: Object (Signal)
Description: This method adds a new Signal to the Signals collection. The
reference to the newly created Signal Object is returned.
Example: Dim otm As Object
Dim annu As Object
Set otm =
Document.InsertObject("OMAnnuCheck.Document")
Set annu = otm.Specific
'Add signal Dim signals As Object Dim signal
As Object
Set signals = annu.Document.Signals
Set signal = signals.Add
Remove
Syntax: object.Remove(Index)
Long Index - Index of the signal to remove
Return type: None
Description: This method removes the signal specified by the index from
the signals collection. At least one signal must always exist,
therefore you will get an error message if you try to remove
the last signal in the collection.
Example: Dim otm As Object
Dim annu As Object
Set otm =
Document.InsertObject("OMAnnuCheck.Document")
Set annu = otm.Specific
'Add signal
Dim signals As Object
Set signals = annu.Document.Signals
signals.Add
'And now remove it
signals.Remove(2)
17
OMICRON Test Universe
RemoveMulti
18
Annunciation Checker Automation Interface
Move
19
OMICRON Test Universe
MoveMulti
20
Annunciation Checker Automation Interface
Duplicate
21
OMICRON Test Universe
Duplicate Multi
22
Annunciation Checker Automation Interface
Signal Object
Properties
FCState
Syntax: object.FCState
Syntax: object.BinOuts
23
OMICRON Test Universe
Syntax: object.TestPoints
Syntax: object.nonFCSignals
24
Annunciation Checker Automation Interface
Name
Syntax: object.Name
Type: String
25
OMICRON Test Universe
Type
Syntax: object.Type
Type: Long
Description: This property allows you to read, or set the type of the signal.
0 = Shot
1 = Steady State
2 = No Output
There are constants defined in the Constants object for
convienence:
cSignalTypeShot, cSignalTypeSteadyState,
cSignalTypeNoOutput
26
Annunciation Checker Automation Interface
LED
Syntax: object.LED
Type: String
Description: This property allows you to read or set the LED of a Signal.
PreFaultCurr
Syntax: object.PreFaultCurr
Type: double
Description: This property allows you to read or set the pre-fault current (in
amps) of the Signal.
27
OMICRON Test Universe
PreFaultTime
Syntax: object.PreFaultTime
Type: double
Description: This property allows you to read or set the pre-fault time (in
seconds) of the Signal.
MaxFaultTime
Syntax: object.MaxFaultTime
Type: double
Description: This property allows you to read or set the post-fault time (in
seconds) of the Signal.
28
Annunciation Checker Automation Interface
PostFaultTime
Syntax: object.PostFaultTime
Type: double
Description: This property allows you to read or set the post-fault time (in
seconds) of the Signal.
Instructions
Syntax: object.Instructions
Type: string
Description: This property allows you to read or set the Instructions text of
the Signal.
29
OMICRON Test Universe
PopupMsg
Syntax: object.PopupMsg
Type: string
Description: This property allows you to read or set the pop-up message of
the Signal.
TriggerID
Syntax: object.TriggerID
Type: long
Description: This property specifies the signal ID of the trigger input of the
Signal.
30
Annunciation Checker Automation Interface
TriggerCondition
Syntax: object.TriggerCondition
Type: long
Description: This property specifies the trigger condition of the trigger input.
It can be is "Negative" (0), "Positive" (1) or "Don't care" (2).
0 = "Negative" means that the trigger condition occurs when
the binary input goes from 1 -> 0.
1 = "Positive" means that the trigger condition occurs when
the binary input goes from 0 -> 1.
2 = "Don't care" means that the binary input is ignored.
Example: Dim otm As Object
Dim annu As Object
Set otm =
Document.InsertObject("OMAnnuCheck.Document")
Set annu = otm.Specific
annu.Document.Signals(1).TriggerID =
annu.Constants.sigidTRIP
'Trigger condition will occur when Trip goes
from 0 to 1
annu.Document.Signals(1).TriggerCondition = 0
BinOutLatching
Syntax: object.BinOutLatching
Type: Boolean
Description: This property specifies the latching behaviour for all binary
outputs. It is not possible to define the latching for each binary
output.
True = Latching On
False = Latching Off
Example: Dim otm As Object
Dim annu As Object
Set otm =
Document.InsertObject("OMAnnuCheck.Document")
Set annu = otm.Specific
'Switch latching for all binary outputs on
annu.Document.Signals(1).BinOutLatching = True
31
OMICRON Test Universe
nonFCSignals collection
These are the "extra" analog outputs that are not included in the FCSignals
collection, for example, the fourth voltage output, or the second current triplet of
a CMC256 would be included in this collection.
Properties
Application (read only)
Syntax: object.Application
Syntax: object.Count
Type: Long
32
Annunciation Checker Automation Interface
Syntax: object.Item(Index)
(optional) Variant Index - Index number of the non FC signal
33
OMICRON Test Universe
ItemIndex
Syntax: object.ItemIndex(Index)
Variant Index - Index number of the non FC signal
34
Annunciation Checker Automation Interface
nonFCSignal Object
Properties
Amplitude
Syntax: object.Amplitude
35
OMICRON Test Universe
Frequency
Syntax: object.Frequency
Phase
Syntax: object.Phase
36
Annunciation Checker Automation Interface
Syntax: object.Application
Syntax: object.Count
Type: Long
37
OMICRON Test Universe
Syntax: object.Item(SignalID)
Long SignalID - Signal ID of the binary output
Description: This method returns a Binary Output Object (BinOut) from the
Binary Outputs Collection. The parameter is the signal ID of
the binary output in the collection. Signal IDs are constants
from the Constants object.
38
Annunciation Checker Automation Interface
ItemIndex
Syntax: object.ItemIndex(Index)
Variant Index - Index number of the binary output
Description: This method returns a Binary Output Object (BinOut) from the
Binary Outputs Collection. The index is the number of the
binary output in the collection (between 1 and BinOuts.Count).
39
OMICRON Test Universe
BinOut Object
Properties
Value (default property)
Syntax: object.Value
Type: Boolean
40
Annunciation Checker Automation Interface
Syntax: object.Application
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).
41
OMICRON Test Universe
Syntax: object.Count
Type: Long
Description: This property returns the number of locations in the test
document. Note that there will always be at least one location
in the locations collection.
Example: Dim otm As Object
Dim annu As Object
Set otm =
Document.InsertObject("OMAnnuCheck.Document")
Set annu = otm.Specific
Dim testpoints As Object
Dim testpoint As Object i = 0 Set testpoints =
annu.Document.Signals(1).TestPoints For Each
testpoint in testpointsi = i+1 Next
If i = testpoints.Count then
MsgBox "Counted correctly" End If
Syntax: object.Item(Index)
(optional) Variant Index - Index number of the location
Return type: Object (Location)
Description: This method returns a Location Object from the Locations
Collection at the specified Index (must be between 1 and
Locations.Count). Note that there will always be at least one
location in the locations collection.
Example: 'Change signal name and display it Dim otm As
Object
Dim annu As Object
Set otm =
Document.InsertObject("OMAnnuCheck.Document")
Set annu = otm.Specific
Dim locations As Object
set locations = annu.Document.Locations
Dim location As Object
Set location = locations(1)
42
Annunciation Checker Automation Interface
Methods
Add
Syntax: object.Add()
Return type: Object (Location)
Description: This method adds a new Location to the Locations collection.
The reference to the newly created Location Object is
returned.
Example: Dim otm As Object
Dim annu As Object
Set otm =
Document.InsertObject("OMAnnuCheck.Document")
Set annu = otm.Specific
Dim locations As Object Dim location As Object
Set locations = annu.Document.Locations
Set location = locations.Add
Remove
Syntax: object.Remove(Index)
Long Index - Index of the location to remove
Description: This method removes the location specified by the index from
the locations collection. At least one location must always
exist, therefore you will get an error message if you try to
remove the last location in the collection.
43
OMICRON Test Universe
RemoveMulti
44
Annunciation Checker Automation Interface
Move
45
OMICRON Test Universe
Move Multi
46
Annunciation Checker Automation Interface
Duplicate
47
OMICRON Test Universe
Duplicate Multi
48
Annunciation Checker Automation Interface
Location Object
Properties
Name
Syntax: object.Name
49
OMICRON Test Universe
Syntax: object.Application
Syntax: object.Count
Description: This property returns the number of test points in the signal.
50
Annunciation Checker Automation Interface
Syntax: object.Item(Index)
(optional) Variant Index - Index number of the testpoint
51
OMICRON Test Universe
TestPoint Object
Properties
Used
Syntax: object.Used
52
Annunciation Checker Automation Interface
Expected
Syntax: object.Expected
Description: This property allows you to set or read the Expected result of
the testpoint.
Measured
Syntax: object.Measured
Description: This property allows you to set or read the Measured result of
the testpoint.
53
OMICRON Test Universe
Assessment
Syntax: object.Assessment
Description: This property allows you to set or read the Assessment of the
testpoint.
0 = not tested
1 = passed
2 = failed
There are constants defined in the Constants object for
convenience:
cTestPointNotTested, cTestPointPassed, cTestPointFailed
54
Annunciation Checker Automation Interface
Locked
Syntax: object.Locked
Instructions
Syntax: object.Instruction
Description: This property allows for reading or setting the instruction text
of the test point.
55
OMICRON Test Universe
PopupMsg
Syntax: object.PopupMessage
TriggerID
Syntax: object.TriggerID
Description: This property specifies the signal ID of the trigger input of the
test point.
56
Annunciation Checker Automation Interface
TriggerCondition
Syntax: object.TriggerCondition
57
OMICRON Test Universe
InputMode
Syntax: object.InputMode
Description: This property specifies the input mode of the test point. It can
be manual (const.cInputModeManual), input value
(const.cInputModeInputValue) or trigger
(const.cInputModeTrigger).
58
Annunciation Checker Automation Interface
DoAutoAssessment
Syntax: object.DoAutoAssessment
Description: This property sets the auto assessment property of the test
point. It this property is set to True, the test point will be
assessed automatically after the shot is done.
It is not available in Manual input mode.
In the input mode Input Value, after the Measured Value is
entered, the test point will be assessed regarding Expected
Value, Absolute and Relative Tolerance.
In case of the Trigger input mode, after the shot is done, the
test point will be automatically assessed according to the
trigger event during the shot.
59
OMICRON Test Universe
ExpectedValue
Syntax: object.ExpectedValue
Description: This property specifies the Expected Value of the test point. It
is available in input mode Input Value, only.
MeasuredValue
Syntax: object.MeasuredValue
Description: This property specifies the Measured Value of the Test Point.
It is available in input mode Input Value, only.
60
Annunciation Checker Automation Interface
Unit
Syntax: object.Unit
Description: This property specifies the Unit of the Expected Value, the
Measured Value and the Absolute Tolerance of the Test Point.
It is available in input mode Input Value, only.
Available units:
• cUnitNone - no unit
• cUnitSeconds - seconds (s)
• cUnitAmper - ampers (A)
• cUnitVolt - volts (V)
• cUnitOhm - ohm (?)
• cUnitPower - wat (W)
• cUnitApparentPower - volt amper (VA)
• cUnitReactivePower - volt amper reactive (var).
61
OMICRON Test Universe
AbsoluteTolerance
Syntax: object.AbsoluteTolerance
RelativeTolerance
Syntax: object.RelativeTolerance
62
Annunciation Checker Automation Interface
Constants Object
Properties
The following is a list of all signal IDs supported by the OMICRON Annunciation
Checker.
Analog Outputs
sigidUL1N
sigidUL2N
sigidUL3N
sigidUSER_U1_1
sigidUSER_U1_2
sigidUSER_U1_3
sigidUSER_U2_1
sigidUSER_U2_2
sigidUSER_U2_3
sigidUSER_U3_1
sigidUSER_U3_2
sigidUSER_U3_3
sigidUSER_U4_1
sigidUSER_U4_2
sigidUSER_U4_3
sigidIL1
sigidIL2
sigidIL3
sigidI_N
sigidI_0
sigidI_1
sigidI_2
sigidI_PRIM_L1
sigidI_PRIM_L2
63
OMICRON Test Universe
sigidI_PRIM_L3
sigidI_ZERO_PRIM
sigidI_SEC_L1
sigidI_SEC_L2
sigidI_SEC_L3
sigidI_ZERO_SEC
sigidI_TERT_L1
sigidI_TERT_L2
sigidI_TERT_L3
sigidI_ZERO_TERT
sigidUSER_I1_1
sigidUSER_I1_2
sigidUSER_I1_3
sigidUSER_I2_1
sigidUSER_I2_2
sigidUSER_I2_3
sigidUSER_I3_1
sigidUSER_I3_2
sigidUSER_I3_3
sigidUSER_I4_1
sigidUSER_I4_2
sigidUSER_I4_3
Binary Inputs
sigidTRIP
sigidSTART
64
Annunciation Checker Automation Interface
Binary Outputs
sigidAUX_CONT
sigidAUX_CONT_L1
sigidAUX_CONT_L2
sigidAUX_CONT_L3
sigidUSER_OUTBIN_DEF1
sigidUSER_OUTBIN_DEF2
sigidUSER_OUTBIN_DEF3
sigidUSER_OUTBIN_DEF4
sigidUSER_OUTBIN_DEF5
sigidUSER_OUTBIN_DEF6
sigidUSER_OUTBIN_DEF7
sigidUSER_OUTBIN_DEF8
Miscellanous
cTestPointPassed
cTestPointFailed
cTestPointNotTested
cSignalTypeShot
cSignalTypeSteadyState
cSignalTypeNoOutput
Input Mode
cInputModeManual
cInputModeInputValue
cInputModeTrigger
65
OMICRON Test Universe
Units
cUnitNone
cUnitSeconds
cUnitVolt
cUnitAmper
cUnitOhm
cUnitPower
cUnitApparentPower
cUnitReactivePower
66
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
67
Support
68