Jump to content
Sign in to follow this  
Cristian

Change meter fill color from Ladder

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

  • Upvote 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...