Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Extension - method of object PmAlarmItem

Description:
The method enables access to data extension (ExtAlarmAnalog, ExtAlarmBinary or ExtEvent) that the alarm originated from.
Syntax:
Extension
Calling:
oAlarmItem.Extension()
Return Values:
Returns Data extension object type. If an error occures then error value (null for JavaScript or Nothing pro VBScript) is returned (the alarm did not originate in the data extension). Nothing value can be tested by VBScript Is operator.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var nMin1;
var oItem = pMe.Pm("/alarm").Item("item1");
var oExt = oItem.Extension();
if (oExt && oExt.ClassName == "ExtAlarmAnalog")
nMin1 = oExt.Min1;

History:
Pm8.03.13: Created
PROMOTIC 9.0.3 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