Well.... Good news is I got it working with some other code however have the same problem mentioned in a few other places regarding the connection not restarting if lost. I can unplug the Arduino and re-plug but it never reconnects. Using the auto-reconnect checkbox 'ON,' causes it to never work in the first place and results in a flashing re/orange triangle next to the slave. Anyone know a way to reset the modbus master?
Hi all. Pretty new to all this and trying to get a Pi running Codesys talking to an Arduino Nano using Modbus RTU. Have used the following post for reference but am failing. https://forge.codesys.com/forge/talk/Runtime/thread/634eb0e582/?limit=25#0f41 The Arduino code/libraries seem to have changed but have used the new one and the example advanced_slave code from it here https://github.com/smarmengol/Modbus-Master-Slave-for-Arduino The pi is online but Modbus master and slave have red triangles...
Actually, is it possible to use the serial pins on the GPIO. Any special config needed for that as well? Thanks
Thanks Edwin I'll give this a try
Hi there. New to Codesys. I see there is SPI support for some devices (on Raspberry). I'd like to use a SX1278 to communicate to a remote Arduino or similar. Is this a viable option? What would I need to do to achieve something of the sort? [EDIT] - I was wrong. SX1278 is UART π Can I then use a USB to serial adapter with wireable terminals? Regards Cam
Hi there. New to Codesys. I see there is SPI support for some devices (on Raspberry). I'd like to use a SX1278 to communicate to a remote Arduino or similar. Is this a viable option? What would I need to do to achieve something of the sort? Regards Cam