--- title: "如何设置 Modbus 设备 " slug: "how-to-setup-banner-modbus-devices-1" updated: 2025-01-08T14:05:37Z published: 2025-01-08T14:05:37Z canonical: "support.tulip.co/how-to-setup-banner-modbus-devices-1" --- > ## 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. # 如何设置 Modbus 设备 *了解如何在 Node-RED 中设置 Modbus 设备* 本文介绍编辑不同类型 Modbus 节点的工作流程。 程序编辑[PICK-IQ Node-RED 流程](https://flows.nodered.org/flow/fdf99cabf52814efb4d8494e45909b30/in/PPNSZnrHd_xa)示例。 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. ## 编辑 Modbus 服务器 1. 双击数据读取 Modbus 节点![Screenshot 2024-01-03 124501.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Screenshot%202024-01-03%20124501.png) 2. 选择 "编辑 Modbus 服务器 "按钮![ModbusServer.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/ModbusServer.png) 3. Modbus 服务器设置![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28366%29.png) 请参阅下面的必要设置概览: ***串行端口:**/dev/ttyS2*(这是 EdgeIO 上 RS-485 端口的位置)****串行类型:**RTU-BUFFERD 以下 COM 设置必须与 Banner 设备相匹配。有关如何在 Banner 设备上更改这些设置,请参阅 Banner[技术参考表](/r230/docs/connecting-banner-devices-with-edge-io-and-node-red)。以下是 Banner 设备的默认值: ***波特率:**19200***数据位**8***停止位**1***奇偶校验:**奇偶校验:无 1. 选择更新按钮![UpdateBtn.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/UpdateBtn.png) ## 更改单位标识 ![UnitID.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/UnitID.png) 每个设备都有一个 Unit-ID(默认:1),可用于寻址特定设备。如果连接了多个具有相同单元 ID 的设备,则所有设备都将由引用特定单元 ID 的 Modbus 节点控制。如果您想单独控制已连接的设备,则必须:1.连接第一台设备。2.将 Unit-ID 从默认值:1 更改为新值(如 2)。3.双击任何您想引用第一台设备的 Modbus 节点以编辑该节点。4.将 Unit-ID 字段更改为新值(如 2)。5.对任何其他您想引用第一台设备的 Modbus 节点重复上述操作。 一个 Modbus 节点一次只能寻址一个 Unit-ID,因此您可能需要使用多个 Modbus 节点来单独控制多个设备。 ## 更改寄存器地址 ![RegisterAddress.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/RegisterAddress.png){height="" width="""} 可以在高亮显示的文本框中更改寄存器地址。常用寄存器地址可在本文中找到。 ### Modbus 写节点 编辑 Modbus 写节点时的步骤相同。唯一不同的是,将 FC 改为*FC 6:预置单* *寄存器*,而不是*FC 3:读取保持寄存器*。![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28367%29.png)