Momentary Button Question

Ok so I am new at all this and I am sure I am doing something wrong so that’s why I am asking yall.

So I created a momentary push button that when pressed will latch in an output in the PLC that controls lights. So I bound the Control Value to a PLC tag called hmi_LightsOn. When I press and hold the button I can see the Control Value change to 1 and remain 1 until a let go of the button but the tag in the PLC never changes. If I change the tag to be bidirectional under the options of the button it works though. Any idea what I am doing wrong?

1 Like

You are actually doing things exactly right. The buttons (and a lot of other components as well) do not automatically have the ability to write to tags. They only display the tag information. The Bidirectional setting allows a component like the button to be bidirectional, in that it can both read and write to a tag. So you did nothing wrong, and yes you do have to set the button to bidirectional to get it to write the value to the tag.

1 Like