IsConnected - property of the PmaComm object
Detects whether the PmaComm
object is connected via Ethernet or via the computer's serial port.
true - the communication is connected
false - the communication is disconnected
Property access for read only
- for serial link: The property returns flag that the serial port is open.
- for Ethernet-client TCP: The property returns flag of successful TCP connection.
- for Ethernet-client UDP: The property returns flag that the communication is enabled (for UDP the connection is not linked up).
- for Ethernet-server: It is not functional.
If communication error occurs 5 times in a row in this object, then notify (e.g. call the alarm
var oComm = pMe.Pm("/Comm");
//IsConnected = true