# Strange problem toggling bits within a word

**URL:** <https://forum.inductiveautomation.com/t/strange-problem-toggling-bits-within-a-word/3164>\
**Category:** Archived Topics\
**Created:** [August 8, 2011, 8:48pm UTC](https://forum.inductiveautomation.com/t/strange-problem-toggling-bits-within-a-word/3164 "2011-08-08T20:48:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PenCapBlue](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@PenCapBlue](https://forum.inductiveautomation.com/u/PenCapBlue)\
**Post date:** [August 8, 2011, 8:48pm UTC](https://forum.inductiveautomation.com/t/strange-problem-toggling-bits-within-a-word/3164/1 "2011-08-08T20:48:11Z")

</div>

I have happened upon the unfortunate task of troubleshooting some code that I did not write.

Has anybody run into problems toggling bits within a word? For example, making TEST\_DINT.0 an outpout on an OTE. Of course I checked duplicate destructive instructions, and found no problem there.

The example above should change the value TEST\_DINT from a 0 to a 1 - however it is not.

I’m at a bit of a loss - anybody have any clues?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 8, 2011, 10:09pm UTC](https://forum.inductiveautomation.com/t/strange-problem-toggling-bits-within-a-word/3164/2 "2011-08-08T22:09:28Z")

</div>

Did you leave out the example? ![:scratch:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/76d1620bec252bfac07050c889ff5a91dc8a9c25.gif ":scratch:")

edit: Just noticed the forum this appeared in. If your question isn’t related to Ignition then ignore my confusion. 😃
