Table of Contents

Multiple temperature monitoring using xG18 extension

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.

  • Login: demo
  • Password: demo

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:

  1. Download and upload Mervis OS into your PLC and install Mervis IDE
  2. Connect the xG18 modules to your Unipi PLC using the RS485 interface. Make sure to follow the serial connection scheme (see the picture in the link) and continue to the next xG18 in line. With all xG18’s connected terminate the bus on each end (a switch next to the RS485’s connector). In this case (eg. the bus begins with an Unipi PLCs and ends with xG18 module), use terminating resistors on both of these devices.
  3. Set Modbus slave addresses on all xG18 modules using their DIP switches (select addresses 1,2,4)
  4. Connect a power supply to the PLC and all xG18 modules
  5. Create Unipi customer account via Unipi.Technology webpage. If you already have an account, log in
  6. Create a Mervis SCADA project. A guide for the process is available in Chapter 1.2 of guide
  7. Download this project, extract it and open it in Mervis IDE

scada_24_demo_project_en_v2.3.0_100623.zip

Editing the project

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:

Uploading the project and SCADA definition

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.

Useful tips

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.

Advantages