AdvancedHMI Software
General Category => Support Questions => Topic started by: nzflex on July 03, 2018, 02:40:26 PM
-
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...
-
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
-
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
-
Most of the buttons are just 2 state reading a variable from the plc in each state ..
-
I should be able to create something later.
-
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 (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