<< Click to Display Table of Contents >>
Exercises |
1.Create a user event on the SelfHealing-type source of the *BreakerPosition-type Measurement, by selecting the Create new event option on the List of Events on the Scripts tab toolbar. Name this event as "OVC" and, in the Expression field, type "Value". That allows this event to be triggered whenever the source's value changes.
User script
2.On the Scripts tab of OVC event, type the next script.
If Value = 0 And Quality > 191 Then
Parent.Parent.Parent.Item("Commands").Item("BreakerPosition")._
Item("Open").Operate("Self-Healing")
ElseIf Value = 1 And Quality > 191 Then
Parent.Parent.Parent.Item("Commands").Item("BreakerPosition")._
Item("Close").Operate("Self-Healing")
End If