I need to adjust a button in perspective to communicate with an OPC boolean tag. I need the value of the tag to always be false, only when I click it becomes true (when I stop clicking it returns the value to false).
You may need to first bind the component with the props.text property of the button
Then you add an onPointerDown event (ctrl+J) on your button wich write False in your specified tag
And an onPointerUp event wich write True in the tag
However I think it would be easier to simply toggle the state by clicking the button
2 Likes
Hi @Darci_Junior ,
What you're trying to achieve would be referred to as a momentary button.
See this topic, a momentary button is NOT recommended:
1 Like