Simulating a Arduino mini Modbus RTU slave with Proteus

Hi,

I am trying to simulate a Modbus RTU communication between a Arduino Pro mini slave and a Modbus master simulation software in Proteus.

I am using the simplemodbusng library and actually I just try to read any holding register with QModMaster or ModbusPoll.

I am using VSPE and tried it by directly connecting COMPIM to RX/TX, via MAX232 and also via MAX232 and MAX487.

Somehow it always runs into a timeout when requesting the holding registers.

It was already running connected physically to my FHEM Modbus master, but I would like to simulate it with Proteus using a virtual serial port and a Modbus test sw.

Can anyone please show me how to successfully test a Arduino pro mini as Modbus RTU slave under Proteus using a virtual serial port and a Modbus test SW?

Thanks,
Crispyduck00

Can anyone please show me how to successfully test a Arduino pro mini as Modbus RTU slave under Proteus

Why don't you ask on the stupid Proteus forum?

Okay, next time I will ask there. :slight_smile:

Meanwhile I got it working. I had a virtual terminal in my schematic, after removing it the simulated Modbus communication works.

Cold you recommand any other Software to simulate a modbus RTU communication between one or several Arduino slaves and the PC as master?

Thanks,
Crispyduck00

Cold you recommand any other Software to simulate a modbus RTU communication between one or several Arduino slaves and the PC as master?

I wouldn't use a simulator on a dare. Use the real hardware. It is the ONLY way you will learn anything.

I use the real hardware when I am at home, but actually I am on a business trip, and with the simulator I can test small changes or play arund with the modbus communication when I am abroud and also in the plane.

If it works exactly as simulated I will see whem I am at home, but actually it is enough to get a little bit familiar with the modbus protocol.

Ceers,
Crispyduck00