Hi again,
So, bit of progress.
Runtime I create my EthernetIPforCLXCom Driver. (Drv_Test)
Runtime I create my DataSubscriber2. (DS_Test)
DS_Test.ComComponent = Drv_Test
I can also create the event handler
AddHandler DS_Test.DataChanged, AddressOf DS_Test_DataChanged
Private Sub DS_Test_DataChanged(sender As Object, e As MfgControl.AdvancedHMI.Drivers.Common.PlcComEventArgs)
ProcessIncomingData(e)
End Sub
When the data changes the event handler fires.
In parameter 'e' I can see the PLC memory location and the changed data.
What I cannot determine is which Driver triggered it. (i.e. Drv_Test)
I can see the IP address of the triggering driver, which is indeed unique in this instance, but *MAY* not always be.
Any idea's here?
Alternative would be to pre-build many DS_Test_DataChanged() handlers with different names up to the maximum allowed different PLC's as per project scope, but I would far rather just have one and ID the triggering driver.