FREE & OPEN
THE OPEN PROTOCOL PLAYGROUND

Make every packet make sense.

Explore the conversations that connect our world. One packet at a time.

66 protocolsZero paywalls. Endless curiosity.

Modbus TCP

Industrial & SCADAAdvanced

Read a tank sensor, write a pump setpoint and diagnose an exception.

SIMULATION01 / 06
Loading topology…
0.0s / 7.0s
01
STEP 1 OF 6Engineering station → Process controller

Read Holding Registers

The SCADA client requests two holding registers at zero-based address 0. MBAP length counts Unit ID plus PDU.

#TIMESOURCE → DESTINATIONMESSAGE
0.000192.0.2.10192.0.2.20Read Holding Registers
1.400192.0.2.20192.0.2.10Register values: 42, 100
2.800192.0.2.10192.0.2.20Write Single Register
4.200192.0.2.20192.0.2.10Write confirmation
5.600192.0.2.10192.0.2.20Read invalid address
7.000192.0.2.20192.0.2.10Exception: Illegal Data Address
ISOLATED PROCESS SANDBOX

Tank & pump station

A local process model, separate from the fixed packet fixtures above.

42%
PLC onlineBROWSER ONLY

Read a tank sensor, write a pump setpoint and diagnose an exception.

Explain Read Holding Registers and distinguish it from Exception: Illegal Data Address.

Prerequisites: TCP

Ready to test your understanding?

Rebuild the exchange. Read the fields. Find the mistakes.

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

  1. 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.

  2. 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.

  3. 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.

  4. Write confirmation

    A successful function 06 response echoes the address and value.

    Respons function 06 yang berhasil mengulang alamat dan nilai.

  5. Read invalid address

    The client requests a register outside this simulated device map.

    Klien meminta register di luar peta perangkat simulasi ini.

  6. 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 ↗