Author Topic: Multistate Push Buttons - What is AdvancedHMI's Alternative / Replacement  (Read 1462 times)

nzflex

  • Newbie
  • *
  • Posts: 7
    • View Profile
Hey guys, I'm still going through converting an old PanelView app through to AdvancedHMI, gotta say AdvancedHMI looks so much better !!! Anyways, hopefully I can pull this off ok with Screenshots...

In the existing PanelView App, there are plenty of these buttons... which read a tag and display a message based on the value returned, now generally I have been using MessageDisplayByValue to do the same thing, but wondering if anyone knows how I can have a button doing the same sort of thing AND to add to it read the value from the PLC tag and have it within the text...




Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
Check this topic for a button that can display value:

https://www.advancedhmi.com/forum/index.php?topic=1948.0

Also check this project since Phrog30 has included some custom controls (Multistate being one of them):

https://www.advancedhmi.com/forum/index.php?topic=2079.0
« Last Edit: July 03, 2018, 03:02:33 PM by Godra »

Phrog30

  • Guest
So it sounds like you want embedded variables.  I think the controls I have referenced are the only controls that will do that.  However, I never added it to a button.  Do you actually need a multistate button, or just a simple two state button that allows an embedded variable for each state?  Personally, I've never used a multistate button and don't know what scenario one would.

James

nzflex

  • Newbie
  • *
  • Posts: 7
    • View Profile
Most of the buttons are just 2 state reading a variable from the plc in each state ..

Phrog30

  • Guest
I should be able to create something later.

Phrog30

  • Guest
Here is an updated app that allows embedded variables in the basic button...
https://drive.google.com/file/d/1AD2C6AOGMAlO5yvmgak-uV_Wrg3Kc45y/view?usp=sharing

I tested with Modbus sim and CLX.  I tried full length and partial strings in CLX, it seems to work well.

James
« Last Edit: July 03, 2018, 10:49:24 PM by Phrog30 »