wji

I have an Arduino board and esp8266 module , which I have wrote the modbus library (located at https://github.com/emelianov/modbus-esp8266) onto. Despite opening port 502, I am unable to use it with RMMS.exe and am receiving a "messages timeout" error. Additionally, when trying to connect the Arduino/esp8266 in the slave service within OpenPLC, I am getting "Connection timed out" or "invalid CRC" or " input / output error" errors. Can someone please help me identify where the problem may be?

thiagoralves
Most definitely the problem is with your library. If it doesn’t work with Radzio or OpenPLC it probably means that it is not working at all.
Reply 0 0
wji
Understood. Do you have any recommendations?  It can be used to make the Modbus of the Arduino Uno work properly. Thank you~ 🙂
Reply 0 0
thiagoralves
Well, just use OpenPLC Runtime on your Arduino boards. It has built-in Modbus support. You don’t have to write or come up with your own libs.
Reply 0 0
wji
In fact, I do this and I get a lot of errors (something like "Connection timed out" or "invalid CRC" or "input / output error") when I connect the Uno board to the OpenPLC via Serial. And I can't see the Modbus data via RMMS.exe (it says messages timeout). That's why I'm wondering if I need to write the Modbus lib to the UNO board in advance.

I suspect that my OpenPLC error is caused by the Modbus of the UNO board not working. Please help me to check it, thanks.
Reply 0 0
kingmatrix
Write the blank program into the arduino board can be, pay attention to check the modbus option, and the rate of communication, and station number, the station number is best changed to 1.
Reply 0 0
wji
It works. Thanks a lot. @kingmatrix @thiagoralves
Reply 0 0
Reply