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.

Anmerkung: Der Verbindungsstatus wird vom Treiber selbst ausgewertet. Daher wird der Status nicht korrekt aktualisiert, wenn der entsprechende Treiber nicht läuft.

Assignment

Treiber

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