I tried but no success, but was able to modify the RPI hardware driver by changing the pin numbers and got it to work but this is way over complicated so I searched the forum and found a post where you said it's better and easier to use PSM. I downloaded a fresh copy of OpenPLC and tried to compile and run the default PSM script and received the error below. I'm not sure but I think it says python is not installed or can't be found. I started a Linux terminal and typed "python3" and it started the interpreter. Don't know what to try next, need some direction.
OpenPLC Runtime starting...
Interactive Server: Listening on port 43628
PSM: Starting PSM...
Traceback (most recent call last):
File "/root/OpenPLC_v3/webserver/./core/psm/main.py", line 27, in <module>
import psm
File "/root/OpenPLC_v3/webserver/core/psm/psm.py", line 3, in <module>
from pymodbus.server.sync import ModbusTcpServer
ModuleNotFoundError: No module named 'pymodbus'
PSM: Error while starting Python interpreter
Issued start_modbus() command to start on port: 502
Server: Listening on port 502
Server: waiting for new client...
Issued start_dnp3() command to start on port: 20000
DNP3 ID manager: Starting thread (0)
DNP3 ID DNP3_Server: Listening on: 0.0.0.0:20000
Issued start_enip() command to start on port: 44818
Server: Listening on port 44818
Server: waiting for new client...
Issued stop_pstorage() command
PSM: Connection to psm failed
PSM: Error connecting to psm!
PSM: PSM is disabled
Skipping configuration of Slave Devices (mbconfig.cfg file not found)
Warning: Persistent Storage file not found