Skip to content

Modbus TCP

Fuuz Wiki Import edited this page Jun 5, 2026 · 3 revisions

Modbus TCP

Modbus TCP is a communication protocol used in industrial automation and control systems for transmitting data over Ethernet networks. It extends the original serial Modbus protocol to work over TCP/IP, and is widely used for communication between PLCs, RTUs, sensors, and other industrial equipment.

Connector type: Physical device connector — requires the Modbus device driver and is added as a device connection on the Edge Gateway.

Key characteristics include:

  1. Ethernet-Based Communication: Works over Ethernet networks, allowing faster and more reliable data communication than serial Modbus.
  2. Client-Server Architecture: A client device initiates read/write requests; a server device (typically a PLC or RTU) responds.
  3. Open Protocol: Open and well-documented, promoting interoperability between devices from different manufacturers.
  4. Request-Response Model: A client sends a request and the server responds with the requested data or acknowledges the action.
  5. Function Codes: Specify the type of operation (read/write holding registers, coils, input registers, etc.).
  6. Data Types: Supports binary (coils), 16-bit integers (holding registers), and 32-bit floating-point numbers.
  7. Addressing: Devices are identified by IP address and device ID.
  8. Broadcast Messaging: A client can send a message to all devices on the network (use with caution).
  9. Error Handling: Includes error-checking to detect transmission issues.
  10. Security Considerations: Modbus TCP has no strong built-in security; use it within a secured network or with additional security measures.

Configuration

  • Host: The hostname or IP address of the Modbus device.
  • Port: The port used to connect to the Modbus device.

Functions

Read Coil

Reads a sequence of coils from a Modbus device.

  • Address: The address to start reading coils from.
  • Length: The number of coils to read from the starting address.

Write Coils

Writes values to a block of coils on a Modbus device.

  • Address: The starting address to write values to.
  • Values: An array of booleans to write to a block of coils starting at the address.

Read Discrete Input

Reads a sequence of discrete inputs from a Modbus device.

  • Address: The address to start reading discrete inputs from.
  • Length: The number of discrete inputs to read from the starting address.

Read Holding Register

Reads a sequence of holding registers from a Modbus device.

  • Address: The address to start reading registers from.
  • Length: The number of registers to read from the starting address.

Write Holding Registers

Writes values to a block of holding registers on a Modbus device.

  • Address: The starting address to write values to.
  • Values: An array of UInt16s to write to a block of registers starting at the address.

Read Input Register

Reads a sequence of input registers from a Modbus device.

  • Address: The address to start reading registers from.
  • Length: The number of registers to read from the starting address.

Testing

pyModSlave (pypi.org/project/pyModSlave) lets you start a TCP Modbus server emulator. Once it is started and connected, the address to connect to is listed at the bottom of the app window. Each of the Coils, Discrete Inputs, Input Registers, and Holding Registers can be changed to test.

pyModSlave Modbus server emulator

See Also


Source: support.fuuz.com

🏠 Home

Getting Started (14)
Training Guides (52)

Applications

Access & Users

Data Models & Schema

Screens

Weather Lookup Series — guided 3-part build

Data Flows & Integrations

Data, Reporting & Monitoring

Enterprise & Organizations

Platform Concepts & Architecture (10)
Screens & Application Design (17)
Data Models & Schema (8)
Data Flows & Scripting (51)

Designing Flows

Data Flow Nodes

JSONata Reference

Scripting

Integrations & Connectors (30)

General & iPaaS

Plex

EDI

IIoT & Edge Gateway (18)

Physical Device Connectors

Edge Data Connectors

Reporting, Documents & Dashboards (8)
Administration & Access Control (27)
Data Management (8)
Accelerators, Templates & Packages (8)
Design Standards (1)
How-To Guides (8)
FAQ & Troubleshooting (1)
Release Notes (117)

2026

2025

2024

2023

2022

2021

2020

Policies & Company (6)

Clone this wiki locally