dirk
Hi, we develop the RevolutionPi which is an industrial RaspberryPi based on the Compute Module (CM). A community member has asked how he could integrate the OpenPLC SPS.  Here is the original discussion and my answer. So if you have ideas how we could help to put the OpenPLC into operation on the RevPi it would be great.
Quote 0 0
thiagoralves
Hi dirk, welcome to the forum! I don't know how RevolutionPi works inside, but if it is based on the CM then OpenPLC should work fine with it. However, when it comes to IO handling, I believe a new driver will have to be written for the OpenPLC Runtime so that it can understand how to manipulate RevolutionPi IOs. OpenPLC already has drivers for PiXtend, UniPi and Neuron PLCs, which are all based on the Raspberry Pi platform as well. Writing a driver for the RevolutionPi shouldn't be very different than these.
Quote 0 0
hjbleier
Please I can use this so much for my projects!! @thiagoralves I will donate some $$$ if you get these devices fully integrated to work with openplc. You don't know how much simpler my panels will be if I could use RevolutionPi's devices for this customer of mine. Neuron's I/O configuration on their devices just flat out suck! Don't even get me started on their analog resolution they have devices with some good resolution but only on half of the points then the other half are 8-bit tinker toys. I have panels with devices that are barely half loaded up because half of the points are useless to me! Their lead time is very unpredictable too, getting the devices out of the Czech republic. They are nice people to work with, but my God they are going after build automation then have some devices ready to ship. People don't want to wait weeks for a controller to ship.
Quote 0 0
thiagoralves
Is anyone willing to donate me a RevolutionPi? I can write the drivers myself if needed, but I can't do it without the device in hands.
Quote 0 0
hjbleier
Is anyone willing to donate me a RevolutionPi?

Hey @dirk are you guys willing to supply @thiagoralves with the hardware or who is your distributor for North America?

I think it will definitely be beneficial to your company to have OpenPLC support for your hardware. There is quite a few people looking for full open source software solution and alot of makers thinkering with openplc then looking for more robust hardware platform to run their final design on. I think it would be a good investment for you guys personally 👍
Quote 0 0
dirk
Hi there, sorry for my absence but we are currently discussing the options. Thank you all for the positive feedback so far. Well letz see what we will decide and do.
Quote 0 0
dirk
Dear @thiagoralves I have good news for you. We want to offer you a hardware sponsoring. Please contact me at support@kunbus.de for the details.
Quote 0 0
hjbleier
That is great news! Thank you Dirk, I can't wait to have the ability to use kunbus devices in my next projects. They will make life much easier 👍 I have several buildings with older generation ASI controls that are now unsupported. The revolutionpi devices will make matching the amount of I/O in the existing control panels a piece of cake.
Quote 0 0
dirk
Hi @thiagoralves are you doing? Could you manage to integrate OpenPLC on the RevPi ?
Quote 0 0
thiagoralves
Hi Dirk! I haven’t worked much on it yet because I didn’t have a lab in Brazil where I was working. I just came back to US this Monday and will get this going. I’ll let you know if I have any questions in the process. Thanks!
Quote 0 0
hjbleier
Hey @thiagoralves have you had any time to work on the revolution pi integration with the openplc runtime? Which models are you going to support or are we going to get the whole line of their Core and I/O products, I am interested in the DIO and AIO modules with the core3 or core3+. Let me know, I can be a beta tester for you if you need 😀👍
Quote 1 0
thiagoralves
Hi guys. I’m still working on it. Time is at a premium with my new job, haven’t done any update on OpenPLC code in a while. But don’t worry, it should be out soon. I’ll try to work on it this week.
Quote 0 0
thiagoralves

Hi guys, I have some fresh updates for you about the Revolution Pi driver. I got some free time and started playing around with the PiControl library and Pictory config files. I'm attaching here a preliminary driver for the Revolution Pi. It does not control any I/O points yet, but it is detecting all the I/O connected to the bus and configured on Pictory. Here are the installation instructions:
SSH into your Revolution Pi device and then install OpenPLC as usual

sudo apt-get update
sudo apt-get upgrade -y
git config --global http.sslVerify "false"
git clone http://github.com/thiagoralves/OpenPLC_v3.git
cd OpenPLC_v3
./install.sh linux

The git config line disables certificate checking because, for some reason, there seems to be an issue with Revolution Pi Raspbian image and certificates (at least on my sample device). Once certificate check is disabled you should be able to git clone OpenPLC repository as usual.
Now that OpenPLC is installed, go to Pictory and configure your I/O devices as per instructions on the Revolution Pi website. At the end, export your configuration going to File -> Export, and then select the first format "ST GLOBALS for logiCAD3" (the default option).At the bottom, instead of choosing "Download", select "Show Only" and then click Ok. This will export the configuration in a location and format that the OpenPLC driver can read. Just close the dialogs and exit Pictory.

Now grab the blank.txt file attached to this post, rename it to blank.cpp and copy it to /home/pi/OpenPLC_v3/webserver/core/hardware_layers folder on your Revolution Pi device. Go to OpenPLC webserver, login, go to Hardware, select the Blank Linux driver and click on "Save Changes". This will load the new Revolution Pi driver into the system. Now just click on Start PLC and you will see on the dashboard all your I/O points and their respective location.

Please try this driver and let me know if it works detecting all your I/O points. If there is any issue, please report back with your dashboard logs and your exported configuration file (just copy and paste it from the dialog in Pictory)

update 11/6:
Now the driver can read all digital I/O points!


Quote 0 0
thiagoralves
Here is the final driver. This driver can manipulate all analog and digital inputs and outputs. I don't have any analog module to test so I'm not sure on the mileage for the analog I/O. The driver works well reading the counter register, which is essentially an analog quantity, so I assume it works for all analog I/O as well. Installation steps are the same as the instructions from the post above. Please test it and report back. Once I get enough feedback from users saying that it is working, I will push the driver to the official OpenPLC repository.
Quote 0 0
dirk
Hi Thiago, thank you for your work. I have placed a post in the RevPi forum and ask for help in order to support testing your release.
Quote 0 0