Skip to content

Single register write and read ​

Need: confirm that the device accepts a write and that the value reads back correctly. This is the most basic test, matching the library's A single.json.

StepWhat it does
1Write: FC06 writes 0x0000 = 0x00AA
2Wait 100 ms: time for the device to process it
3Read: FC03 reads 0x0000, expecting 0x00AA

Single register result

All three steps PASS, and the overall result is Release PASS. The Actual column shows the value read and the response time (ms).

Notes

  • A Write PASS only means the device accepted the write. To confirm the value, read it back.
  • The Wait in between is optional. Some devices take a moment to update the register after a write, and a short delay avoids reading the old value.

Download the sample script ​

Sample script

Before running it, start a Slave window on 127.0.0.1:502 and click Listen, then open the script with Open JSON in Script mode and click Run. See How to use the examples.

Roach Modbus Tool by Mr.Roach