Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Item - property of object PmAlarmEvent

Description:
Access to one alarm/event item (to the object of the PmAlarmEventItem type.).
Syntax:
Item(sId As String, [tTimeOn As Date]) As Object
Calling:
Set o = oAlEv.Item(sId, tTimeOn)
Parameters:
sId(String) The unique text identifier of the alarm/event item. See the configurator "Identifier".
tTimeOn[optional] (Date) Creation time of the alarm/event item.

If not set (or the value 0 is set), then the alarm/event item is returned without checking the creation time.

If specified, then the creation time of the alarm/event item must correspond to the set value.

If the alarm/event item that corresponds to the specified text identifier and to the specified creating time doesn't exist, then the value Nothing is returned.

The tTimeOn parameter is useful first of all in two following cases:

1. If several instances of the alarm/event item with the same identifier exist (cased by states of the alarm/event items inactive unacknowledged (blue)), then it enables to return one concrete instance of the alarm/event item (even other than the last). If the tTimeOn parameter is omitted, then the last, the latest old, alarm/event item is returned.
2. If the operation is performed over the alarm/event item and a delay between the beginning of the operation and its termination can arise (the confirmation window for the action or the operation transferred between two computers), then it is advisable to specify by the tTimeOn parameter that the operation has to be performed over the concrete instance of the alarm/event item in the time. If the instance of the alarm/event item doesn't exist in the moment when the operation starts to be performed, then the operation is cancelled (e.g. an attempt to acknowledge the same alarm/event item from two computers at the same time), otherwise the operation would have been performed over the newer (other than original) instance of the alarm/event item.
Values:
Returns the reference to the alarm/event item of the PmAlarmEventItem type. In case of an error, it returns the value Nothing (probably the alarm/event item with the Id or the creation time doesn't exist). Nothing value can be tested by VBScript Is operator.
Note:
Property access for read only.
PROMOTIC 8.3.21 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice