I'm programming two Opta RS485 for a demo with Arduino PLC IDE,
one as Modbus RTU Master and the other one as Slave.
I made a very simple test program and everything runs fine,
the master communicates correctly with the slave, i can read the slave input and so on.
Problem is when I switch off the panel and then switch it on again, seems that the modbus communication does not restart automatically.
To restore it I have to soft reset the module from Arduino PLC IDE, but clearly this is not viable for a real application.
Anybody has experienced anything similar? Is there any way to restart the modbus automatically from program?
Thank you
DV