Cristian Posted April 13, 2016 Report Share Posted April 13, 2016 Hi all, I have a meter control on a HMI which I want to change the fill color depending of Link value. for example set fill color to red when value is below 50 and set fill color to green when is equal or bigger. How can I do this? regards Link to comment Share on other sites More sharing options...
Alexander Posted April 13, 2016 Report Share Posted April 13, 2016 The fill color for a bar is not possible to dynamically change, but there is a way to accomplish what you need. Since it is possible to layer different elements on the HMI in UniLogic you can place multiple meters placed on top of each other. Each one being a different color. You can also use the hide bit on each element to hide the meters you do not wish to see. For example have the green meter showing normally. When the value is below 50, hide the green meter and then enable the red meter. Both meters will still be linked to the same tag value. 1 Link to comment Share on other sites More sharing options...
Saragani Posted April 14, 2016 Report Share Posted April 14, 2016 I'll add your request to the features request. I can't promise anything though. Link to comment Share on other sites More sharing options...
Cristian Posted April 14, 2016 Author Report Share Posted April 14, 2016 Thanks for the help, I will use differents elements for now but I hope future versions allow interact with HMI elements Link to comment Share on other sites More sharing options...
Saragani Posted January 23, 2017 Report Share Posted January 23, 2017 OK. I've implemented this feature for meters and tanks, on both HMI and Web Server. On Meters, this feature is enabled only on "Fill Solid" mode. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now