WID | (Long) The WID of the database variable that triggered the alarm (into which it was written).
If the alarm was set by the DbAlarm method, then the WID value corresponds to the value entered there (pure WID or WID including the station number). If the alarm was specified by the DbMultiSetAlarm method, then the WID value is including the station number. |
---|---|
Param | (Long) The value entered in the DbAlarm method or DbMultiSetAlarm. |
DATA | (Variant) Current content of the database variable. |
switch (Param)
{
case 60:
if (WID == 1024)
{
var nVal = DATA;
}
break;
case 40:
var nValAll = DATA;
break;
}