10.20 ConnectionStateEnum

The ConnectionStateEnum provides information about the current state of the Connection, as determined by the ConnectionManager. See section 10.19 for a description of the ConnectionState. The ConnectionStateEnum values are formally defined in Table 164.

Table 164 – ConnectionStateEnum items
Name Value Description
ConnectionNotMonitored0ConnectionManager does not monitor the state of the Connection
ConnectionNotEstablished1Connection does not exist
ConnectionInitial2Connection is being established, but the communication model is not linked to the ConnectionEndpoint.
ConnectionReady3Connection is established, but the communication model is disabled
ConnectionPreOperational4Connection is established and enabled, but communication has not started
ConnectionOperational5Connection is established, and communication is flowing
ConnectionError6Connection is established and enabled, but communication is not possible due to an endpoint error.

ConnectionNotEstablished can result from any of the following:

ConnectionManager has not yet established the Connection;

ConnectionManager has successfully removed the Connection;

ConnectionManager detected that one or both ConnectionEndpoints have been removed (e.g., due to ConnectionEndpoint auto-cleanup or AutomationComponent power-cycle).

ConnectionStateEnum combines the Status of all ConnectionEndpoints participating in a Connection (see 10.20).

For Connection types bidirectional, unidirectional and unidirectional with heartbeat, the value is calculated according to Figure 58.

Endpoint1

Status

Endpoint2

Status

Initial Ready PreOperational Operational Error
Initial ConnectionInitialConnectionInitialConnectionInitialConnectionInitialConnectionInitial
Ready ConnectionInitialConnectionReadyConnectionReadyConnectionReadyConnectionError
PreOperational ConnectionInitialConnectionReady

ConnectionPre

Operational

ConnectionPre

Operational

ConnectionError
Operational ConnectionInitialConnectionReady

ConnectionPre

Operational

ConnectionOperationalConnectionError
Error ConnectionInitialConnectionErrorConnectionErrorConnectionErrorConnectionError

For Connection types autonomous publisher and autonomous subscriber, the value is calculated according to Figure 59.

Endpoint Status ConnectionRuntimeState
Initial ConnectionInitial
Ready ConnectionReady
PreOperational ConnectionPreOperational
Operational ConnectionOperational
Error ConnectionError

The ConnectionStateEnum representation in the AddressSpace is formally defined in Table 165.

Table 165 – ConnectionStateEnum definition
Attribute Value
BrowseName4:ConnectionStateEnum
IsAbstractFalse
References NodeClass BrowseName DataType TypeDefinition Other
Subtype of the 0:Enumeration defined in OPC 10000-5
0:HasPropertyVariable0:EnumValues0:EnumValueType[]0:PropertyType
ConformanceUnits
UAFX ConnectionManager Diagnostics