Aleksandr
Hi everyone!

I found OpenPLC project, and try to use it in my tasks, but collide with some problems.

In my hardware environment, i use GPIO 8 INs, and 8 OUTs, and Modbus TCP, and RTU devices, connected to USB, as Master, for exchanging data with some sensors.

Case is: i need configure of hardware layer, for 8 INs and OUTs as stright hardware connections (like %IX0.N/%QX0.N), and Modbus devices as "virtual", in memory, with addresses like %MW0 - %MW1023. Needed, for they all working together.

And question, all of that is possible to realize, base on OpenPLC project?
May be someone have experience in similar cases, or most be have any ideas, in what direction i can move.
Thanks for advance for any help and ideas!
Reply 0 0
Aleksandr
I thoughts about my case, in prev. message, and OpenPLC architecture, and i have one think.
If i configure OpenPLC as Modbus, can i have access to hardware GPIO pins in Modbus addresses space? May be need configure RPi itself, as modbus slave device?
Reply 0 0
thiagoralves
Let me see if I got your setup right. You're running OpenPLC on a raspberry pi, using the built-in IOs and want to use some external Modbus IO as well. Is that right? If that is the case, the short answer is no, you can't do that. OpenPLC can only work with one hardware driver at a time. You will need to either choose the raspberry pi driver or the Modbus master driver. The only driver that allows you to talk to external Modbus devices (IO) is the Modbus master. A work around for this would be for you to write (or find on the internet) a raspberry pi application that works as a modbus TCP slave and controls the GPIO pins of the raspberry pi. You then need to run this application concurrently with OpenPLC, and use the Modbus master driver on OpenPLC to communicate with this running application to control the local GPIO pins and also to communicate with the other external Modbus devices.
Reply 1 0
Aleksandr
Thank you very much, for so developed answer! And yes, you abolutely correct understood my setup.
This idea is very useful for me, now i know, how realize all architecture for my environment.
Whish you more and more progress with this project!
Reply 0 0
Reply