Now using version 3.4, I have 26 text box controls corresponding to the 26 parameters I desire to read from the PLC. Periodically, without changing the value in the PLC, 0 is returned instead of the value. I'm using a button to initiate the read.
Each of the 26 reads are similar to this:
Dim addOffset1 As String = "L11:1"
Dim myStr1() As String
myStr1 = EthernetIPforPLCSLCMicroComm1.ReadSynchronous(addOffset1, 1)
txtOffset1.Text = myStr1(0)
I am using Windows 7-64bit and VS2010. I get the actual value, say 4400 or 0. Where the 4400 is what I expect and the 0 is not what I expect.
Also, I disable the button after I press it and after the 26 reads, I re-enable the button.
Thank you.