https://ipc2u.ru/articles/prostye-resheniya/modbus-rtu/
Вполне подробно и понятно.