SKILL.md
Modbus Troubleshooting
Use when Modbus IO misbehaves (timeouts, extra data, wrong values).
Quick checks
- Verify deviceid/unitid on every call; wrong unit → timeouts.
- Add pacing (
messagewaitmilliseconds) and avoid immediate post-write polls. - For RTU-over-TCP, flush/reset framer/buffer; reconnect on extra-data.
- Log address/unit/function and raw words to spot endian or offset issues.
References
- [references/common-failures.md](references/common-failures.md)
- [references/logging-and-dumps.md](references/logging-and-dumps.md)
- [references/mitigations.md](references/mitigations.md)