# How write data to single register with LE (Modbus-RTU)?

**URL:** <https://discourse.nodered.org/t/how-write-data-to-single-register-with-le-modbus-rtu/59948>\
**Category:** Industrial\
**Tags:** modbus\
**Created:** [16 March 2022 20:10 UTC](https://discourse.nodered.org/t/how-write-data-to-single-register-with-le-modbus-rtu/59948 "2022-03-16T20:10:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_UA](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@Alex\_UA](https://discourse.nodered.org/u/Alex_UA)\
**Post date:** [16 March 2022 20:10 UTC](https://discourse.nodered.org/t/how-write-data-to-single-register-with-le-modbus-rtu/59948/1 "2022-03-16T20:10:52Z")

</div>

Hello. I ran into a problem, please help me find a solution.

There is a two-channel relay with Modbus, I use the package to communicate with it node-red-contrib-modbus  
Read channel 1 and channel 2 state ：01 03 00 01 00 02 95 CB --- it is not problem  
The problem starts when I initiate the write, namely

The command to turn on, according to the manual, looks like 01 06 00 01 01 00 D9 9A  
That is, to turn on the channel '1' relay, it is necessary to write the value 0x0001 to the register at address 0x01.

Now the actual question  
How to write data to a register using LE bit order using node modbus-flex-getter?

---

<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:** [15 May 2022 20:10 UTC](https://discourse.nodered.org/t/how-write-data-to-single-register-with-le-modbus-rtu/59948/2 "2022-05-15T20:10:58Z")

</div>

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