node-red-contrib-bit example

With this package you get two nodes to split 16Bit or 32Bit into single Bit outputs.

[{"id":"c0212fbb.688f6","type":"bit-simple-sixteen","z":"ed2e837d.7e8a4","name":"","x":630,"y":40,"wires":[["25fd5991.74e476"]]},{"id":"a0ddb555.94832","type":"bit-sixteen","z":"ed2e837d.7e8a4","name":"","x":627.5,"y":200,"wires":[["e3e14b9d.1ceb8"],["e3e14b9d.1ceb8"],["e3e14b9d.1ceb8"],["e3e14b9d.1ceb8"],["e3e14b9d.1ceb8"],["e3e14b9d.1ceb8"],["e3e14b9d.1ceb8"],["e3e14b9d.1ceb8"],["e3e14b9d.1ceb8"],["e3e14b9d.1ceb8"],["e3e14b9d.1ceb8"],["e3e14b9d.1ceb8"],["e3e14b9d.1ceb8"],["e3e14b9d.1ceb8"],["e3e14b9d.1ceb8"],["e3e14b9d.1ceb8"]]},{"id":"3e38f85f.c7a088","type":"inject","z":"ed2e837d.7e8a4","name":"","topic":"","payload":"3","payloadType":"num","repeat":"","crontab":"","once":false,"x":390,"y":140,"wires":[["a0ddb555.94832","c0212fbb.688f6"]]},{"id":"e3e14b9d.1ceb8","type":"debug","z":"ed2e837d.7e8a4","name":"","active":false,"console":"false","complete":"false","x":850,"y":200,"wires":[]},{"id":"f57519c9.618aa8","type":"inject","z":"ed2e837d.7e8a4","name":"","topic":"","payload":"8192","payloadType":"num","repeat":"","crontab":"","once":false,"x":390,"y":200,"wires":[["a0ddb555.94832","c0212fbb.688f6"]]},{"id":"8dfa0b38.613d4","type":"inject","z":"ed2e837d.7e8a4","name":"","topic":"","payload":"160479","payloadType":"num","repeat":"","crontab":"","once":false,"x":390,"y":260,"wires":[["a0ddb555.94832","c0212fbb.688f6"]]},{"id":"9bb12e5f.f33c6","type":"bit-thirtytwo","z":"ed2e837d.7e8a4","name":"","x":624.5,"y":638,"wires":[["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"],["717430f9.6c81b8"]]},{"id":"7735b903.a197","type":"inject","z":"ed2e837d.7e8a4","name":"","topic":"","payload":"3","payloadType":"num","repeat":"","crontab":"","once":false,"x":390,"y":460,"wires":[["9bb12e5f.f33c6","910875ff.5eb8a8"]]},{"id":"a15eac8e.18cd5","type":"inject","z":"ed2e837d.7e8a4","name":"","topic":"","payload":"8192","payloadType":"num","repeat":"","crontab":"","once":false,"x":390,"y":520,"wires":[["9bb12e5f.f33c6","910875ff.5eb8a8"]]},{"id":"f15f73dc.38ff58","type":"inject","z":"ed2e837d.7e8a4","name":"","topic":"","payload":"160479","payloadType":"num","repeat":"","crontab":"","once":false,"x":390,"y":580,"wires":[["9bb12e5f.f33c6","910875ff.5eb8a8"]]},{"id":"717430f9.6c81b8","type":"debug","z":"ed2e837d.7e8a4","name":"","active":false,"console":"false","complete":"false","x":850,"y":620,"wires":[]},{"id":"42cae24e.42cad4","type":"inject","z":"ed2e837d.7e8a4","name":"","topic":"","payload":"1128576","payloadType":"num","repeat":"","crontab":"","once":false,"x":400,"y":680,"wires":[["9bb12e5f.f33c6","910875ff.5eb8a8"]]},{"id":"81733af2.301ca","type":"inject","z":"ed2e837d.7e8a4","name":"","topic":"","payload":"156717728","payloadType":"num","repeat":"","crontab":"","once":false,"x":400,"y":740,"wires":[["9bb12e5f.f33c6","910875ff.5eb8a8"]]},{"id":"e97c54a.ef16d28","type":"inject","z":"ed2e837d.7e8a4","name":"","topic":"","payload":"536870912","payloadType":"num","repeat":"","crontab":"","once":false,"x":400,"y":800,"wires":[["9bb12e5f.f33c6","910875ff.5eb8a8"]]},{"id":"910875ff.5eb8a8","type":"bit-simple-thirtytwo","z":"ed2e837d.7e8a4","name":"","x":630,"y":360,"wires":[["c5a09166.6d632"]]},{"id":"25fd5991.74e476","type":"debug","z":"ed2e837d.7e8a4","name":"","active":true,"console":"false","complete":"false","x":850,"y":40,"wires":[]},{"id":"c5a09166.6d632","type":"debug","z":"ed2e837d.7e8a4","name":"","active":true,"console":"false","complete":"false","x":850,"y":360,"wires":[]}]
biancode

Flow Info

created 7 months, 3 weeks ago

Node Types

Core
  • debug (x4)
  • inject (x9)
Other

Tags

  • Bit
  • Modbus
  • Split
  • bit
  • split
  • 16Bit
  • 32Bit
  • array
  • Array
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option