Author Topic: Momentary pushbutton  (Read 3543 times)

boldive

  • Newbie
  • *
  • Posts: 33
    • View Profile
Momentary pushbutton
« on: October 18, 2018, 03:14:27 PM »
Hello,

In my application I use momentary push buttons to control object movement on ControlLogix L30-ERMS.
When I press and hold button (holding with mouse click) on the development computer (where Visual Studio is installed) everything works fine. PLC bit is ON and object moves.
When I copy application on the Windows tablet (Teclast X80 Plus) nothing happen when I press button on the touchscreen. All basic indicators works fine on both PC and tablet. Which means communication driver works and able to talk to PLC.

Button properties have:
MaximumHoldTine: 30000
MinimumHoldTime: 500 
OutputType: MomentarySet

Also, I would like to highlight puschbutton using propertie PLCAddressHighlightX. PLC bit in this field does nothing. Button doesn't change color.

Any ideas what can be wrong?

Thanks.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5266
    • View Profile
    • AdvancedHMI
Re: Momentary pushbutton
« Reply #1 on: October 18, 2018, 03:20:10 PM »
Is your tablet using Windows 10 with the default Windows touch screen driver? If so, buttons click on release because of gesture handling.

boldive

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Momentary pushbutton
« Reply #2 on: October 18, 2018, 03:40:56 PM »
Tablet uses Windows 10 Home v.1511.

I am sorry, which output type I need to choose? Or it something else?

Thanks

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5266
    • View Profile
    • AdvancedHMI
Re: Momentary pushbutton
« Reply #3 on: October 18, 2018, 04:04:21 PM »
You will either need to find a setting to make your touch screen enable mouse emulation or turn off gesturing. The other option is to find the manufacturer's touch screen driver

boldive

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Momentary pushbutton
« Reply #4 on: October 18, 2018, 04:12:44 PM »
Thank you Archie, I will work on it and update with result.

Any ideas about:
" I would like to highlight puschbutton using propertie PLCAddressHighlightX. PLC bit in this field does nothing. Button doesn't change color."

Thanks

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5266
    • View Profile
    • AdvancedHMI
Re: Momentary pushbutton
« Reply #5 on: October 18, 2018, 04:43:35 PM »
Any ideas about:
" I would like to highlight puschbutton using propertie PLCAddressHighlightX. PLC bit in this field does nothing. Button doesn't change color."
What is your OutputType set to?

boldive

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Momentary pushbutton
« Reply #6 on: October 18, 2018, 04:51:26 PM »
In Windows 10 under: Control Panel => Hardware and Sound => Pen and Touch : Touch Action - Right-Click
Highlight "Press and hold" => click on Settings and on new window deselect "Enable press and hold for right-clicking".

So, when I press a button on the tablet Windows emulates Mouse Right Click. It is very useful inside windows but useless inside HMI Application.

Is it any chance to disable this option "Enable press and hold for right-clicking" inside AdvancedHMI and enable it before "Exit"?

boldive

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Momentary pushbutton
« Reply #7 on: October 18, 2018, 04:52:38 PM »
What is your OutputType set to?

OutputType: MomentarySet

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5266
    • View Profile
    • AdvancedHMI
Re: Momentary pushbutton
« Reply #8 on: October 18, 2018, 05:11:47 PM »
In Design Mode in Visual Studio, if you select the button and set the Highlight property to True, what happens?

boldive

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Momentary pushbutton
« Reply #9 on: October 18, 2018, 05:50:24 PM »
Nothing happens. Regardless of Highlight True or False button doesn't change color.

boldive

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Momentary pushbutton
« Reply #10 on: October 18, 2018, 05:54:35 PM »
Sorry,

You mean Highlight option has to be True to activate PLCAddressHighlightX .
I will check it when come online with PLC.

Thank you Archie for help!

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5266
    • View Profile
    • AdvancedHMI
Re: Momentary pushbutton
« Reply #11 on: October 18, 2018, 06:50:52 PM »
You mean Highlight option has to be True to activate PLCAddressHighlightX .
No. I wanted you to check to see that it can change to HighlightColor in design mode.

What is the HighlightColor property set to? What is BackColor set to? What version of AdvancedHMI are you using?
« Last Edit: October 18, 2018, 06:52:25 PM by Archie »

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
Re: Momentary pushbutton
« Reply #12 on: October 18, 2018, 10:09:20 PM »
boldive,

if you are using the BasicButton control then you might try using its modified version posted here:

https://www.advancedhmi.com/forum/index.php?topic=1916.msg10739#msg10739

boldive

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Momentary pushbutton
« Reply #13 on: October 22, 2018, 08:15:20 PM »
No. I wanted you to check to see that it can change to HighlightColor in design mode.

What is the HighlightColor property set to? What is BackColor set to? What version of AdvancedHMI are you using?

In design mode false/true in Highlight doesn't change anything. Screenshot is attached. BackColor is set to Black.
AdvancedHMI v.399x

boldive

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Momentary pushbutton
« Reply #14 on: October 22, 2018, 08:42:57 PM »
if you are using the BasicButton control then you might try using its modified version posted here:

https://www.advancedhmi.com/forum/index.php?topic=1916.msg10739#msg10739

Thanks for advise. I am a beginner in Visual Studio. How I can integrate BasicButton.vb into Toolbox?

When I go to Main Menu Tools => Choose Toolbox Items... System.Activities Components tab is not available to add control into toolbox.