Archie, I played around with a timer but this didn't seem to work reliably for me because the tick event may not be raised when an event occurs which results in nothing being processed. I would like to explore the background worker component but not sure how to incorporate its DoWork sub if the BeginRead methods have to be in the ModbusTCPCom1_DataReceived sub. Sorry for the basic .net question, but how do I utilize both these subs? As I understand it I need to run my code in the DoWork but the values come from the DataReceived sub?!?!?!?!? Thanks for the education:)
Private Sub bwEventData_DoWork(sender As Object, e As System.ComponentModel.DoWorkEventArgs) Handles bwEventData.DoWork
??
Public Sub ModbusTCPCom1_DataReceived(sender As Object, e As Drivers.Common.PlcComEventArgs) Handles ModbusTCPCom1.DataReceived
ModbusTCPCom1.BeginRead("40801",5)