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.

Note: The connection state is evaluated by the driver itself. Hence, the state is not updated correctly if the corresponding driver is not running.

Assignment

Drivers

Availability

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".