5101
Support Questions / Re: Cannot Read with ReadInt or ReadAny
« on: June 18, 2013, 06:39:06 PM »
I will have to try to replicate this. Do you have other controls on the screen that are updating, or are you just reading the values using your code?
You can also try to read the values asynchronously by setting the property AsyncMode to true, using ReadAny, then create a DataReceived event handler.
You can also try to read the values asynchronously by setting the property AsyncMode to true, using ReadAny, then create a DataReceived event handler.
Code: [Select]
Private Sub EthernetIPforPLCSLCMicroComm1_DataReceived(sender As System.Object, e As MfgControl.AdvancedHMI.Drivers.Common.PlcComEventArgs) Handles EthernetIPforPLCSLCMicroComm1.DataReceived
If e.PlcAddress = "L11:1" Then
txtOffset1.Text = e.Values(0)
End If
End Sub