# GetConnectionStatus

This function is used to get the connection status of the specified communication protocol.

## GetConnectionStatus Inputs

Parameter | Description
Event | Specifies an event function that is set to capture the network error event. This parameter must be a reference to one of the following: The Image data structure in cell A0, containing the AcquireImage function. A cell containing an Event function. A cell containing a Button function.
Protocol | Specifies which protocol will be polled for a status update. 1 = EtherNet/IP 2 = PROFINET 100 = Default

## GetConnectionStatus Outputs

Returns | The connection status of the specified communication protocol, or #ERR if any of the input parameters are invalid.