# 2 State Toggle cannot change two states

**URL:** <https://forum.inductiveautomation.com/t/2-state-toggle-cannot-change-two-states/63849>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [September 7, 2022, 6:27pm UTC](https://forum.inductiveautomation.com/t/2-state-toggle-cannot-change-two-states/63849 "2022-09-07T18:27:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mai\_Watanabe](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@Mai\_Watanabe](https://forum.inductiveautomation.com/u/Mai_Watanabe)\
**Post date:** [September 7, 2022, 6:27pm UTC](https://forum.inductiveautomation.com/t/2-state-toggle-cannot-change-two-states/63849/1 "2022-09-07T18:27:07Z")

</div>

I use 2state toggles.  
However I can’t change state1 to state2 although I click buttons.  
I tag Control vaue and indicator value with the same tag, but I’m not sure what this value mean.  
For example, when the value of the tag B is 1, it is in state 2, and when the value of B is 0, it is in state 1.If I press the button at state 1, the value of B will automatically change, and I want to display the button in state 2. I’ve just started Ignition Designer and there are many things I don’t understand.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [September 7, 2022, 6:30pm UTC](https://forum.inductiveautomation.com/t/2-state-toggle-cannot-change-two-states/63849/2 "2022-09-07T18:30:00Z")

</div>

What are the `State 1 Value` and `State 2 Value` set to?

---

<div class="post-metadata">

**Author:** ![Mai\_Watanabe](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@Mai\_Watanabe](https://forum.inductiveautomation.com/u/Mai_Watanabe)\
**Post date:** [September 7, 2022, 6:34pm UTC](https://forum.inductiveautomation.com/t/2-state-toggle-cannot-change-two-states/63849/3 "2022-09-07T18:34:30Z")

</div>

For State1 and State2, the initial values of 0,1 are entered.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [September 7, 2022, 6:39pm UTC](https://forum.inductiveautomation.com/t/2-state-toggle-cannot-change-two-states/63849/4 "2022-09-07T18:39:18Z")

</div>

When you are in State 2 and the button is clicked, then the State 1 Value is written to the control value. If you are in State 1 and the button is clicked, then the State 2 Value is written to the control value.

[https://docs.inductiveautomation.com/display/DOC81/Vision+-+2+State+Toggle](https://docs.inductiveautomation.com/display/DOC81/Vision+-+2+State+Toggle)

If I understood your issue, when you click the button, the control value changes but the state doesn’t update. Is that correct?

---

<div class="post-metadata">

**Author:** ![Mai\_Watanabe](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@Mai\_Watanabe](https://forum.inductiveautomation.com/u/Mai_Watanabe)\
**Post date:** [September 7, 2022, 6:46pm UTC](https://forum.inductiveautomation.com/t/2-state-toggle-cannot-change-two-states/63849/5 "2022-09-07T18:46:08Z")

</div>

Right. When I click the button, the State Value and the Control Value are linked, but the display and state of the button do not change from state 1 to state 2, so even if I click the button twice, it will not return to the original state.
