AdvancedHMI Software
General Category => Support Questions => Topic started by: boldive 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
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.
-
Edit the class and add these lines of code:
Public Property PLCAddressMinimum As String
Public Property PLCAddressMaximum As String
-
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
-
Archie offers very good personalized training. It's very affordable and reasonable compared to other groups. I recommend you look into it.
-
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
-
Thank you Archie, it works.