# Getting Digital I/O from a modbus TCP device

**URL:** <https://discourse.nodered.org/t/getting-digital-i-o-from-a-modbus-tcp-device/19442>\
**Category:** General\
**Created:** [21 December 2019 21:40 UTC](https://discourse.nodered.org/t/getting-digital-i-o-from-a-modbus-tcp-device/19442 "2019-12-21T21:40:21Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [27 December 2019 10:15 UTC](https://discourse.nodered.org/t/getting-digital-i-o-from-a-modbus-tcp-device/19442/21 "2019-12-27T10:15:43Z")

</div>

If you are looking to just add to an existing node - I would also encourage you to work with the original author to enhance the one node rather than fragment off lots of similar versions. Of course what you are adding may not be acceptable to the original author so you may have to go your own fork - but always worth asking in the first place.

E.G. passing through topic (and other properties) ought to be a fix in the original node as that is something we encourage as a basic capability.

---

<div class="post-metadata">

**Author:** ![gemini86](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gemini86/32/70967_2.png) [@gemini86](https://discourse.nodered.org/u/gemini86)\
**Post date:** [27 December 2019 18:33 UTC](https://discourse.nodered.org/t/getting-digital-i-o-from-a-modbus-tcp-device/19442/22 "2019-12-27T18:33:07Z")

</div>

I've made an update to node-red-contrib-bitunloader that allows it to parse the property field, so `payload.obj[1]` will work now. I've tested it with lots of different nested objects/arrays and it seems to be pretty solid and if there's an issue, the error is clear enough to tell whats going on.

For further development, I'll DM you.

---

<div class="post-metadata">

**Author:** ![adk\_MechETech](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@adk\_MechETech](https://discourse.nodered.org/u/adk_MechETech)\
**Post date:** [27 December 2019 18:54 UTC](https://discourse.nodered.org/t/getting-digital-i-o-from-a-modbus-tcp-device/19442/23 "2019-12-27T18:54:23Z")

</div>

That sounds like it will work, I'll play with it tonight a bit.

[Previous page](https://discourse.nodered.org/t/getting-digital-i-o-from-a-modbus-tcp-device/19442.md?page=1)
