Author Topic: Properties of CircularProgressBar component  (Read 881 times)

boldive

  • Newbie
  • *
  • Posts: 33
    • View Profile
Properties of CircularProgressBar component
« on: October 04, 2018, 06:49:38 PM »
Hello!

How to change font, color and position of Value and ValueSuffix elements?

To let PLC change Minimum and Maximum value I use
Code: [Select]
CircularProgressBar1.Minimum = EthernetIPforCLXCom1.Read("PLC_Tag1")
CircularProgressBar1.Maximum = EthernetIPforCLXCom1.Read("PLC_Tag2")


It works fine. However, if no connection to PLC then Visual Studio generates an error "Exception Unhandled" (No response from PLC).

Any ideas how to handle this error? It is hard to work on design if PLC is offline.

Thanks.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5267
    • View Profile
    • AdvancedHMI
Re: Properties of CircularProgressBar component
« Reply #1 on: October 04, 2018, 07:16:53 PM »
Edit the class and add these lines of code:

Public Property PLCAddressMinimum As String
Public Property PLCAddressMaximum As String

boldive

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Properties of CircularProgressBar component
« Reply #2 on: October 05, 2018, 08:32:23 AM »
Thank you Archie.

I am beginner in Visual Studio. Please guide me how to open a class.
In Solution Explorer under AdvancedHMIControls => Controls => CircularProgressBar component.
When it opens I don't see a logical place where to add those 2 lines of code.
However in line:    Inherits MfgControl.AdvancedHMI.Controls.CircularProgressBar if I right click on "CircularProgressBar" and then click on "Go to definition" then looks like the right Class is opens. For some reason it opens for view only, I can't edit.

Please advice how to do it in right way.

The question "How to change font, color and position of Value and ValueSuffix elements?"is still active.

Thanks

Phrog30

  • Guest
Re: Properties of CircularProgressBar component
« Reply #3 on: October 05, 2018, 09:10:08 AM »
Archie offers very good personalized training. It's very affordable and reasonable compared to other groups. I recommend you look into it.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5267
    • View Profile
    • AdvancedHMI
Re: Properties of CircularProgressBar component
« Reply #4 on: October 05, 2018, 11:17:48 AM »
Please guide me how to open a class.
In Solution Explorer under AdvancedHMIControls => Controls => CircularProgressBar component.
When it opens I don't see a logical place where to add those 2 lines of code.
Look for #Region "Properties" and place it just below that

boldive

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Properties of CircularProgressBar component
« Reply #5 on: October 07, 2018, 03:17:09 PM »
Thank you Archie, it works.