FB-Name

UA_ConnectionGetStatus

This Function Block is used to get the connection status.

VAR_INPUT

B

Execute

BOOL

FB performs its task on rising edge on this input.

B

ConnectionHdl

DWORD

Connection handle.

B

Timeout

TIME

Time to response.

VAR_OUTPUT

B

Done

BOOL

FB has completed its task.

B

Busy

BOOL

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

B

Error

BOOL

Signals that an error has occurred within the FB.

B

ErrorID

DWORD

Error code.

B

ConnectionStatus

ENUM

See UAConnectionStatus. The outputs ServerState and ServiceLevel are only valid if the ConnectionStatus is UACS_Connected.

B

ServerState

ENUM

See UAServerState. The ServerState is UASS_Unknown if the ConnectionStatus is not UACS_Connected.

B

ServiceLevel

BYTE

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

Notes: -

UA_ConnectionGetStatus

BOOL

Execute

Done

BOOL

DWORD

ConnectionHdl

Busy

BOOL

TIME

Timeout

Error

BOOL

ErroID

DWORD

ConnectionStatus

ENUM

ServerState

ENUM

ServiceLevel

BYTE