Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:sw:01-mervis:mervis-scada-project-hidden [2020/06/22 15:38]
avsetula [2.1 Creating a SCADA terminal]
en:sw:01-mervis:mervis-scada-project-hidden [2022/05/06 12:39] (current)
avsetula [4 Uploading the Mervis SCADA project definition]
Line 1: Line 1:
 +<​html><​div class="​version-switch">​
 +  <a href="#​creating_a_mervis_scada_project"><​div class="​actual-version">​IDE v2.4.0 and later</​div></​a>​
 +  <a href="/​en:​sw:​01-mervis:​mervis-scada-project-v230-hidden"><​div>​IDE v2.3.0</​div></​a>​
 +</​div></​html>​
 +
 ====== Creating a Mervis SCADA project ====== ====== Creating a Mervis SCADA project ======
 <WRAP group> <WRAP group>
Line 6: Line 11:
 <WRAP half column 15%> <WRAP half column 15%>
 ;;# ;;#
-<​html><​span class="​dev-tag dev-axon">Axon</​span></​html>​ \\+<​html><​span class="​dev-tag dev-patron">Patron</​span></​html>​ \\
 <​html><​span class="​dev-tag dev-neuron">​Neuron</​span></​html>​ \\ <​html><​span class="​dev-tag dev-neuron">​Neuron</​span></​html>​ \\
-<​html><​span class="​dev-tag dev-unipi11">​Unipi&​nbsp1.1</​span></​html>​+<​html><​span class="​dev-tag dev-gate">​Gate</​span></​html>​ \\ 
 +<​html><​span class="​dev-tag dev-unipi11">​Unipi&​nbsp1.1</​span></​html>​ \\ 
 +<​html><​span class="​dev-tag dev-axon">​Axon</​span></​html>​
 ;;# ;;#
 </​WRAP>​ </​WRAP>​
Line 15: Line 22:
 The following tutorial will show you how to create a new Mervis SCADA project, and how to use Mervis SCADA for access to an already existing Mervis IDE project. ​ The following tutorial will show you how to create a new Mervis SCADA project, and how to use Mervis SCADA for access to an already existing Mervis IDE project. ​
  
-==== Prerequisites ​==== +<WRAP center round box> 
-  * [[https://​www.unipi.technology/​axon-c20 | Unipi controllers]] with at least [[en:​files:​software:​os-images:​00-start|Mervis OS v2.2.0]] and [[en:​files:​software:​mervis:​00-start|Mervis IDE v2.3.0]]+<​html><​span class="​kbBlue-H4alt">​Prerequisites:</​span></​html>​ 
 +  * [[https://​www.unipi.technology/​axon-c20 | Unipi controllers]] with at least [[en:​files:​software:​os-images:​00-start|Mervis OS v2.2.0]] and [[en:​files:​software:​mervis:​00-start|Mervis IDE v2.4.0]]
   * Internet connection   * Internet connection
   * Valid user account and activated license on the [[https://​www.unipi.technology/​getmervis|Unipi webpage ]]   * Valid user account and activated license on the [[https://​www.unipi.technology/​getmervis|Unipi webpage ]]
 +</​WRAP>​
 +
 +
 +===== Modification after upgrade from Mervis IDE 2.3.0 =====
 +If you are upgrading project from IDE 2.3.0 version, it is necessary to set [[#​plc-history-profile|PLC history profile]] which was set in the IDE 2.3.0 version for the SCADA terminal. This history profile is now set separately for each assigned controller.
 +
 +It is also necessary, in the table of data points, to mark the data points for which you store history in the database and then select the item "​Assigned history profiles"​ in the right column. More is described in the chapter [[#​adding_data_points_into_the_mervis_db|3.3 Adding data points into the Mervis DB]].
 +
  
 ===== 1 Introduction into the Mervis SCADA ===== ===== 1 Introduction into the Mervis SCADA =====
Line 54: Line 70:
 ==== 1.2 Creating a SCADA project ==== ==== 1.2 Creating a SCADA project ====
 The first step of connecting your PLC into the Mervis SCADA is to create a SCADA project using the [[https://​www.unipi.technology/​customer/​scada/​|Customer portal]]. Log in using the account you purchased the PLC with. The first step of connecting your PLC into the Mervis SCADA is to create a SCADA project using the [[https://​www.unipi.technology/​customer/​scada/​|Customer portal]]. Log in using the account you purchased the PLC with.
 +
 +<WRAP center round info 95%>
 +If you do not have our customer account, you need to register to create one on the [[https://​www.unipi.technology/​customer/​registration/​|Unipi technology]] website.
 +</​WRAP>​
  
 <​html><​figure ondblclick="​redirectImg(this)"​ class="​zoom"​ onclick="​zoom(event)"​ style="​background-image:​ url(https://​kb.unipi.technology/​_media/​en:​sw:​01-mervis:​01-mervis-scada-project-en.png)">​ <​html><​figure ondblclick="​redirectImg(this)"​ class="​zoom"​ onclick="​zoom(event)"​ style="​background-image:​ url(https://​kb.unipi.technology/​_media/​en:​sw:​01-mervis:​01-mervis-scada-project-en.png)">​
Line 90: Line 110:
 Any PLC we want to connect to the SCADA project must be connected to the Mervis Proxy service. You can configure Mervis Proxy using the Proxy Parameters section located in the PLC properties. All the needed parameters are available in your [[https://​www.unipi.technology/​getmervis|Customer portal]]. Use a unique Proxy ID for each PLC. A more detailed description is available in the [[connecting-to-unipi-via-mervis-proxy-hidden|Connecting to Unipi via Mervis Proxy]] tutorial. Any PLC we want to connect to the SCADA project must be connected to the Mervis Proxy service. You can configure Mervis Proxy using the Proxy Parameters section located in the PLC properties. All the needed parameters are available in your [[https://​www.unipi.technology/​getmervis|Customer portal]]. Use a unique Proxy ID for each PLC. A more detailed description is available in the [[connecting-to-unipi-via-mervis-proxy-hidden|Connecting to Unipi via Mervis Proxy]] tutorial.
  
-To display historic data in the SCADA control panel and the mobile app, the PLC must send data to the Mervis DB service. ​In this case, use identical login info for each PLC within ​single SCADA project. Again, Mervis DB login info can be found in the [[https://​www.unipi.technology/​getmervis|Customer portal]]. A more detailed explanation is available in the [[storing-data-to-mervis-db-hidden|Storing data to the Mervis DB]] tutorial.+To display historic data in the SCADA control panel and the mobile app, the PLC must send data to the Mervis DB service. ​Each PLC within single SCADA project ​can have specific Mervis DB credentials,​ but identical credentials for all PLCs can also be used. Again, Mervis DB login info can be found in the [[https://​www.unipi.technology/​getmervis|Customer portal]]. A more detailed explanation is available in the [[storing-data-to-mervis-db-hidden|Storing data to the Mervis DB]] tutorial.
  
  
Line 141: Line 161:
   * **Project Time Zone:** set the same timezone as you have set on the SCADA project   * **Project Time Zone:** set the same timezone as you have set on the SCADA project
   * **Project Domain:** copy the SCADA project domain   * **Project Domain:** copy the SCADA project domain
-  * **Mervis DB URL:** set to [[https://​db.unipi.technology/​dbaccess]] 
-  * **Mervis DB login and Mervis DB password:** enter the login and password entered in the PLC properties. 
  
-<​html><​figure ondblclick="​redirectImg(this)"​ class="​zoom"​ onclick="​zoom(event)"​ style="​background-image:​ url(https://​kb.unipi.technology/​_media/​en:​sw:​01-mervis:​12-mervis-scada-project-en.png)">​ +<​html><​figure ondblclick="​redirectImg(this)"​ class="​zoom"​ onclick="​zoom(event)"​ style="​background-image:​ url(https://​kb.unipi.technology/​_media/​en:​sw:​01-mervis:​12-mervis-scada-project-en_v240.png)">​ 
-<img src="​https://​kb.unipi.technology/​_media/​en:​sw:​01-mervis:​12-mervis-scada-project-en.png" />+<img src="​https://​kb.unipi.technology/​_media/​en:​sw:​01-mervis:​12-mervis-scada-project-en_v240.png" />
 </​figure></​html>​ </​figure></​html>​
  
Line 154: Line 172:
   * Enter the same **Proxy ID** as the one used in properties of the given PLC.  ​   * Enter the same **Proxy ID** as the one used in properties of the given PLC.  ​
  
-<​html><​div class="​directTag"​ id="​1"></​div></​html>​+
 <​html><​span class="​kbBlueText">​Continue with configuring the TCP Parameters. We recommend using the SSL secure connection. </​span></​html>​ \\ <​html><​span class="​kbBlueText">​Continue with configuring the TCP Parameters. We recommend using the SSL secure connection. </​span></​html>​ \\
-  * **Device ​Address:** ''​proxy.unipi.technology''​+  * **Device ​Hostname:** ''​proxy.unipi.technology''​
   * **Port:** ''​12349''​   * **Port:** ''​12349''​
   * **Enable SSL:** True   * **Enable SSL:** True
 +  * **Certificate Validation:​** set to FALSE
 +
 +/*
   * **Certificate Validation:​** set to FALSE by default, more info available at -> [[ssl-certification-validation-hidden|SSL Certification validity]]   * **Certificate Validation:​** set to FALSE by default, more info available at -> [[ssl-certification-validation-hidden|SSL Certification validity]]
 +*/
  
 <WRAP center round tip 85%> <WRAP center round tip 85%>
-**Note:** you need to always use secured connection ​for Mervis IDE to communicate with the PLC. The complete guide to securing a controller ​is available on [[en:​sw:​01-mervis:​creating-new-project-hidden#​securing_the_controller|this ​link]].+**Note:** you need to always use secured connection ​from Mervis IDE to the PLC. Chapter Securing the controller ​in [[en:​sw:​01-mervis:​creating-new-project-hidden#​securing_the_controller|this ​guide]] will guide you through the process.
 </​WRAP>​ </​WRAP>​
  
 +<​html><​div class="​directTag"​ id="​plc-history-profile"></​div></​html>​
 +<​html><​span class="​kbBlueText">​Now you only need to set the PLC history profile.</​span></​html>​ \\
 +  * **Mervis DB URL:** set to [[https://​db.unipi.technology/​dbaccess]]
 +  * **Mervis DB User Name and Mervis DB Password:** enter the username and password entered in the PLC properties.
  
 /* FIXME - zveřejnit až bude hotový návod na který odkazuje /* FIXME - zveřejnit až bude hotový návod na který odkazuje
Line 170: Line 196:
 */ */
  
-<​html><​figure ondblclick="​redirectImg(this)"​ class="​zoom"​ onclick="​zoom(event)"​ style="​background-image:​ url(https://​kb.unipi.technology/​_media/​en:​sw:​01-mervis:​13-mervis-scada-project-en.png)">​ +<​html><​figure ondblclick="​redirectImg(this)"​ class="​zoom"​ onclick="​zoom(event)"​ style="​background-image:​ url(https://​kb.unipi.technology/​_media/​en:​sw:​01-mervis:​13-mervis-scada-project-en_v240.png)">​ 
-<img src="​https://​kb.unipi.technology/​_media/​en:​sw:​01-mervis:​13-mervis-scada-project-en.png" />+<img src="​https://​kb.unipi.technology/​_media/​en:​sw:​01-mervis:​13-mervis-scada-project-en_v240.png" />
 </​figure></​html>​ </​figure></​html>​
  
Line 216: Line 242:
 </​figure></​html>​ </​figure></​html>​
  
-For digital IOs (two or multiple state variables), you need to set up mapping, eg. how the variable value will be represented in Mervis SCADA. A variable can be represented either as a text or as a number. Click on three dots next to the **State Mapping**. ​+For digital IOs (two or multiple state variables), you can to set up mapping, eg. how the variable value will be represented in Mervis SCADA. A variable can be represented either as a text or as a number. Click on three dots next to the **State Mapping**. ​
  
 <​html><​figure ondblclick="​redirectImg(this)"​ class="​zoom"​ onclick="​zoom(event)"​ style="​background-image:​ url(https://​kb.unipi.technology/​_media/​en:​sw:​01-mervis:​18-mervis-scada-project-en.png)">​ <​html><​figure ondblclick="​redirectImg(this)"​ class="​zoom"​ onclick="​zoom(event)"​ style="​background-image:​ url(https://​kb.unipi.technology/​_media/​en:​sw:​01-mervis:​18-mervis-scada-project-en.png)">​
Line 267: Line 293:
  
 ==== 3.3 Adding data points into the Mervis DB ==== ==== 3.3 Adding data points into the Mervis DB ====
-After selecting and adding all data points into the table, ​select them all. +After adding all data points into the table, ​mark all datapoints belonging under one PLC
  
 <WRAP center round important 75%> <WRAP center round important 75%>
Line 273: Line 299:
 </​WRAP>​ </​WRAP>​
  
-<​html><​figure ondblclick="​redirectImg(this)"​ class="​zoom"​ onclick="​zoom(event)"​ style="​background-image:​ url(https://​kb.unipi.technology/​_media/​en:​sw:​01-mervis:​25-mervis-scada-project-en.png)">​ +<​html><​figure ondblclick="​redirectImg(this)"​ class="​zoom"​ onclick="​zoom(event)"​ style="​background-image:​ url(https://​kb.unipi.technology/​_media/​en:​sw:​01-mervis:​25-mervis-scada-project-en_ide240.png)">​ 
-<img src="​https://​kb.unipi.technology/​_media/​en:​sw:​01-mervis:​25-mervis-scada-project-en.png" />+<img src="​https://​kb.unipi.technology/​_media/​en:​sw:​01-mervis:​25-mervis-scada-project-en_ide240.png" />
 </​figure></​html>​ </​figure></​html>​
  
-Right-click on any of the highlighted itemsA context menu will appear. Select ​**Add to History**.+If you have only one PLC in this project, skip this paragraph and continue [[#add-to-history|adding to the history]]. If you have more than one PLC, click on the three dots {{:​files:​dialog-open_button.png?​nolink|}} next to the **Assigned history profiles** parameter. A window will open where you can assign the corresponding history profile, confirm with OK. Now mark the datapoints belonging to the next PLC and repeat the procedure
  
-<​html><​figure ondblclick="​redirectImg(this)"​ class="​zoom"​ onclick="​zoom(event)"​ style="​background-image:​ url(https://​kb.unipi.technology/​_media/​en:​sw:​01-mervis:​26-mervis-scada-project-en.png)">​ +<​html><​figure ondblclick="​redirectImg(this)"​ class="​zoom"​ onclick="​zoom(event)"​ style="​background-image:​ url(https://​kb.unipi.technology/​_media/​en:​sw:​01-mervis:​25a-mervis-scada-project-en_ide240.png)">​ 
-<img src="​https://​kb.unipi.technology/​_media/​en:​sw:​01-mervis:​26-mervis-scada-project-en.png"​ />+<img src="https://​kb.unipi.technology/​_media/​en:​sw:​01-mervis:​25a-mervis-scada-project-en_ide240.png"​ /> 
 +</​figure></​html>​ 
 + 
 +<​html><​div class="​directTag"​ id="​add-to-history"></​div></​html>​ 
 +Next, select all data points and right-click on one of the selected items. A context menu will appear. Select **Add to History**. ​  
 + 
 +//**Note:** If you have multiple history logs, the datapoints can be sorted according to specific requirements,​ so the procedure may differ slightly.//  
 + 
 +<​html><​figure ondblclick="​redirectImg(this)"​ class="​zoom"​ onclick="​zoom(event)"​ style="​background-image:​ url(https://​kb.unipi.technology/​_media/​en:​sw:​01-mervis:​26-mervis-scada-project-en_ide240.png)">​ 
 +<img src="​https://​kb.unipi.technology/​_media/​en:​sw:​01-mervis:​26-mervis-scada-project-en_ide240.png" />
 </​figure></​html>​ </​figure></​html>​
  
Line 313: Line 348:
  
 <WRAP center round box> <WRAP center round box>
-The Mervis SCADA is now set. Go to the [[https://​scada.unipi.technology/​|scada.unipi.technology]] webpage and log in using the login info you [[#prvotni_nastaveni_mervis_scada|entered in Chapter 1]]+The Mervis SCADA is now set. Go to the [[https://​scada.unipi.technology/​|scada.unipi.technology]] webpage and log in using the login info you [[#introduction_into_the_mervis_scada|entered in Chapter 1]].
-If you want to **create a graphic template**, check out the  [[creating-scada-graphic-hidden|Creating a graphic HMI for Mervis SCADA]] tutorial and then return here+
 </​WRAP> ​ </​WRAP> ​
  
Line 323: Line 357:
 {{ :​en:​sw:​01-mervis:​31-mervis-scada-project-en.png?​nolink |}} {{ :​en:​sw:​01-mervis:​31-mervis-scada-project-en.png?​nolink |}}
  
-===== 5 Mervis SCADA web interface =====+===== 5 Creating a graphic scheme (HMI) for Mervis SCADA ===== 
 +If you want to **create a graphic template**, check out the  [[creating-scada-graphic-hidden|]] tutorial and then return here. 
 + 
 +===== 6 Mervis SCADA web interface =====
 The picture below depicts a web interface. This interface contains a single project (right column) and two data points (left column). ​ The picture below depicts a web interface. This interface contains a single project (right column) and two data points (left column). ​
  
Line 336: Line 373:
 </​figure></​html>​ </​figure></​html>​
  
-===== Mervis mobile app interface =====+===== Mervis mobile app interface =====
 {{ :​en:​sw:​01-mervis:​34-mervis-scada-project-en.png?​direct&​200|}} {{ :​en:​sw:​01-mervis:​34-mervis-scada-project-en.png?​direct&​200|}}
 [[https://​play.google.com/​store/​apps/​details?​id=cz.energocentrum.mervis|{{:​en:​sw:​01-mervis:​badge_new.png?​169}}]] ​   ​ [[https://​play.google.com/​store/​apps/​details?​id=cz.energocentrum.mervis|{{:​en:​sw:​01-mervis:​badge_new.png?​169}}]] ​   ​