The length field
Modbus TCP and Gateways
On this page
A plant display has read its meters through a gateway for two years without a fault. Then an energy logger is connected to the same gateway, and the display begins to show “timeout” on meters that are healthy. Nothing is broken. Two clients now share one slow serial bus, and the gateway can serve only one request at a time. This lesson shows what Modbus TCP adds to a request and what it removes, how a gateway carries the request to a serial server, and how to calculate the wait. #ModbusTCP #Gateway #IndustrialNetworks
Learning Objectives
By the end of this lesson, you will be able to:
- Build a Modbus TCP request and response byte by byte, with a correct MBAP header
- Explain why Modbus TCP has no CRC and what protects the bytes
- Use the unit identifier to reach a serial server behind a gateway
- Calculate the worst-case wait when several clients share one serial bus
- State what Modbus TCP does not protect, and the standard measures that do
Real-World System Problem: Two clients, one serial bus
A compressor house has four energy meters and one variable speed drive on a single RS-485 bus. The meters have addresses 5, 6, 7 and 8. Meter A is address 5. The drive is address 10. All of them speak Modbus RTU at 9600 baud. A display in the control room, 200 m away, must show their readings, and the energy team wants the same readings in a logger.
Neither the display nor the logger has a serial port. Both are on the plant Ethernet network. The usual answer is a gateway: a small box with an Ethernet port on one side and an RS-485 port on the other. The clients send Modbus TCP to the gateway, and the gateway sends Modbus RTU to the bus.
The network side is fast and carries many conversations at once. The serial side carries one request and one response at a time, each taking tens of milliseconds. Unless someone calculates what happens where the two meet, the first sign of trouble is a timeout on a screen.
Fundamental Theory: The same request on a different carrier
What stays the same
A Modbus message has a part that does not depend on the carrier: the function code and its data. The specification calls this part the protocol data unit, or PDU. For a read of nine holding registers from address 0x0000, the PDU is 03 00 00 00 09 on a serial line and on a network.
Each carrier wraps the PDU in its own way:
- Modbus RTU puts the server address in front and a CRC behind.
- Modbus TCP puts a seven-byte header in front and nothing behind.
So every function code, register address, scaling rule and exception code that you know from the serial line is valid on TCP without change.
The MBAP header
The seven bytes in front are the MBAP header (Modbus Application Protocol header). It has four fields, each sent high byte first.
| Field | Size | Content |
|---|---|---|
| Transaction identifier | 2 bytes | A number chosen by the client. The server copies it into the response. |
| Protocol identifier | 2 bytes | Always 0x0000 for Modbus. |
| Length | 2 bytes | The number of bytes that follow this field: the unit identifier plus the PDU. |
| Unit identifier | 1 byte | The serial address of the server behind a gateway. |
The transaction identifier exists because a network client may send a second request before the first is answered. The response carries the same number, so the client knows which request it belongs to. This matters most after a timeout. The late answer to the abandoned request can still arrive, and a client that does not compare the transaction identifier takes it as the answer to its next request, and stores the readings of one meter under the name of another.
The length exists because TCP delivers a stream of bytes with no gaps to mark where a message ends. A serial server finds the end of a frame from the silent interval. A TCP receiver reads the first six bytes, takes the length from bytes 5 and 6, and then reads exactly that many more bytes.
Why there is no CRC
A serial line has no protection of its own, so Modbus RTU adds a CRC to every frame. A network already checks the bytes at two lower layers. Every Ethernet frame ends with a 32-bit frame check sequence, and a frame that fails it is thrown away. TCP adds a checksum to every segment, numbers the bytes, sends lost data again and delivers the stream in order. So Modbus TCP leaves the CRC out. On the serial side of a gateway it is still there: the gateway adds it to each frame it sends and checks it on each frame that comes back.
Port 502 and connections
A Modbus TCP server listens on TCP port 502, the port registered for Modbus. The client opens a connection to the server’s IP address on that port and sends its requests on it. A good client keeps the connection open for many requests, because a gateway allows only a few connections. When a connection is cut without being closed (a cable pulled, a laptop shut), the gateway can hold that place for minutes until its own idle timeout ends, and a client that reconnects at every poll can fill every place. Set the gateway’s idle timeout, and close connections that are no longer used.
With TCP there is no silent interval, no baud rate and no parity. There is also no limit of one client: several clients can be connected to one server at the same moment.
The unit identifier is the route
An IP address finds the gateway. It cannot find the meter, because the meter has no IP address. The unit identifier carries the serial address through the gateway.
- For a serial server behind a gateway, set the unit identifier to the server’s serial address, from 1 to 247. For meter A it is 5.
- For a device that speaks Modbus TCP directly, the IP address already identifies it. Many such devices ignore the unit identifier, and others expect one fixed value such as 255 or 1. Follow the device manual.
- Unit identifier 0 is the broadcast address on a serial line. Do not use it for a read.
With a wrong unit identifier, the gateway answers that nobody replied, or a different meter answers and the screen shows its readings under the wrong name.
What a gateway does
For each request, a gateway of the simple kind does this:
- receives the TCP message and reads the MBAP header,
- removes the first six bytes and keeps the transaction identifier in memory,
- uses the unit identifier as the serial address, adds the CRC, and sends the RTU frame,
- waits for the serial response, up to its own timeout,
- checks the CRC and removes it,
- puts a new MBAP header in front, with the saved transaction identifier and a new length, and sends the result to the client that asked.
Gateway menus often use the older words “master” for the client and “slave” for a server.
Two exception codes come only from gateways. Code 0x0A (gateway path unavailable) means the gateway could not route the request. Code 0x0B (gateway target device failed to respond) means the request went to the bus and no server answered in time, as for a meter that is switched off or a wrong unit identifier.
Every TCP request becomes one serial transaction at that moment. The client receives fresh data, and each request must wait for the serial bus.
The gateway polls the serial servers on its own schedule and keeps the last values in memory. Clients receive an answer at once. The values are as old as the last poll, so each needs a timestamp, and a server that has stopped answering must be marked as stale.
The rest of this lesson treats the transparent kind.
Timing across a gateway
One serial transaction has four parts: the request bytes, the silent interval that ends the request, the time the server takes to prepare its answer (its turnaround), and the response bytes. One character on Modbus RTU is 11 bits.
Time of one serial transaction
A transparent gateway serves one serial transaction at a time, as a bank with many doors and one clerk serves its customers one after another. A request that arrives while the bus is busy joins a queue of
Wait in the queue
A server that does not answer holds the bus for its request bytes plus the gateway’s serial timeout, far longer than a normal transaction, and every request behind it waits that time too.
Timeouts in layers
There are now two timeouts, one inside the other: the gateway’s serial timeout (how long it waits for a serial server) and the client’s timeout (how long it waits for the gateway). Retries on either side multiply them.
The client’s timeout must be longer than the longest time the gateway can honestly take: the queue ahead, with the serial timeout counted for each server that may be dead, plus the client’s own transaction. A client that stops waiting first sends the request again while the first one is still in the queue, so the retry makes the queue longer and the next timeout more likely.
Security, stated plainly
Modbus TCP has no authentication and no encryption: the server does not ask who the client is, and there are no user names, passwords or keys. Any device that can open a connection to port 502 can read every register and write every register that the server allows to be written. The messages travel as plain bytes that any device on the path can read.
The protocol was designed for a closed serial line and was moved to networks without change. Protection must therefore come from around it.
- Segregated networks. Keep Modbus TCP devices on a control network that is separate from the office network, with a firewall that permits only the connections that are needed. Port 502 must never be reachable from the internet.
- A gateway that only reads. Where the purpose is monitoring, use a gateway that refuses write function codes (05, 06, 15 and 16), or that only publishes what it has read.
- TLS on the uplink. Data that leaves the site travels in a connection that the gateway opens outward and protects with TLS (Transport Layer Security, the encryption that protects https web pages), so that no inbound port is opened toward the plant.
- Limits in the equipment. A gateway that passes a write passes it for every client that can reach it, and a write to a drive can start a machine. Commands to plant are made only under the site’s permit and lock-out rules. Maximum speed, ramp times, interlocks and every safety function stay in the drive and the local controller.
The Modbus Organization has published a secure variant that carries Modbus inside TLS with certificates, on TCP port 802. Few field devices support it, so the measures above remain the normal practice.
Application 1: The read of meter A as a Modbus TCP request
Step 1: Build the TCP request
Click to reveal the request, byte by byte
-
Take the PDU from the RTU request. Remove the address in front (05) and the CRC behind (84 48). What remains is
03 00 00 00 09: function 03, start address 0x0000, quantity 0x0009. The PDU has 5 bytes. ✅ -
Calculate the length.
The length counts the unit identifier and the PDU. ✅
-
Write the MBAP header.
Field Bytes Transaction identifier 00 01 Protocol identifier 00 00 Length 00 06 Unit identifier 05 The header is
00 01 00 00 00 06 05. ✅ -
Add the PDU. The complete request is
00 01 00 00 00 06 05 03 00 00 00 09which is 12 bytes. ✅
Step 2: Build the TCP response
Click to reveal the response, byte by byte
-
Take the PDU from the RTU response. Remove the address (05) and the CRC (41 64). The PDU is the function code 03, the byte count 0x12 (18), and 18 data bytes: 20 bytes in total. ✅
-
Calculate the length.
The length field is
00 15. ✅ -
Write the header. The gateway copies the transaction identifier of the request:
00 01 00 00 00 15 05. ✅ -
Add the PDU. The complete response is
00 01 00 00 00 15 05 03 12 09 63 09 5E 09 6B 0F AC 0F 93 0F BF 09 6F 03 48 13 8Awhich is
bytes. ✅ -
Decode two values as a test. The first register is 0x0963, which is 2,403 counts, or 240.3 V. The seventh is 0x096F, which is 2,415 counts, or 24.15 kW. The data bytes are the same as on the serial bus. ✅
Step 3: Compare the frames
Click to reveal what is added and what is removed
-
Set the two requests side by side.
Part RTU TCP Transaction identifier none 00 01 Protocol identifier none 00 00 Length none 00 06 Address or unit identifier 05 05 PDU 03 00 00 00 09 03 00 00 00 09 CRC 84 48 none Total 8 bytes 12 bytes The PDU is identical. ✅
-
Count the change. Six bytes are added in front (transaction identifier, protocol identifier, length). Two bytes are removed from the end (the CRC). The address byte stays, with a new name.
Both totals agree with the frames. ✅
-
Check with the script. The Python script below builds the PDU once, wraps it as RTU and as TCP, and also converts the RTU response to TCP the way a gateway does, with a CRC check. It prints the same four frames, and a header of transaction 1, protocol 0, length 21, unit 5. ✅
Check it on the network. A free packet analyser such as Wireshark decodes Modbus TCP on port 502 and shows each MBAP field by name. Capture on the client computer while it polls, and compare one request and its response with the bytes above: the length must be 6 and 21, the unit identifier 5, and the transaction identifier of the response the same as that of the request. A response with an old transaction identifier is a late answer to a request that timed out. Capturing only reads the traffic, so it is safe on a working plant.
Application 2: Two clients polling one bus through a gateway
Step 1: The time of one serial transaction
Click to reveal the transaction times
-
One character.
The silent interval is
. ✅ -
Read of 9 registers from a meter.
The request takes 9.17 ms, the silent interval 4.01 ms, the turnaround 20 ms and the response 26.35 ms. ✅
-
Read of 4 registers from the drive.
The shorter response saves 11.5 ms. ✅
Step 2: The wait when every server answers
Click to reveal the worst-case wait
-
Queue ahead of client 2. The worst case is that all five requests of client 1 are ahead: four meter reads and one drive read.
Client 2 waits 286 ms before its request reaches the bus. ✅
-
Time of the answer.
The same read takes 59.5 ms when the bus is free, so the queue has made it almost six times slower. ✅
-
Against the timeout. 345.7 ms is well inside the 1,000 ms timeout of client 2. On a normal day nobody sees a problem. ✅
Step 3: Meter 7 is switched off
Click to reveal the effect of one silent server
-
Time of the failed transaction. The gateway sends the 8-byte request and then waits for its full serial timeout.
One silent meter holds the bus for one second. ✅
-
New wait for client 2. Three meters answer, one does not, and the drive answers.
The wait alone is now longer than the timeout of client 2. ✅
-
Time of the answer.
Client 2 stopped waiting at 1,000 ms. It reports a timeout on meter A, which is healthy and which answers correctly 295 ms later. ✅
-
What client 1 receives for meter 7. The gateway returns an exception with the transaction identifier of that request:
00 03 00 00 00 03 07 83 0B. Function code 0x83 is 0x03 with its top bit set, and 0x0B says the target device did not respond. ✅
Step 4: A shorter serial timeout
Click to reveal the corrected timing
-
Is 200 ms safe for a healthy server? After the request ends, a healthy meter needs the silent interval, its turnaround and its response:
A timeout of 200 ms is four times that, so a healthy server is never cut off. ✅
-
Failed transaction with the new timeout.
. ✅ -
New wait and answer.
Client 2 now receives its answer in under half of its timeout, with meter 7 still off. ✅
-
Check with the script. The Python script serves the six transactions one after another and adds their times. It prints a wait of 286.2 ms and an answer at 345.7 ms when all servers answer, 1,235.8 ms and 1,295.4 ms with the 1,000 ms timeout, and 435.8 ms and 495.4 ms with the 200 ms timeout. All agree with the hand values. ✅
Verify It in Python
The script builds the PDU for the read of meter A once, wraps it as an RTU frame and as a Modbus TCP message, and converts the RTU response to TCP as a gateway does. It then calculates the serial transaction times, serves the queue for the three cases of Application 2, and plots the three queues against the timeout of client 2.
"""Modbus TCP and RTU frames for the same read, and the queue in a serial gateway."""import structimport matplotlib.pyplot as plt
def crc16(data): """CRC-16/MODBUS: polynomial 0xA001, initial value 0xFFFF, low byte first.""" crc = 0xFFFF for byte in data: crc ^= byte for _ in range(8): crc = (crc >> 1) ^ 0xA001 if crc & 1 else crc >> 1 return struct.pack("<H", crc)
def hexs(data): return " ".join(f"{b:02X}" for b in data)
def rtu(address, pdu): """Serial frame: address, PDU, CRC.""" frame = bytes([address]) + pdu return frame + crc16(frame)
def tcp(transaction, unit, pdu): """Modbus TCP frame: MBAP header (7 bytes), PDU.""" return struct.pack(">HHHB", transaction, 0, len(pdu) + 1, unit) + pdu
def rtu_to_tcp(frame, transaction): """What the gateway does with a serial response.""" assert crc16(frame[:-2]) == frame[-2:], "CRC error" return tcp(transaction, frame[0], frame[1:-2])
assert hexs(crc16(bytes.fromhex("01030000000A"))) == "C5 CD"
# ---------- Application 1: the same read, two transports ----------readings = [2403, 2398, 2411, 4012, 3987, 4031, 2415, 840, 5002]req_pdu = struct.pack(">BHH", 3, 0x0000, 9)rsp_pdu = struct.pack(">BB9H", 3, 18, *readings)
rtu_req, rtu_rsp = rtu(5, req_pdu), rtu(5, rsp_pdu)tcp_req, tcp_rsp = tcp(1, 5, req_pdu), rtu_to_tcp(rtu_rsp, 1)print("Read 40001 to 40009 from meter A")print(f" RTU request ({len(rtu_req):2d} bytes): {hexs(rtu_req)}")print(f" TCP request ({len(tcp_req):2d} bytes): {hexs(tcp_req)}")print(f" RTU response ({len(rtu_rsp):2d} bytes): {hexs(rtu_rsp)}")print(f" TCP response ({len(tcp_rsp):2d} bytes): {hexs(tcp_rsp)}")tid, proto, length, unit = struct.unpack(">HHHB", tcp_rsp[:7])print(f" response header: transaction {tid}, protocol {proto}, " f"length {length}, unit {unit}")assert length == len(tcp_rsp) - 6values = struct.unpack(">9H", tcp_rsp[9:])print(f" first voltage {values[0] * 0.1:.1f} V, power {values[6] * 0.01:.2f} kW")no_answer = tcp(3, 7, bytes([0x83, 0x0B]))print(f" gateway exception, no answer from unit 7: {hexs(no_answer)}")
# ---------- Application 2: two clients, one serial bus ----------BAUD, BITS = 9600, 11T_CHAR = 1000.0 * BITS / BAUD # ms for one characterT_SILENT = 3.5 * T_CHAR # ms, silent intervalT_TURN = 20.0 # ms, server turnaround
def transaction_ms(n_request, n_response): return n_request * T_CHAR + T_SILENT + T_TURN + n_response * T_CHAR
def no_answer_ms(n_request, timeout): return n_request * T_CHAR + timeout
drive_rsp = rtu(10, struct.pack(">BB4H", 3, 8, 3500, 162, 1, 0))t_meter = transaction_ms(len(rtu_req), len(rtu_rsp))t_drive = transaction_ms(8, len(drive_rsp))print("Serial timing at 9600 baud, 11 bits per character")print(f" character {T_CHAR:.3f} ms, silent interval {T_SILENT:.2f} ms")print(f" meter read: {len(rtu_req)} + {len(rtu_rsp)} bytes, {t_meter:.1f} ms")print(f" drive read: 8 + {len(drive_rsp)} bytes, {t_drive:.1f} ms")
def queue(times): """Start and end time of each transaction served one after another.""" spans, clock = [], 0.0 for t in times: spans.append((clock, clock + t)) clock += t return spans
cases = { "all servers answer": [t_meter, t_meter, t_meter, t_meter, t_drive, t_meter], "unit 7 off, timeout 1000 ms": [t_meter, t_meter, no_answer_ms(8, 1000.0), t_meter, t_drive, t_meter], "unit 7 off, timeout 200 ms": [t_meter, t_meter, no_answer_ms(8, 200.0), t_meter, t_drive, t_meter],}print("Client 2 behind five requests of client 1")for name, times in cases.items(): spans = queue(times) print(f" {name}: waits {spans[-1][0]:.1f} ms, answered at {spans[-1][1]:.1f} ms")print(f" hand value, all answer: wait {4 * t_meter + t_drive:.1f} ms")
# ---------- Plot ----------fig, ax = plt.subplots(figsize=(9, 3.6))for row, (name, times) in enumerate(cases.items()): for k, (start, end) in enumerate(queue(times)): colour = "tab:orange" if k == 5 else ("tab:gray" if end - start > 100 else "tab:blue") ax.barh(row, end - start, left=start, color=colour, edgecolor="white")ax.axvline(1000.0, color="black", linestyle="--", linewidth=0.8)ax.text(1005, 2.35, "client 2 timeout")ax.set_yticks(range(len(cases)))ax.set_yticklabels(list(cases.keys()))ax.set_xlabel("time after the requests arrive (ms)")ax.set_title("Queue in the gateway (orange: the request of client 2)")fig.tight_layout()fig.savefig("gateway_queue.png", dpi=120)print("Saved gateway_queue.png")Expected output
Read 40001 to 40009 from meter A RTU request ( 8 bytes): 05 03 00 00 00 09 84 48 TCP request (12 bytes): 00 01 00 00 00 06 05 03 00 00 00 09 RTU response (23 bytes): 05 03 12 09 63 09 5E 09 6B 0F AC 0F 93 0F BF 09 6F 03 48 13 8A 41 64 TCP response (27 bytes): 00 01 00 00 00 15 05 03 12 09 63 09 5E 09 6B 0F AC 0F 93 0F BF 09 6F 03 48 13 8A response header: transaction 1, protocol 0, length 21, unit 5 first voltage 240.3 V, power 24.15 kW gateway exception, no answer from unit 7: 00 03 00 00 00 03 07 83 0BSerial timing at 9600 baud, 11 bits per character character 1.146 ms, silent interval 4.01 ms meter read: 8 + 23 bytes, 59.5 ms drive read: 8 + 13 bytes, 48.1 msClient 2 behind five requests of client 1 all servers answer: waits 286.2 ms, answered at 345.7 ms unit 7 off, timeout 1000 ms: waits 1235.8 ms, answered at 1295.4 ms unit 7 off, timeout 200 ms: waits 435.8 ms, answered at 495.4 ms hand value, all answer: wait 286.2 msSaved gateway_queue.pngIn the plot, the grey bar is the transaction that waits for the silent meter. With the 1,000 ms timeout it pushes the orange bar of client 2 past the dashed line.
Common Mistakes
- Counting the whole message in the length field. The length counts only the unit identifier and the PDU. A 12-byte read request has a length of 6.
- Leaving the unit identifier at the default of the client software. Behind a gateway it must be the serial address of the server you want.
- Setting the client’s timeout equal to the gateway’s serial timeout. The client must wait for the queue as well, so its timeout must be the longer one.
- Curing timeouts with more retries. Each retry joins the queue and makes the wait longer for every client.
- Treating a private network address as protection. Any device that reaches port 502 can read and write.
Summary
- Modbus TCP carries the same PDU as Modbus RTU. It adds a 7-byte MBAP header and removes the CRC, because Ethernet and TCP already check the bytes.
- The header holds a transaction identifier that the server copies, a protocol identifier of 0, a length that counts the unit identifier plus the PDU, and the unit identifier.
- The server listens on port 502. Behind a gateway, the unit identifier is the serial address of the server.
- A transparent gateway serves one serial transaction at a time, so requests from several clients wait in a queue, and one silent server delays all of them by the gateway’s serial timeout.
- Modbus TCP has no authentication and no encryption. Segregated networks, a gateway that only reads, TLS on the uplink and limits in the equipment provide the protection.
Exercises
1. A client sends 00 2A 00 00 00 06 0A 03 00 C8 00 04 to a gateway. Name every field and its value, and say which holding registers are requested from which serial server.
Answer
Transaction identifier 0x002A (42), protocol identifier 0, length 6, unit identifier 0x0A (10), function 03, start address 0x00C8 (200), quantity 4. It asks serial server 10 for holding registers 40201 to 40204.
2. A gateway receives the RTU response 0A 03 08 0D AC 00 A2 00 01 00 00 B5 79 for a TCP request that had transaction identifier 0x0102. Write the Modbus TCP response that it sends to the client.
Answer
Remove the CRC (B5 79), keep the address as the unit identifier, and put the header in front. The PDU has 10 bytes, so the length is 11: 01 02 00 00 00 0B 0A 03 08 0D AC 00 A2 00 01 00 00.
3. The bus is changed to 19,200 baud, still with 11 bits per character and a turnaround of 20 ms. Find the time of one read of 9 registers (8-byte request, 23-byte response).
Answer
4. A gateway at 9600 baud has a serial timeout of 300 ms and makes one retry for a server that does not answer. A client’s request for a healthy meter (59.53 ms) can have up to five requests ahead of it, and in the worst case all five go to servers that are switched off. Each request is 8 bytes. Find the smallest client timeout that never expires while the gateway is still working.
Answer
One failed request costs two attempts:
References
- Modbus Organization, MODBUS Application Protocol Specification V1.1b3, 2012.
- Modbus Organization, MODBUS Messaging on TCP/IP Implementation Guide V1.0b, 2006.
- Modbus Organization, MODBUS over Serial Line Specification and Implementation Guide V1.02, 2006.
- International Electrotechnical Commission, IEC 62443: Security for industrial automation and control systems (series).
A display reads five devices through a gateway on a 100 Mbit/s network. A logger is added that reads one of the same meters. Everything is healthy. How long can the logger now wait for its answer?
Client 1, the display, sends five reads (addresses 5, 6, 7, 8 and 10) at the start of each poll period. Every other client sends one read of meter A (address 5) at the same moment, after the display. The gateway serves them one at a time in the order of arrival, at 9600 baud with a turnaround of 20 ms. A client gives up when its timeout passes and does not retry, but the gateway still serves the old request. Network delay is taken as zero.
Check yourself
Three questions. Each wrong choice is a mistake people really make, so read the note after you answer.
1. A client writes two holding registers with function 16. The PDU is the function code, a start address of 2 bytes, a quantity of 2 bytes, a byte count of 1 byte and 4 data bytes. What goes in the length field of the MBAP header?
2. On the lesson's bus every server answers. The display sends its five requests, then the logger reads meter A, then a third client also reads meter A, all at the same moment. When does the third client receive its answer?
3. Meter 7 is switched off. The gateway's serial timeout is 1,000 ms, and the logger reports a timeout on meter A, which is healthy. Which change is right?
- The gateway receives 12 bytes: the MBAP header 00 01 00 00 00 06 05, then the PDU.
- It keeps 00 01, drops the first six bytes, uses 05 as the address and adds CRC 84 48.
- Meter 5 answers on the bus within the gateway's timeout: 23 bytes that end in the CRC 41 64.
- The CRC checks good and is removed. A new header with 00 01 and length 21 (00 15) makes 27 bytes.
- No answer in time: the gateway returns exception 0B in 9 bytes, so the client knows the bus side failed.
Discussion
No comments yet. Questions, results from your own build, a better way to explain it: all welcome.
My notes on this page
Kept on this device only. Nothing is sent anywhere.
Tip: select words in the lesson, or tap a figure or an equation, to put a note right there.
Notes on earlier wording
The lesson has changed and these words are no longer in it. Your notes are kept, with the words you chose.