# Writing to a tag bit

**URL:** <https://forum.inductiveautomation.com/t/writing-to-a-tag-bit/53498>\
**Category:** Ignition\
**Created:** [November 26, 2021, 6:39pm UTC](https://forum.inductiveautomation.com/t/writing-to-a-tag-bit/53498 "2021-11-26T18:39:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![beckya](https://avatars.discourse-cdn.com/v4/letter/b/b5a626/32.png) [@beckya](https://forum.inductiveautomation.com/u/beckya)\
**Post date:** [November 26, 2021, 6:39pm UTC](https://forum.inductiveautomation.com/t/writing-to-a-tag-bit/53498/1 "2021-11-26T18:39:57Z")

</div>

Hello,

I have been able to address and add the OPC tag bit and I have a good quality tag. I have tried to write to the tag by changing the value from 0 to 1 as an Integer tag or by changing it to a boolean tag and changing the boolean to true. Neither of these work and I don’t get any errors, it just doesn’t do anything. For example, I write a 1 and hit enter and it continues to display 0. Or I click on the boolean box to change it to true and it just stays the same after clicking it. I can read the tags but I cannot write to them from the tag browser. Is there anything else I can try?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 26, 2021, 6:47pm UTC](https://forum.inductiveautomation.com/t/writing-to-a-tag-bit/53498/2 "2021-11-26T18:47:55Z")

</div>

This is common for lame Modbus devices that don’t support the standard “masked write” operation. In such devices, you can only (safely) write to complete words. When the mask write fails, there’s typically a corresponding error in the gateway log. Some related topics, with racy work-arounds:

[https://forum.inductiveautomation.com/search?q=modbus%20masked%20write](https://forum.inductiveautomation.com/search?q=modbus%20masked%20write)

---

<div class="post-metadata">

**Author:** ![beckya](https://avatars.discourse-cdn.com/v4/letter/b/b5a626/32.png) [@beckya](https://forum.inductiveautomation.com/u/beckya)\
**Post date:** [November 26, 2021, 7:42pm UTC](https://forum.inductiveautomation.com/t/writing-to-a-tag-bit/53498/3 "2021-11-26T19:42:47Z")

</div>

Sorry I forgot to mention this is using a Allen-Bradley Logix Driver

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 26, 2021, 8:06pm UTC](https://forum.inductiveautomation.com/t/writing-to-a-tag-bit/53498/4 "2021-11-26T20:06:02Z")

</div>

What is the base type of the tag? Are there gateway log entries? { Share more details. }

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 26, 2021, 8:07pm UTC](https://forum.inductiveautomation.com/t/writing-to-a-tag-bit/53498/5 "2021-11-26T20:07:48Z")

</div>

Also: have you set your designer connection mode to Read-Write?

---

<div class="post-metadata">

**Author:** ![beckya](https://avatars.discourse-cdn.com/v4/letter/b/b5a626/32.png) [@beckya](https://forum.inductiveautomation.com/u/beckya)\
**Post date:** [November 26, 2021, 9:04pm UTC](https://forum.inductiveautomation.com/t/writing-to-a-tag-bit/53498/6 "2021-11-26T21:04:15Z")

</div>

I checked and there are no gateway logs when I tried to write to it. The designer is in read/write when trying to write to it. The base tag data type is BOOL decimal style and the bit is SINT binary style.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/b/3b88b826e00a113b9b66fbbda92364db16f0eca7.jpeg)

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [November 26, 2021, 9:24pm UTC](https://forum.inductiveautomation.com/t/writing-to-a-tag-bit/53498/7 "2021-11-26T21:24:31Z")

</div>

You can’t write to outputs. Even if you could, I’d avoid addressing IO directly.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 27, 2021, 12:56am UTC](https://forum.inductiveautomation.com/t/writing-to-a-tag-bit/53498/8 "2021-11-27T00:56:29Z")

</div>

You can only write to Logix outputs if:

- The tag in Logix is set to external access == read/write, and
- No logic in the PLC is writing to that tag.
