8 Diagnosis

8.1 UA_ConnectionGetStatus

FB-Name UA_ConnectionGetStatus
This Function Block is used to get the connection status.
VAR_INPUT
BExecuteBOOLFB performs its task on rising edge on this input.
BConnectionHdlDWORDConnection handle.
BTimeoutTIMETime to response.
VAR_OUTPUT
BDoneBOOLFB has completed its task.
BBusyBOOLThe FB is not finished and new output values are to be expected.
BErrorBOOLSignals that an error has occurred within the FB.
BErrorIDDWORDError code.
BConnectionStatusENUMSee UAConnectionStatus. The outputs ServerState and ServiceLevel are only valid if the ConnectionStatus is UACS_Connected.
BServerStateENUMSee UAServerState. The ServerState is UASS_Unknown if the ConnectionStatus is not UACS_Connected.
BServiceLevelBYTEServiceLevel 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
BOOLExecuteDoneBOOL
DWORDConnectionHdlBusyBOOL
TIMETimeoutErrorBOOL
ErroIDDWORD
ConnectionStatusENUM
ServerStateENUM
ServiceLevelBYTE