The DataSubscriber was designed to give a simple drag and drop method of using subscriptions and encapsulate their complexity. In your case, you will probably want to skip the DataSubscriber and go straight to subscribing to the data. Here is an example of how it is done:
'* Create a variable to hold the ID of the subscription for reference
Private SubscriptionID As Integer
'* Start the data subscription
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Try
SubscriptionID = ModbusRTUCom1.Subscribe("40001", 1, 500, AddressOf Subscribe_DataReceived)
Catch ex As Exception
MsgBox("Failed to subscribe. " & ex.Message)
End Try
End Sub
'* Handle the data received from a subscription
Private Sub Subscribe_DataReceived(sender As Object, e As Drivers.Common.PlcComEventArgs)
If e.PlcAddress = "40001" Then
Me.Text = e.Values(0)
End If
End Sub
'* Be sure to unsubscribe when no longer needed so driver will not continue to poll for this
Private Sub MainForm_FormClosing(sender As Object, e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
ModbusRTUCom1.Unsubscribe(SubscriptionID)
End Sub