Author Topic: Problems with Digital PanelMeter  (Read 2257 times)

aquilmustafa

  • Full Member
  • ***
  • Posts: 121
    • View Profile
Problems with Digital PanelMeter
« 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

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Problems with Digital PanelMeter
« Reply #1 on: January 01, 2016, 04:06:59 AM »
Try going to the code behind the form and remove the default code that stops the update on visible change.

aquilmustafa

  • Full Member
  • ***
  • Posts: 121
    • View Profile
Re: Problems with Digital PanelMeter
« Reply #2 on: January 02, 2016, 06:28:31 AM »
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

bachphi

  • Hero Member
  • *****
  • Posts: 642
    • View Profile
Re: Problems with Digital PanelMeter
« Reply #3 on: January 06, 2016, 10:01:17 PM »
in the main form , comment out  AdvancedHMIDrivers.Utilities.StopComsOnHidden(components, Me).
Have you tried with less? set 10 each on each tab?
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

aquilmustafa

  • Full Member
  • ***
  • Posts: 121
    • View Profile
Re: Problems with Digital PanelMeter
« Reply #4 on: January 21, 2016, 03:54:34 AM »
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
« Last Edit: January 28, 2016, 12:19:07 PM by aquilmustafa »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Problems with Digital PanelMeter
« Reply #5 on: January 21, 2016, 07:05:21 AM »
Did you remove or comment out this block of code:

Code: [Select]
    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

aquilmustafa

  • Full Member
  • ***
  • Posts: 121
    • View Profile
Re: Problems with Digital PanelMeter
« Reply #6 on: January 21, 2016, 09:10:21 AM »
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
« Last Edit: January 21, 2016, 10:21:18 AM by aquilmustafa »

aquilmustafa

  • Full Member
  • ***
  • Posts: 121
    • View Profile
Re: Problems with Digital PanelMeter
« Reply #7 on: January 29, 2016, 05:43:44 AM »
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.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Problems with Digital PanelMeter
« Reply #8 on: January 29, 2016, 07:45:55 AM »
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?