The following guide demonstrates a quick deployment and testing of a PLC Unipi with three Unipi Extension xG18 extension models, an external web server (HMI), Mervis DB, Mervis Proxy and Mervis SCADA. As this guide assumes this is your first experience with Unipi controllers, every step is thoroughly explained.
Patron
Neuron
Gate
Axon
A demo of this project is available on the Mervis SCADA interface webpage.
Prerequisites:
The selected Neuron S103 controller serves just as an example. The following guide can be used with any Unipi controller, except Unipi 1.1.
Preparations for this tutorial:
Your workspace should now look like this:
Right-click on PLC and select Attach PLC. A dialogue window will open - select UDP broadcast and click on Next. If you have a PLC with freshly uploaded OS Mervis, click on Next - otherwise, enter valid data. The system will now look for all PLCs connected to your local network. Choose your PLC (ie. by its MAC address on the manufacturer sticker) and click on Next.
A PLC configuration download dialogue will show. This is not required for now - leave the box unchecked and continue by clicking OK.
Click on PLC to display its properties in the right column. Here, look for Mervis DB parameters and Proxy parameters sections. If you possess only a licence request card with activation code for Mervis services, start by following this guide. Enter your login and password for Mervis DB and the Proxy ID - both can be found on the Unipi.Technology webpage.
Mervis DB is designed for long-term (cloud) data storage and is utilized mainly by the Mervis SCADA service. Mervis Proxy then serves for remote and secure connection to PLCs, be it a connection through Mervis SCADA (which is then able to read to and write from variables for control and monitoring of programs on PLCs), or from the Mervis IDE for uploading, debugging and controlling programmes.
To better understand Mervis DB, Mervis Proxy and their configurations you can check the following tutorials containing all important settings. This configuration is already included in the downloadable project.
As the previous steps changed the PLC configuration (which is not uploaded along with the solution), you need to upload it. In the left panel right-click on PLC and select:
PLC Operations → PLC Settings → Upload configuration
If you are unsure what to do, check out the Uploading a RunTime configuration guide.
Now click on Terminal_SCADA
. In the right panel, a list of the terminal's properties will display. Enter the same data as in the properties of the SCADA project you created in the customer portal. Open the customer portal and display the SCADA project you created earlier.
Set the terminal parameters in Mervis IDE to the following:
Now click on the PLC assigned to the SCADA terminal. In the SSCP Parameters section edit the parameters as follows:
If you have everything set according to the previous steps, click on Deploy solution. After that check, if all available fields are marked in order to upload the program, the local web and also to create Mervis SCADA definition.
Continue by Chapter 4 of the Creating a Mervis SCADA project tutorial to upload the Mervis SCADA definition created in the previous step.
Note: Before any adjustments in the program or the configuration you need to switch back to the main profile by double-clicking on it. The selection is indicated by Proxy becoming grey. Re-activate the Proxy profile before remote deployment of the program and disable it again afterwards.