UA_ConnectionGetStatus

This Function Block is used to get the connection status of a valid connection handle.

 

 

 

UA_ConnectionGetStatus

 

 

 

BOOL

–

 

Execute

Done

 

–

BOOL

DWORD

–

 

ConnectionHdl

Busy

 

–

BOOL

TIME

–

 

Timeout

Error

 

–

BOOL

 

 

 

 

ErrorID

 

–

L_IOCP_ErrorId

 

 

 

 

ConnectionStatus

 

–

UAConnectionStatus

 

 

 

 

ServerState

 

–

UAServerState

 

 

 

 

ServiceLevel

 

–

BYTE

 

 

 

 

 

 

 

 

Inputs

Name

Data type

Information/possible settings

Execute

BOOL

FALSEäTRUE

On rising edge FB performs its task.

ConnectionHdl

DWORD

Connection handle to check the state.

Timeout

TIME

Maximum time to perform the request.

Outputs

Name

Data type

Value/meaning

Done

BOOL

TRUE

Signals a connection has been closed successful.

Busy

BOOL

TRUE

The FB is not finished and new output values are to be expected.

Error

BOOL

TRUE

An error has occurred in the service request. For details see ErrorID.

ErrorID

L_IOCP_ErrorId

If Error = TRUE: Error number for the error that has occurred.

ConnectionStatus

 

UAConnectionStatus

Provides the current state for the given connection handle. The outputs Server State and Service Level are only valid, if the Connection Status is UAConnectionStatus_Connected.

ServerState

UAServerState

Provides the current state of the connected OPC UA server.

ServiceLevel

BYTE

Provides the current service level of the connected OPC UA server. It describes the ability of the Server to provide its data to the client. The value range is from 0 to 255, where 0 indicates the worst and 255 indicates the best. The intent is to provide the clients an indication of availability among redundant Servers.