AdvancedHMI Software

General Category => Support Questions => Topic started by: mgaudio on July 08, 2014, 11:49:39 AM

Title: Color change on click
Post by: mgaudio on July 08, 2014, 11:49:39 AM
Hey Guys,

I bought the basic label manual and the button/meter pack, and I see how to add code to change the color of text etc. based on a value, but what would I use to change a button color
based on whether or not it has been clicked/the value of the bit in the plc. (the value of the bit in the plc would be better).

I just want a button to show the state basically.
Title: Re: Color change on click
Post by: mgaudio on July 08, 2014, 12:35:47 PM
I guess I actually figured out I can do some of this with the pilot light. the only thing I would like is the pilot light to read the state of the bit on start up.

Im guessing I enter something into the PLCAddressValue field? 

I have the pilot light controlling B3:0/1  by PLCAddressClick.
Title: Re: Color change on click
Post by: Archie on July 08, 2014, 01:28:18 PM
You are correct, the PLCAddressValue will tell which address in the PLC determines whether the pilot light is on or off