H. de Ruiter - 2014-09-16

JaMod works great for me as I'm using it to read from / write data to (dedicated) Modbus TCP slaves.

Now I'm working on a unit test and want to simulate multiple Modbus TCP slaves (connect to localhost but on distinct ports). As far as I can see in the source code it's only possible to map a single process image to a ModbusTCPListener (by means of a ModbusCoupler class which is a singleton). So I can implement multiple listeners (to distinct ports on localhost) but they all refer to the same process image.

Does anyone know how to map a process images to a dedicated TCP listener?

Kind regards,