Promotic

DbSetAlarm - method of the AtouchX object

Description:
Sets alarm monitoring.
The method sets the monitoring of external entries of the WID variable. From the calling of the DbSetAlarm method, each such entry will trigger the DbAlarm event until it is cancelled by the DbResetAlarm method or termination of the object. The Param value is also used as an identifier when an alarm is cancelled, while the 0 value is used to cancel all alarms.
Syntax:
Integer DbSetAlarm(Long WID, Long Param)
Parameters:
WID(Long) The WID of a database variable into which another station actively writes, an alarm event is triggered.
Param(Long) The value that is passed unchanged to the alarm event.
Return value:
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oATC = pMe.Pm("/AtouchApp").Acx;
var nWID = 1024;
var nParam = 60;
var nInfo = oATC.DbSetAlarm(nWID, nParam);
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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