Modbus TCP: protocol guide / panduan protokol
Read a tank sensor, write a pump setpoint and diagnose an exception.
Baca sensor tangki, tulis setpoint pompa, dan diagnosis exception.
Communication walkthrough / Alur komunikasi
- Read Holding Registers
The SCADA client requests two holding registers at zero-based address 0. MBAP length counts Unit ID plus PDU.
Klien SCADA meminta dua holding register pada alamat berbasis nol 0. Panjang MBAP menghitung Unit ID dan PDU.
- Register values: 42, 100
The PLC returns four data bytes: tank level 42 and pump setpoint 100. Scaling is a lab convention.
PLC mengembalikan empat byte data: level tangki 42 dan setpoint pompa 100. Skala adalah konvensi lab.
- Write Single Register
Function 06 writes 75 to zero-based address 1. The UI never sends network traffic.
Function 06 menulis 75 ke alamat berbasis nol 1. UI tidak pernah mengirim lalu lintas jaringan.
- Write confirmation
A successful function 06 response echoes the address and value.
Respons function 06 yang berhasil mengulang alamat dan nilai.
- Read invalid address
The client requests a register outside this simulated device map.
Klien meminta register di luar peta perangkat simulasi ini.
- Exception: Illegal Data Address
The response sets the high bit of function 03 to form 83, then returns exception code 02.
Respons mengatur bit tinggi function 03 menjadi 83, lalu mengirim kode exception 02.
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 TCP · technical reference ↗