onConnect - event of the PmaComm object
Description:
The event is triggered after the successful connection.
For Ethernet TCP: The event is triggered after successful TCP connection.
For Ethernet UDP: The event is triggered before the first transmission after the application is launched, or before the first transmission after the previous failed communication.
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 an object describing detailed information about the specific event.
The pEvent parameter is not used here because this event does not need any additional information. |
---|
Example:
JavaScriptVBScriptSelect and copy to clipboard
Pm.Debug("communication - onConnect");
Pm.Debug "communication - onConnect"
History:
Pm9.00.11: The event is now working also for
UDP.