Hello!
I'm trying to write to and read from two separate devices using Modbus RS485. I managed to setup complete communication with one of them, being able to read all the values from it I needed.
However when I tried to connect the other device and get that communication to work I got some sort of CRC error, I thought it was because I had to change some of the Modbus settings, but no. Communication to the first device still worked fine in another project.
I tried to comment out all the new code I had written since I last had it working but to no avail, I still got the error. After that I tried double-clicking the reset button and installing the boot-loader into the Opta again. Now, though, I can't download any code at all into my Opta, not even something as simple as incrementing a counter. I am not using any Arduino code, nor have I at any point in this project, having worked solely with PLC code.
The serial monitor in the normal IDE shows the following:
** Download request received from the IDE
The PLC application to be downloaded is NOT based on the currently executing application
** Download request accepted: cold restart required (both retain and non-retain variables will be reset)
** BEGIN of download sequence
** Starting to load PLC application
Stop PLC tasks
** Waiting for PLC tasks to finish ...
** All PLC tasks finished
Set PLC status to NOT OK
Reset PLC data area
Reset PLC data blocks
Set PLC entry points to NOP
Reset PLC application version information
** PLC loading failed, error code 20
** Hardware ID: 8dddd31b8a77f270
** END of download sequence
I'd really appreciate some help, thank you!