Author Topic: Color change on click  (Read 1713 times)

mgaudio

  • Newbie
  • *
  • Posts: 9
    • View Profile
Color change on click
« 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.

mgaudio

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Color change on click
« Reply #1 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.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5317
    • View Profile
    • AdvancedHMI
Re: Color change on click
« Reply #2 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