If you are willing to write a tiny bit of code, this library will allow you to simulate anything you want from a slave device: https://github.com/SiemensEnergy/c-modbus-slave