Hello,
We're trying to read tag from PLC and save data to text file. But the speed assign to PLC doesn't meet when reading to the AdvancedHMI. When we open the file the record shows that the number jump 5 or 6 counts, we need the record of +1 only eg. 1,2,3,4,5,6... but for now it is 1,7,12,18..... I already change the PollRateOveride of the driver and apply below code that I've seen on this forum. Please guide me on this issue, I'm new in PLC and AdvancedHMi but I know VB. Thank you
Private Sub EthernetIPforCLXCom1_DataReceived(sender As Object, e As Drivers.Common.PlcComEventArgs) Handles EthernetIPforCLXCom1.DataReceived
Dim MyDriver As New EthernetIPforCLXCom
MyDriver.IPAddress = "192.168.1.220"
Dim MyValue As String
MyValue = MyDriver.Read("Tag_test")
Label2.Text = MyValue
End Sub
Private Sub DataSubscriber1_DataChanged(sender As Object, e As Drivers.Common.PlcComEventArgs) Handles DataSubscriber1.DataChanged
DigitalPanelMeter2.Value = e.Values(0)
End Sub
I've seen that there are code using EthernetIPforCLXCom.BeginReadMultiple(Tag)
but it doesn't work fine with me. Can anyone help me on this? Thanks in advance