# Problem with multiple modbus clients

**URL:** <https://discourse.nodered.org/t/problem-with-multiple-modbus-clients/67278>\
**Category:** General\
**Created:** [2 September 2022 23:27 UTC](https://discourse.nodered.org/t/problem-with-multiple-modbus-clients/67278 "2022-09-02T23:27:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Angin](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@Angin](https://discourse.nodered.org/u/Angin)\
**Post date:** [2 September 2022 23:27 UTC](https://discourse.nodered.org/t/problem-with-multiple-modbus-clients/67278/1 "2022-09-02T23:27:23Z")

</div>

Hi all.  
I'm using node-red-contrib-modbus for the first time and I'm having a problem, I've spent the whole day looking for a solution but I haven't found the right answer yet.  
The problem is: If I have multiple modbus clients, Server -\> Edit modbus-client node -\> Type on the node, as soon as I select a mode, for example, I select TCP or Serial for the other node, the Type will also change to the last selected mode at the same time.  
Now suppose I have four clients:

1. Host: 10.1.1.14, Port: 62201,
2. Host: 10.1.1.14, Port: 62202,
3. Serial port: /dev/ttyUSB0
4. Serial port: /dev/ttyUSB1.  
If I want to use all four clients at the same time. What should I do? Is there a solution?  
I would appreciate any help. Thank you all.  
 ![modbus-client-1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/9/79c3505513962b30bf238bfcdf90283b338e20be.png)  
 ![modbus-client-2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/c/ac9f0dbb62980676f5508a6520117bdd24d7e91c.png)  
 ![modbus-client-3](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/c/0c8cf20be6d065112a51240d0e1e55e0fc92f2b5.png)  
 ![modbus-client-4](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/2/a2ebcb73e17e73e57c9a277f0f390af4f5f1438f.png)

---

<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:** [3 September 2022 05:58 UTC](https://discourse.nodered.org/t/problem-with-multiple-modbus-clients/67278/2 "2022-09-03T05:58:13Z")

</div>

> [@Angin](#):
>
> I select TCP or Serial for the other node, the Type will also change to the last selected mode at the same time

You need to add 4 clients.

In the modbus node, the client is a drop down, click it, select the option "add new client" then click the 3 dots ellipsis button.

---

<div class="post-metadata">

**Author:** ![Angin](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@Angin](https://discourse.nodered.org/u/Angin)\
**Post date:** [3 September 2022 09:02 UTC](https://discourse.nodered.org/t/problem-with-multiple-modbus-clients/67278/3 "2022-09-03T09:02:05Z")

</div>

Steve,thank you very much! I have learned how to add another client.  
 ![modbus-client-5](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/2/52753502c97fac1df2a04bd692380c1670874cbf.png)

---

<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:** [17 September 2022 09:02 UTC](https://discourse.nodered.org/t/problem-with-multiple-modbus-clients/67278/4 "2022-09-17T09:02:32Z")

</div>

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