Promotic
WikipediaLinkedInYoutubeTwitterFacebook

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
Calling:
b = oComm.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.11 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice