---
title: "Set up Modbus Devices"
slug: "set-up-banner-modbus-devices"
updated: 2024-02-15T22:05:54Z
published: 2024-02-15T22:05:54Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://support.tulip.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Set up Modbus Devices

*Learn how to setup Modbus devices in Node-RED*

This article covers the workflow for editing the different types of Modbus nodes.

The procedures edit the example [PICK-IQ Node-RED flow](https://flows.nodered.org/flow/fdf99cabf52814efb4d8494e45909b30/in/PPNSZnrHd_xa).

:::(Warning) (Update your Edge Device)
Ensure your Edge Device is fully updated in order to prevent softlocking. If you run into issues connecting Modbus devices, restart Node-RED on your Edge Device.
:::
## Edit Modbus Server
1. Double-Click the Data Read Modbus node
![Screenshot 2024-01-03 124501.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Screenshot%202024-01-03%20124501.png){height="" width=""}

2. Select the Edit Modbus Server button
![ModbusServer.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/ModbusServer.png){height="" width=""}

3. Modbus Server settings
![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28366%29.png){height="" width=""}

See below for an overview of the necessary settings:
* **Serial port:** /dev/ttyS2 *(This is the location of the RS-485 port on the EdgeIO)*
* **Serial type:** RTU-BUFFERD

The following COM Settings must match your Banner device. See the [Banner Technical Reference Sheet](/r230/docs/connecting-banner-devices-with-edge-io-and-node-red) for how to change them on your Banner Device. Below are the default values for Banner devices:
* **Baud rate:** 19200
* **Data bits:** 8
* **Stop bits:** 1
* **Parity:** None

4. Select the Update button
![UpdateBtn.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/UpdateBtn.png){height="" width=""}

## Change Unit-ID
![UnitID.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/UnitID.png){height="" width=""}

Each device has a Unit-ID (Default: 1), allowing you to address the specific device. If multiple devices are connected with the same Unit-ID, then all devices will be controlled by the Modbus nodes referencing the particular Unit-ID. If you want to individually control connected devices, you must:
1. Connect your first device.
2. Change the Unit-ID from Default: 1 to a new value (eg. 2).
3. Double-click on any Modbus node that you want to reference the first device to edit the node.
4. Change the Unit-ID field to your new value (eg. 2).
5. Repeat for any other Modbus nodes that you want to reference the first device.
6. Repeat for each new device.

A Modbus node can only address one Unit-ID at a time, therefore you may need to use multiple Modbus nodes to individually control multiple devices.

## Change Register Address
![RegisterAddress.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/RegisterAddress.png){height="" width=""}

The register address can be changed in the highlighted text box. Common register addresses can be found in this [article]().

### Modbus Write Nodes
The same steps are followed when editing a Modbus Write node. The only difference is that FC is changed to *FC 6: Preset Single Register*, instead of *FC 3: Read Holding Register*.
![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28367%29.png){height="" width=""}
