DbSetAlarm - method of the AtouchX object
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.
Integer DbSetAlarm(Long WID, Long Param)
|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.|
var oATC = pMe.Pm("/AtouchApp").Acx;
var nWID = 1024;
var nParam = 60;
var nInfo = oATC.DbSetAlarm(nWID, nParam);