Promotic

DbSetDatagram - method of the AtouchX object

Description:
Sets up datagram monitoring.
The method sets the monitoring of incoming datagrams in the variable specified by WID. From the calling of the DbSetDatagram method, each incoming datagram will trigger the DbDatagram event. until it is cancelled by the DbResetDatagram method or the object is terminated.
Syntax:
Integer DbSetDatagram(Long WID, Long Param)
Parameters:
WID(Long) WID of the database variable that is used as the receiving datagram variable.
Param(Long) The value that is passed unchanged to the datagram event.
Return values:
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oATC = pMe.Pm("/AtouchApp").Acx;
var nWID = 2005;
var nState = oATC.DbSetDatagram(nWID, 85);
PROMOTIC 9.0.18 SCADA system documentation - MICROSYS, spol. s r.o.

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