Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Active - property of object PmAlarmEventItem

Description:
Determines if the alarm is active or inactive.
Syntax:
Active As Boolean
Calling:
oAlEvItem.Active
Values:
true - reading: alarm is active, writing: activation of the alarm
false - reading: alarm is inactive, writing: inactivation of the alarm
Note:
Property access for read and write. When reading the value from the property, the immediate status of the alarm is detected. when writing the value to the property, the activation or inactivation of the alarm is made. Writing the value true to the property is identical with calling the Activate method without parameters. Writing the value false to the property is identical with calling the Inactivate method without parameters.
Example1:
The next two examples show the same activity by two different ways:
oAlEv.Item("Temperature").Active = value > 80
Example2:
If value > 80 Then
  oAlEv.Item("Temperature").Activate
Else
  oAlEv.Item("Temperature").Inactivate
End If
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice