How to install and use Rapid Scada on Touchberry Pi and BananaTouch
10 December, 2018 by
How to install and use Rapid Scada on Touchberry Pi and BananaTouch
Alejandro Jabalquinto


Introduction

In this post it is shown how to install Rapid SCADA on a Touchberry B3 PI 10.1″, BananaTouch Octacore M3 10.1″, BananaTouch M64 10.1″ and TouchBerry Pi B3 7″ IN/OUT.

These products use an official Raspberry Pi 3 or an official Banana Pi products. These products have installed a Linux Debian Jessie. So, on this post we will see how to install Rapid SCADA on this OS. Rapid SCADA is free, open source, full featured SCADA software. 


Requirements

Implementation

This post is divided for three sections: how to install Rapid SCADA,  how to configure Rapid SCADA and how to display on the Touch.

How to install Rapid SCADA

Below is a step-wise guide to install and run the Rapid Scada on your Industrial shields pi devices:

  1. Download Rapid SCADA 5.2.1 Mono. Unzip the file on the Touch.

  2. Unzip and copy all the files of Rapid SCADA Mono from SCADA folder to /opt/scada and copy the scripts from daemons folder to /etc/init.d

  3. Grant full access to the following folders of the Webstation application:
    sudo chmod -R ugo+rwx /opt/scada/ScadaWeb/config
    sudo chmod -R ugo+rwx /opt/scada/ScadaWeb/log
    sudo chmod -R ugo+rwx /opt/scada/ScadaWeb/storage

  4.  Make the scripts executable:

    sudo chmod +x /opt/scada/make_executable.sh
    sudo /opt/scada/make_executable.sh
  5. Add the Mono repository to your system. Go to the following link and go to the linux and then Raspbian tab. In this run the commands for Raspbian 10 and follow all the three steps.
    https://www.mono-project.com/download/stable/#download-lin

  6. Install Mono .NET Framework:

    sudo apt-get install mono-complete

  7. Check whether Apache web server already installed or not:

    sudo service apache2 status
    if not ,install it:
    sudo apt-get install apache2

  8. Install other required modules:

    sudo apt-get install libapache2-mod-mono mono-apache-server4
  9. Create a link to the web application files:

    sudo ln -s /opt/scada/ScadaWeb /var/www/html/scada
  10. Configure the web application: 
    To do that, you will have to copy the scada.conf file from the unzipped folder to the apache folder /etc/apache2/sites-available and run:

    sudo a2ensite scada.conf

  11. Execute the script to install daemons:

    sudo /opt/scada/svc_install.sh

    Incase it has errors, you can make it an executeable using:

    sudo chmod +x ./svc_install.sh

  12.  In case of using SD card, protect it by moving frequently used folders to RAM. Add the lines below to /etc/fstab

    tmpfs           /tmp                        tmpfs    defaults,noatime,size=50m     0    0
    tmpfs           /var/log                    tmpfs    defaults,noatime,size=50m     0    0
    tmpfs           /opt/scada/ScadaComm/Log    tmpfs    defaults,noatime,size=100m    0    0
    tmpfs           /opt/scada/ScadaServer/Log  tmpfs    defaults,noatime,size=10m     0    0
    tmpfs           /opt/scada/ScadaWeb/log     tmpfs    defaults,noatime,size=10m     0    0
    tmpfs           /opt/scada/ArchiveDAT/Cur   tmpfs    defaults,noatime,size=10m     0    0
    
  13. After these steps, our Touch is all set for use Rapid SCADA. Just reboot the Touch for this change to take effect, typing on the terminal:    sudo reboot

  14. Open Webstation (Google Chrome is recommended).Default login and password are admin/12345  
    http://<Host name or IP address>/scada

  15. Check Rapid SCADA operating using log files located in:
     /opt/scada/ScadaAgent/Log
    /opt/scada/ScadaComm/Log
    /opt/scada/ScadaServer/Log
    /opt/scada/ScadaWeb/log

Once this is done, you should be able to run the Rapid Scada successfully. 


How to install and use Rapid Scada on Touchberry Pi and BananaTouch
Alejandro Jabalquinto
10 December, 2018
Share this post
Archive

Looking for your ideal PLC?

Take a look at this product comparison with other industrial controllers Arduino-based.

We are comparing inputs, outputs, communications and other features with the ones of the relevant brands.


Industrial PLC comparison >>

Do you want more information?

Just fill the form!

Tell me more!