Promotic

Extension - method of the PmAlarmItem object

Description:
The method returns data extension (ExtAlarmAnalog or ExtAlarmBinary) that the alarm originated from.
Syntax:
Object Extension()
Return value:
Returns Data extension object type.
If an error occures, then the method returns: null for JavaScript or Nothing for VBScript (it can be tested by the Pm.IsValid method). It means that the alarm did not originate in data extension..
Example:
JavaScriptVBScriptSelect and copy to clipboard

var nMin1;
var oAlItem = pMe.Pm("/Alarm").Item("analog1");
var oExt = oAlItem.Extension();
if (oExt)
{
nMin1 = oExt.Min1;
}

History:
Pm8.03.13: Created
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.