Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Extension - method of the PmAlarmItem object

Description:
The method enables access to data extension (ExtAlarmAnalog or ExtAlarmBinary) that the alarm originated from.
Syntax:
Object Extension()
Return values:
Returns Data extension object type.

If an error occures, then the method returns: null for JavaScript or Nothing pro VBScript (it can be tested by the Pm.IsValid method). It means that the alarm did not originate in the 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.13 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