modbus-debug

Reads and writes Modbus RTU/TCP registers for embedded system debugging using Python and pymodbus/pyserial libraries.

810|140|Updated Apr 17, 2026
One-click install
npx skills add https://github.com/LeoKemp223/embed-ai-tool --skill modbus-debug
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: modbus-debug
Source: https://github.com/LeoKemp223/embed-ai-tool/tree/main/skills/modbus-debug
Command: npx skills add https://github.com/LeoKemp223/embed-ai-tool --skill modbus-debug

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pymodbus, pyserial, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the debugging process for Modbus RTU and Modbus TCP devices, enabling quick verification of communication and efficient data manipulation.

Core Features & Use Cases

  • Modbus RTU/TCP Support: Offers comprehensive debugging for both RTU (serial) and TCP (network) devices.
  • Register Manipulation: Allows for reading and writing to various register types, including holding, input, coil, and discrete inputs.
  • Scanning and Monitoring: Features scanning for slave addresses and continuous monitoring of register values.
  • Use Case: When you need to ensure proper communication between your embedded device and a Modbus RTU/TCP server, this skill can help verify data exchange and troubleshoot any issues.

Quick Start

Use the modbus-debug skill to read 10 holding registers from the Modbus device connected via COM42, with a slave address of 1.

Frequently Asked Questions about modbus-debug

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug Modbus RTU communication over a serial port in Python?

You can debug Modbus RTU communication by using a Python-based tool that leverages pymodbus and pyserial to read and write holding registers, input registers, coils, and discrete inputs over serial connections.

What is the best way to scan for slave addresses on a Modbus TCP device?

Scanning for slave addresses on a Modbus TCP device involves using a debugging tool to systematically query the network, allowing you to identify active devices and verify their communication status.

Can I continuously monitor Modbus register values to troubleshoot embedded systems?

Yes, you can continuously monitor Modbus register values to troubleshoot embedded systems by running a debugging script that polls holding or input registers at intervals to track data exchange.

Does this Modbus debugging approach support both RTU and TCP protocols?

Yes, this Modbus debugging approach supports both RTU for serial communication and TCP for network communication, enabling comprehensive verification of data exchange across different embedded device setups.

How do I read holding registers from a specific Modbus slave address?

To read holding registers from a specific Modbus slave address, you connect to the device via your specified COM port or TCP connection, set the slave address, and execute a read command for the desired register range.

What do I need to install to start manipulating Modbus registers in Python?

To start manipulating Modbus registers in Python, you need to install the pymodbus and pyserial libraries, which provide the underlying communication functions for both serial and network Modbus protocols.