# How to use individual bit of a word tag

**URL:** <https://forum.inductiveautomation.com/t/how-to-use-individual-bit-of-a-word-tag/10081>\
**Category:** Ignition\
**Created:** [June 2, 2015, 11:53am UTC](https://forum.inductiveautomation.com/t/how-to-use-individual-bit-of-a-word-tag/10081 "2015-06-02T11:53:28Z")\
**Posts on this page:** 1\
**Showing post:** 15

<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:** [April 28, 2024, 8:35pm UTC](https://forum.inductiveautomation.com/t/how-to-use-individual-bit-of-a-word-tag/10081/15 "2024-04-28T20:35:50Z")

</div>

> [@Troubles making a Derived Boolean Tag work as a mask for a Short Tag](https://forum.inductiveautomation.com/t/troubles-making-a-derived-boolean-tag-work-as-a-mask-for-a-short-tag/15203/2):
>
> I’ve made it work using the following expressions: Read: (toInt({source}) \>\> N) & 1 Write: if({value}, toInt({source}) | (1 \<\< N), toInt({source}) & ~(1 \<\< N)) Where N will vary based on the bit number (0-15 for a Modbus register). You should also turn on the “OPC Optimistic Writes” flag for the scan class these tags belong to or you’re going to have a race condition if you try to write to multiple bits in the same word too quickly.

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-to-use-individual-bit-of-a-word-tag/10081)._
