I forgot to reply back but I found a way to do it without creating multiple DataReturn subs
Private Sub CLXDataReturned(ByVal sender As Object, ByVal e As Drivers.Common.PlcComEventArgs)
Dim PlcIp, PlcTag, PlcValue As String
Try
Dim DriverComm As AdvancedHMIDrivers.EthernetIPforCLXCom = CType(sender, AdvancedHMIDrivers.EthernetIPforCLXCom) This is the important part
PlcIp = DriverComm.IPAddress This is how I get the IP value
PlcTag = e.PlcAddress
PlcValue = e.Values(0).ToString()
comparePLCDataWithSQL(PlcIP, PlcTag, PlcValue)
Catch ex As Exception
SQLQuery.InsertInto4FieldsQuery("tblErrorLog", "IP", sender.IPAddress, "LogTime", Now.ToString("yyyy-MM-dd HH:mm:ss.fff"), "Error", ex.Message, "Tag", e.PlcAddress)
End Try
End Sub