# Modbus TCP/IP command

**URL:** <https://discourse.nodered.org/t/modbus-tcp-ip-command/10641>\
**Category:** General\
**Created:** [29 April 2019 12:30 UTC](https://discourse.nodered.org/t/modbus-tcp-ip-command/10641 "2019-04-29T12:30:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ihebabidi](https://avatars.discourse-cdn.com/v4/letter/i/e47c2d/32.png) [@ihebabidi](https://discourse.nodered.org/u/ihebabidi)\
**Post date:** [29 April 2019 12:30 UTC](https://discourse.nodered.org/t/modbus-tcp-ip-command/10641/1 "2019-04-29T12:30:25Z")

</div>

hello all !

do i have the ability to order a modbus tcp/ip node?  
because as soon as i click deploy its connected to the server.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [29 April 2019 12:59 UTC](https://discourse.nodered.org/t/modbus-tcp-ip-command/10641/2 "2019-04-29T12:59:48Z")

</div>

Can you explain in more detail what you mean please.

---

<div class="post-metadata">

**Author:** ![ihebabidi](https://avatars.discourse-cdn.com/v4/letter/i/e47c2d/32.png) [@ihebabidi](https://discourse.nodered.org/u/ihebabidi)\
**Post date:** [30 April 2019 13:07 UTC](https://discourse.nodered.org/t/modbus-tcp-ip-command/10641/3 "2019-04-30T13:07:31Z")

</div>

here i want to for example having a switch, when i change its state to true the node modbus is connected when i change it to false the node modbus will be disconnected

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [30 April 2019 15:24 UTC](https://discourse.nodered.org/t/modbus-tcp-ip-command/10641/4 "2019-04-30T15:24:05Z")

</div>

Why do you want to do that?

---

<div class="post-metadata">

**Author:** ![ihebabidi](https://avatars.discourse-cdn.com/v4/letter/i/e47c2d/32.png) [@ihebabidi](https://discourse.nodered.org/u/ihebabidi)\
**Post date:** [30 April 2019 17:10 UTC](https://discourse.nodered.org/t/modbus-tcp-ip-command/10641/5 "2019-04-30T17:10:26Z")

</div>

to allow the user to choose automatic mode or manual mode, when modbus tcp is connected its the automatic mode when it us disconnected its manual, sorry if i didnt know how to explain.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [30 April 2019 17:47 UTC](https://discourse.nodered.org/t/modbus-tcp-ip-command/10641/6 "2019-04-30T17:47:22Z")

</div>

What is in manual mode? Do you mean the device connected to automatically goes into manual when disconnected? If so then I assume you can put it into manual mode by sending it the appropriate data.  
If you mean that control is being done by node red rather than the device, there is no need to disconnect, just don't send it any data, and ignore anything it sends
