AdvancedHMI Software
General Category => Support Questions => Topic started by: aquilmustafa on December 31, 2015, 06:21:40 AM
-
Hey,
I have a Tab control in my Application. 1st tab contains 60 Pilot Lights which are working all right. 2nd tab contains 60 DigitalPanelmeter which gets updated only at the startup same problem with 3rd tab where 60 DigitalPanelmeter gets updated only at startup.
Rest everything works fine. Please suggest a solution
-
Try going to the code behind the form and remove the default code that stops the update on visible change.
-
Try going to the code behind the form and remove the default code that stops the update on visible change.
Could you please elaborate what needs to be deleted I'm a little bit confused
-
in the main form , comment out AdvancedHMIDrivers.Utilities.StopComsOnHidden(components, Me).
Have you tried with less? set 10 each on each tab?
-
Hey guys i did everything. I even changed the look and added only six Basic labels and 6 Digital Panel Meter but same Problem persists. I've even tried using Data Subscriber but I'm still facing the same Problem. Never faced the problem of this type before with any of the controllers.
The important thing is that the Digital Signal allotted to Pilot Light are working just fine
Variable Addresses are between 406501 to 407908
-
Did you remove or comment out this block of code:
Private Sub Form_VisibleChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.VisibleChanged
'* Do not start comms on first show in case it was set to disable in design mode
If NotFirstShow Then
AdvancedHMIDrivers.Utilities.StopComsOnHidden(components, Me)
Else
NotFirstShow = True
End If
End Sub
-
Hey Archie,
Yes i completely deleted that part of the code from my form.
The P.L.C that I'm using is Fuji WSZ-60 MCT2-D24 with MODBUS-RTU Drivers for connectivity
I'm using AdvancedHMI 3.99-a.1
-
Hey Archie,
I have got the solution to my problem. AHMI would read half the data and leave other half. I tried using DigitalPanelMeter, Basic Labels and etc but could not resolve the issue. Finally after trying everything I had only 1 thing left to do, so I increased the poll rate of the MODBUS RTU Driver and to my amazement the software started working Fine.
What I deduced from my experience was that since AHMI was regularly pinging for the data and response time of the PLC was way to low than that of AHMI thus it use to get half the data and reply back. After increasing the Pollrate Override to 15 secs All the data started coming smoothly. Please correct me if I'm wrong.
-
15 seconds (15000ms) is extremely slow. Unless your device cannot handle rapid consecutive requests, it sounds like there is something else wrong that this masks over.
The driver works by attempting to evenly spread the requests across the PollRateOverride. If all of the requests take longer than the PollRateOverride, then it will send another request immediately after a response from the previous request to read as fast as possible. Could your device not handle this properly?