Promotic

IsConnected - property of the PmaComm object

Description:
Detects whether the PmaComm object is connected via Ethernet or via the computer's serial port.
Syntax:
Boolean IsConnected
Values:
true - the communication is connected
false - the communication is disconnected
Note:
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.
See also:
Example:
If communication error occurs 5 times in a row in this object, then notify (e.g. call the alarm, etc.)
JavaScriptVBScriptSelect and copy to clipboard

var oComm = pMe.Pm("/Comm");
if (oComm.IsConnected)
{
// IsConnected = true
}
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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