# Extract Bit Message out of Modbus

**URL:** <https://discourse.nodered.org/t/extract-bit-message-out-of-modbus/88571>\
**Category:** General\
**Created:** [9 June 2024 05:52 UTC](https://discourse.nodered.org/t/extract-bit-message-out-of-modbus/88571 "2024-06-09T05:52:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paddo5819](https://avatars.discourse-cdn.com/v4/letter/p/e68b1a/32.png) [@Paddo5819](https://discourse.nodered.org/u/Paddo5819)\
**Post date:** [9 June 2024 05:52 UTC](https://discourse.nodered.org/t/extract-bit-message-out-of-modbus/88571/1 "2024-06-09T05:52:14Z")

</div>

Hello everybode,

im using Node-Red for my knx system an i am really happy with it!  
One question:  
I have some Modbus devices and want to extract out of one stream the following:

The adress "0x010D" contains of 15 bits.  
I want to read the bit 3 with its mask 0x0008.  
How ist that possible?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [9 June 2024 05:59 UTC](https://discourse.nodered.org/t/extract-bit-message-out-of-modbus/88571/2 "2024-06-09T05:59:53Z")

</div>

You can do it manually in a function node or use a node I created for this very task: [node-red-contrib-buffer-parser (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-buffer-parser)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [7 September 2024 06:00 UTC](https://discourse.nodered.org/t/extract-bit-message-out-of-modbus/88571/3 "2024-09-07T06:00:43Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
