# GetConnectionStatus

This function Functions are tools that are available in Spreadsheet for processing and analyzing acquisitions or other results. You can add functions to your Spreadsheet job to create tool chains and produce results for specific applications. is used to get the connection status of the specified communication protocol.

Inputs

Parameter | Description
Event | Specifies an event function that is set to capture the network error event. This parameter needs to be a reference to any event with a timestamp, for example, one of the following: A cell containing an Event function. A cell containing a Button function.
Protocol | Specifies which protocol is polled for a status update. 1 = EtherNet/IP 2 = PROFINET 100 = Default

Outputs

Returns | Returns the number of active connections of the specified communication protocol. If the protocol is functioning but has no active connections or the connection has failed, the function returns 0. The output returns #ERR if any of the input parameters are invalid.