Slave connection on a Modbus.
Slave tools have a register database used to contain the register values both written by the master and to be returned when read by the master. That makes the communication with the master independent of the test script execution.
The slave tool has methods to get and set the values in the register database.