The "verbs" from Chapters 4 and 5 (function code + address + data) are ready. Now they have to travel—first along the old railway of the serial line (RS-485), that is, Modbus RTU. An RTU frame is like a kraft-paper letter: the recipient is written at the front (the slave address), a "stamp" is stuck at the back (the CRC checksum), and letters are separated by the "pauses" between them.
RTU is the variant with the largest installed base in the field: legacy equipment, serial buses, and interference-heavy workshops all depend on it. The first thing an engineer does when debugging RTU is capture frames and compute the CRC. Being able to say byte by byte "this is the address, that is the low byte of the CRC" puts you in a completely different league from someone who can only copy a tool's output.
Address: the house number of the target slave (1–247); PDU (Protocol Data Unit): the letter paper, function code + data; CRC-16: a 2-byte checksum. RTU has no length field and relies on a "silence of ≥3.5 character times" to mark frame boundaries—just as people pause to breathe while speaking, and the slave knows from the pause that "the previous sentence is finished".
You do not need to memorize the CRC shift process. You only need to know three things:
Command: "read 2 holding registers from slave 5, starting at 0x0000" (RTU 8 bytes = address + PDU + CRC):
05
03
00 00
00 02
C5 8F
| Byte | Value | Meaning |
|---|---|---|
| 0 | 05 | Address |
| 1 | 03 | Function code |
| 2–3 | 00 00 | Starting address |
| 4–5 | 00 02 | Quantity |
| 6–7 | C5 8F | CRC-16 (low byte first) |
Note that the CRC is C5 8F (low byte first: C5 then 8F). Compare it with the same command reading slave 1 in Chapter 4, where the CRC is C4 0B—just because the address changed from 01 to 05, the whole CRC changed, which is precisely the "fingerprint" property of the CRC.
When slave 5 is asked to read an address that does not exist, the RTU exception frame (FC 0x83 + exception code 02 + CRC) is: 05 83 02 C0 F1. Function code 0x83 = 0x03 | 0x80, and exception code 02 means "illegal data address".
Ms. Wang's greenhouse ends up with a hybrid architecture: the 3 devices inside the greenhouse are wired into an RTU network over an RS-485 serial line (cheap, interference-resistant, and good for up to 1200 metres). A gateway converts those RTU frames into TCP and forwards them to the office and to the phone app. RTU handles the reliable acquisition over the "last metre".
Temp sensor ─┐ Exhaust fan ─┼─ RS-485 (RTU) ─▶ [Gateway] ── Ethernet (TCP) ──▶ Office screen / phone Water pump ─┘
The exception frame from a factory VFD when an illegal address is read is 01 83 02 C0 F1: function code 0x83 tells you "reading holding registers failed", and exception code 02 tells you "the address is out of range". Troubleshooting order: check whether the starting address + quantity entered in the host application exceed the VFD's register range.
05 03 00 00 00 02 C5 8F;In this chapter you learned about the RTU "kraft-paper letter": the three-part structure of address + PDU + CRC-16, framed by 3.5 characters of silence and verified with "CRC over the whole frame = 0". You also saw how changing a single address changes the entire CRC.
In the next chapter we put the same letter into a courier waybill (the MBAP header)—that is the Modbus TCP frame, along with the gateway that connects the two worlds.