Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Buttons with two Var

alverman
2017-02-25
2017-02-25
  • alverman - 2017-02-25

    Good morning,
    in the display I would need a button that shows also the state of an input.
    Practically it should be a button with two variables

    In the set of the buttons does not exist, you have any advice for me to make it happen?

    Thank you very much, Alberto

     
  • chris.beard - 2017-02-25

    Under the visualisation, instead of using a button use an object and then on that objects properties there is an option for saying what happens on mouse click. You can then choose to write lines of ST code. In that code set a routine to set both inputs true of false.

    Alternatively if you want to use a button you will need to create another variable which is linked to the button and in turn sets the two other variables true or false.

    Sent from my SM-N9005 using Tapatalk

     
  • alverman - 2017-02-25

    chris.beard hat geschrieben:
    Under the visualisation, instead of using a button use an object and then on that objects properties there is an option for saying what happens on mouse click. You can then choose to write lines of ST code. In that code set a routine to set both inputs true of false.
    Alternatively if you want to use a button you will need to create another variable which is linked to the button and in turn sets the two other variables true or false.
    Sent from my SM-N9005 using Tapatalk

    Thanks, but I have resolved with hidden input over the lamp

     

Log in to post a comment.