Changing Component Background Colors from Status in PLC


Recommended Posts

Hi - Sorry for the very simple question (which i'm sure has been covered before - no luck finding it though). But I'd like to change the background color of a Variable Value Component based on a  status tag from my PLC.

The expression in the Variable Value Component relates to the value displayed and the foreground/background colors? I'm not sure how I can isolate the foreground/background colors on a condition/event that DAQ isn't aware of and can happen at anytime.

I'm aware I'll probably need to do some scripting but am just beginning my exposure wtih DAQ.

Any help would be fantastic.

Link to comment
Share on other sites

You can't do it with one component without scripting.  It would be easiest to just use two components, a variable value one for the number, and then a Symbol component for the background.  Then move the symbol component behind the variable value one.  The symbol component works even if you don't have any symbols, provided you have colors specified.

Link to comment
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.