getOverallConnState()
The function checks if a connection is working by using the connection name.
Synopsis
bool connected = getOverallConnState("PLC1");
Parameter
Parameter | Description |
---|---|
PLC1 | The connection name of the internal connection datapoint without the prefix _ and without the postfix _2 for the second host in a redundant system. |
Return value
The function returns TRUE if the connection is working and otherwise FALSE.
Description
The function checks if a connection is working by using the connection name. The function also takes into account the redundancy status.
Assignment
DriversAvailability
CTRL. Note that to use this function you must load the CTRL class
libs/drv/DriverCommon.ctl
by using the keyword
#uses:
#uses "DriverCommon.ctl".