Promotic

onDisconnect - event of the PmaComm object

Description:
The event is triggered after the connection is closed.
For Ethernet TCP: The event is triggered after the TCP connection is closed.
For Ethernet UDP: The event is triggered after failed communication caused by opposite side being not available.
For serial link: The event is triggered after successful connection, for example, to the "COM1" port.
Parameters:
pMe(Object) Reference to the PmaComm object where the event rises.
pEvent(Object) Reference to the object describing detailed information about the specific event.
The pEvent parameter is not used here because this event does not need any additional information.
See also:
- PmaComm.IsConnected (property)
- PmaComm.OpenPort (method)
Example:
JavaScriptVBScriptSelect and copy to clipboard

Pm.Debug("communication - onDisconnect");

History:
Pm9.00.11: The event is now working also for UDP.
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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