# Error toggling a bit

**URL:** <https://forum.inductiveautomation.com/t/error-toggling-a-bit/37735>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [August 14, 2020, 4:04pm UTC](https://forum.inductiveautomation.com/t/error-toggling-a-bit/37735 "2020-08-14T16:04:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dfillion](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@dfillion](https://forum.inductiveautomation.com/u/dfillion)\
**Post date:** [August 14, 2020, 4:04pm UTC](https://forum.inductiveautomation.com/t/error-toggling-a-bit/37735/1 "2020-08-14T16:04:33Z")

</div>

I am working with a benshaw mxde3 module, and having some issues.  
I can read all values just fine, but having issues writing.  
The control values are all bits, and from the research I have do, this device does not support “MaskWriteRegister” therefore I cannot easily modify any bits.

I did find an old post from 2010, that had a script to do the job ([http://forum.inductiveautomation.com/t/modbus-ua/2159](http://forum.inductiveautomation.com/t/modbus-ua/2159)), and I can now toggle bit values.

But when I toggle a bit, i get the following error.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/c/bc3c66f8880c914f6ef14d25c35598a12a5a994d.png)

even though it has successfully written the info.

---

<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 14, 2020, 4:06pm UTC](https://forum.inductiveautomation.com/t/error-toggling-a-bit/37735/2 "2020-08-14T16:06:12Z")

</div>

Are there any errors in the Ignition gateway logs?

---

<div class="post-metadata">

**Author:** ![dfillion](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@dfillion](https://forum.inductiveautomation.com/u/dfillion)\
**Post date:** [August 14, 2020, 4:08pm UTC](https://forum.inductiveautomation.com/t/error-toggling-a-bit/37735/3 "2020-08-14T16:08:20Z")

</div>

I get these 2 entries in the log everytime.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/2/d277acdfc552c260d6bf84ce002a25fbbb841dbc.png)

---

<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 14, 2020, 4:13pm UTC](https://forum.inductiveautomation.com/t/error-toggling-a-bit/37735/4 "2020-08-14T16:13:37Z")

</div>

Looks like even though the device is accepting the write it’s not responding to the request, either at all, or in time. You could maybe use Wireshark to verify that this is what’s happening but there’s not much you can do on the Ignition side about it.

---

<div class="post-metadata">

**Author:** ![dfillion](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@dfillion](https://forum.inductiveautomation.com/u/dfillion)\
**Post date:** [August 14, 2020, 4:14pm UTC](https://forum.inductiveautomation.com/t/error-toggling-a-bit/37735/5 "2020-08-14T16:14:27Z")

</div>

Thank you!
