Using a button to trigger a tag

Wondering what people use to trigger a tag with a script. I want to use a button component to turn a plc tag on and off. I've been using a NOT script to look at the last state of the tag and change it.

A tag binding….? A script should really be your last choice. Unless of course you’re referring to an expression as a script but that isn’t the same thing at all.

Seriously though, why not a tag binding?

NOTE: There are very good reasons why Perspective doesn’t have a momentary push button object. If this is for some type of control you should probably reconsider your approach.

1 Like

If you have a boolean tag and want to change its value... a bidirectional tag binding on a checkbox seems to be a pretty solid option.