Modbus RTU: protocol guide / panduan protokol
Decode serial frames and validate a little-endian CRC-16.
Dekode frame serial dan validasi CRC-16 little-endian.
Communication walkthrough / Alur komunikasi
- Read register 0
Unit 1 receives function 03. RTU uses silent intervals for framing, not an MBAP header.
Unit 1 menerima function 03. RTU memakai interval hening untuk framing, bukan header MBAP.
- Register value: 42
The response includes a byte count, one 16-bit register and a CRC over the preceding bytes.
Respons menyertakan byte count, satu register 16-bit, dan CRC atas byte sebelumnya.
- Write register 1
A unicast function 06 request asks to set the pump setpoint to 75.
Request unicast function 06 meminta setpoint pompa menjadi 75.
- Write echoed
The server echoes a successful write. CRC detects errors; it does not authenticate the sender.
Server mengulang write yang berhasil. CRC mendeteksi kesalahan; tidak mengautentikasi pengirim.
Source and simulation scope
This is a simplified, deterministic teaching scenario. Timing is illustrative. Messages grouped within one event are explicitly condensed. Hexadecimal fixtures, where shown, contain only the indicated protocol ADU, not a full network capture. No PCAP files are supplied.
Modbus RTU · technical reference ↗