DbDatagram - event of the AtouchX object

The event is triggered when the datagram arrives.
The event notifies the receipt of the datagram into the WID database variable. It presents the user with the identification of the datagram source StremId for possible response, the user-specified Param parameter and directly the new current value of the database variable (i.e. incoming datagram).
If the database variable is matrix then the event creates the DATA variable as a two-dimensional matrix. The elements of the matrix are of the type corresponding to the database variable type or of the Variant type containing the type corresponding to the database variable type.
After processing the datagram, the confirmation method DbAcceptDatagram must be called.
WID(Long) WID of the database variable that received the datagram.
StreamId(Long) Identifier of the datagram source. In the case of a datagram response, this value is entered unchanged into the NetReplyDatagram method.
Param(Long) The value entered in the DbSetDatagram method.
DATA(Variant) Current content of the database variable (i.e. received datagram).
JavaScriptVBScriptSelect and copy to clipboard

switch (Param)
case 60:
if (WID == 1024)
var nVal = DATA;
case 40:
if (StreamId == 1)
var nValAll = DATA;
PROMOTIC 9.0.21 SCADA system documentation - MICROSYS, spol. s r.o.

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