Loading...
Loading...
Used for debugging communication of Modbus RTU (serial port) or Modbus TCP (network) devices, supporting register read/write, slave scanning, and continuous monitoring.
npx skill4agent add leokemp223/embed-ai-tool modbus-debugpymodbuspyserialpython scripts/modbus_tool.py --detect# Read holding registers
python scripts/modbus_tool.py --port COM42 --slave 1 --read --address 0 --count 10
# Write registers
python scripts/modbus_tool.py --port COM42 --slave 1 --write --address 0 --values 100,200
# Scan slaves
python scripts/modbus_tool.py --port COM42 --scan --scan-range 1-10
# TCP read
python scripts/modbus_tool.py --tcp --host 192.168.1.100 --slave 1 --read --address 0 --count 10connection-failureslave-no-responseillegal-functionillegal-addressResult: ✅ Read 10 registers
Connection: RTU COM42 9600 8N1
Slave: 1
Address | Decimal | Hexadecimal | Binary
------+---------+----------+--------------------
0 | 100 | 0x0064 | 0000000001100100
1 | 200 | 0x00c8 | 0000000011001000build-keilbuild-platformioserial-monitor