TrentPayne
I am currently running a raspberry pi for openplc, and when I try to run a program like I normally do I get this repeating error.

OpenPLC Runtime starting...
Interactive Server: Listening on port 43628
Warning: Persistent Storage file not found
Device ModBus is disconnected. Attempting to reconnect...
Connection failed on MB device ModBus: Operation now in progress
Modbus Read Discrete Input Registers failed on MB device ModBus: Bad file descriptor
Modbus Write Coils failed on MB device ModBus: Bad file descriptor
Modbus Read Input Registers failed on MB device ModBus: Bad file descriptor
Modbus Read Holding Registers failed on MB device ModBus: Bad file descriptor
Modbus Write Holding Registers failed on MB device ModBus: Bad file descriptor
Device ModBus is disconnected. Attempting to reconnect...
Connection failed on MB device ModBus: Operation now in progress
Device ModBus is disconnected. Attempting to reconnect...
Connection failed on MB device ModBus: Operation now in progress
Device ModBus is disconnected. Attempting to reconnect...
Connection failed on MB device ModBus: Operation now in progress
Device ModBus is disconnected. Attempting to reconnect...


I have been using this OpenPLC with this Pi for about half a year and have not done anything differently than I normally would when starting it up. I have tried temporarily turning off my windows firewall to no avail. I very recently had another problem which I figured out where the Pi randomly changed IP addresses from it's normal 192.168.1.101:8080 to it's current 192.168.99.247:8080. This just let to confusion when logging in nothing big but this problem has happened ever since so I wasn't sure if it is related. I am not sure what additional information I could provide to help trouble shoot so let me know.
Reply 0 0
thiagoralves
The issue is not on OpenPLC, but on the modbus device you're trying to connect to. Since you said that your pi now has a different IP, this probably means that it is connected on a different network and cannot access the modbus device as before.
Reply 0 0
TrentPayne
This is correct thank you for the swift response. I chose to change the static IP address of the Pi back to its original but I believe changing the modbus device's referencing IP address might also work.
Reply 0 0
Reply