AdvancedHMI Software

General Category => Support Questions => Topic started by: Jaguar on July 01, 2022, 09:24:12 AM

Title: Entering negative value on default HMI keypad
Post by: Jaguar on July 01, 2022, 09:24:12 AM
I am using the default keypad to enter value in digital panel meter. Want to enter negative value. Noticed that the keypad does not have any button for negative sign.
Would appreciate your help or input!
Title: Re: Entering negative value on default HMI keypad
Post by: bachphi on July 06, 2022, 12:47:28 PM
Hint: Keypad min value
Title: Re: Entering negative value on default HMI keypad
Post by: Jaguar on July 08, 2022, 12:47:22 PM
I did that in properties of Digital panel meter, KeypadMinValue set to -50. That did not work.

Then went to Control folder and located the vb code of digital panel meter. Found this code,
Region "Keypad popup for data entry"
    Private KeypadPopUp As MfgControl.AdvancedHMI.Controls.Keypad"


Could not find any vb code of keypad separately. I stopped there.
Title: Re: Entering negative value on default HMI keypad
Post by: bachphi on July 08, 2022, 02:33:36 PM
What version are you using?
Worked for me with v399yBeta38.
Title: Re: Entering negative value on default HMI keypad
Post by: Jaguar on July 08, 2022, 03:09:38 PM
This is the version I see AdvancedHMIv399xR1
Title: Re: Entering negative value on default HMI keypad
Post by: bachphi on July 08, 2022, 04:53:22 PM
You are  brave enough to try the latest version, right?
Title: Re: Entering negative value on default HMI keypad
Post by: Jaguar on July 09, 2022, 08:18:07 PM
I can do that. Meanwhile, I searched the forum and found that Godra one time responded to similar question by others. Here what he wrote,
"Some controls might still be using that old keypad.

If you edit the code of the control then you can find the section where the "Keypad" is declared and just change it to "KeypadV2", save it and rebuild the solution. This KeypadV2 looks different than the one in your picture.

If it still doesn't allow you to enter negative numbers then try setting its KeypadMinValue and KeypadMaxValue properties."

I went to to DigitalPanelMeter.vb and changed  Private KeypadPopUp As MfgControl.AdvancedHMI.Controls.Keypad to keypadV2. Got build error. I think I did not understand what Godra meant.
Title: Re: Entering negative value on default HMI keypad
Post by: bachphi on July 10, 2022, 01:17:16 PM
Godra may have fallen victim to Covid-19, RIP brother.

Title: Re: Entering negative value on default HMI keypad
Post by: Godra on July 10, 2022, 02:00:36 PM
Thank you bachphi.

Build errors are probably caused by the fact that Jaguar is still using v399xR1.
In this case then try to compare the code of the existing controls that might have a different keypad.
Title: Re: Entering negative value on default HMI keypad
Post by: bachphi on July 10, 2022, 02:26:51 PM
Hey look, I brought back Godra.  I am glad you are still around!!!
Title: Re: Entering negative value on default HMI keypad
Post by: Godra on July 10, 2022, 02:30:18 PM
Jaguar,

just to make your work easier, you need to rely on Intellisense to show you what controls are available in the solution you are using - this normally pops up as soon as you would start deleting characters from the end of the line and get to the matching substrings.

Look up Intellisense on Google if you are not sure what it does.

Another thing you should do is work with a copy of your solution and once you know that changes might be working properly then apply them to the original solution.
Title: Re: Entering negative value on default HMI keypad
Post by: Godra on July 10, 2022, 02:37:11 PM
I will call this "the secrets of bachphi" where powerful spell was cast to bring back the undead.
Title: Re: Entering negative value on default HMI keypad
Post by: Jaguar on July 11, 2022, 05:12:54 PM
I downloaded, AdvancedHMIv399yBeta38. Noticed that in the toolbox, AdvancedHMIControls Components, where Digital Panel meters etc. are there, is missing. Should I have to add them?
Title: Re: Entering negative value on default HMI keypad
Post by: Jaguar on July 11, 2022, 05:53:37 PM
Never mind. Found them :)