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/10/06 13:32]
avsetula
en:sw:01-mervis:mervis-scada-project-hidden [2024/04/03 07:46] (current)
avsetula
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 86: Line 106:
  
 ===== 2 PLC configuration ===== ===== 2 PLC configuration =====
-The second step is to configure the PLC to make it accessible for Mervis SCADA. Create a new project ​in the Mervis IDE, or open an existing one. The project ​must be opened in [[creating-new-project-hidden#​switching_from_simple_mode_to_full_mode|Full mode]].+The second step is to configure the PLC to make it accessible for Mervis SCADA. Create a new solution ​in the Mervis IDE, or open an existing one. The solution ​must be switched to [[creating-new-project-hidden#​switching_from_simple_mode_to_full_mode|Full mode]].
  
 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 serviceIn this caseuse identical login info for each PLC within a 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 (graphs) ​in the SCADA web interface or mobile ​applicationit is necessary that the PLC stores ​data in Mervis DB. Together with the SCADA projectone set of Mervis DB credentials is also generated ​for all PLCs connected to this SCADA project. ​Setup and storing to DB is explained ​in detail ​in the [[storing-data-to-mervis-db-hidden|Storing data to the Mervis DB]] tutorial.
  
 Upon finishing the Mervis Proxy and Mervis DB configuration,​ don’t forget to [[updating-a-runtime-configuration-hidden|upload the configuration into the PLC]]. Upon finishing the Mervis Proxy and Mervis DB configuration,​ don’t forget to [[updating-a-runtime-configuration-hidden|upload the configuration into the PLC]].
Line 141: Line 160:
   * **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 171:
   * 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%>
Line 165: Line 186:
 </​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 195:
 */ */
  
-<​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 241:
 </​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 292:
  
 ==== 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 298:
 </​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 ​items. A 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:​25a-mervis-scada-project-en_ide240.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.png)">​ +<​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.png" />+<img src="​https://​kb.unipi.technology/​_media/​en:​sw:​01-mervis:​26-mervis-scada-project-en_ide240.png" />
 </​figure></​html>​ </​figure></​html>​
  
Line 288: Line 322:
  
 <WRAP center round info 90%> <WRAP center round info 90%>
-In case of editing ​dbtable, graphic HMI or any other adjustments in the SCADA terminal without any changes in the PLC itself, you do not need to deploy the solution into the PLC - a compilation only will do. By compiling the solution, a new definition for Mervis SCADA will be generated without affecting the PLC. +In case of editing ​dptable, graphic HMI or any other adjustments in the SCADA terminal without any changes in the PLC itself, you do not need to deploy the solution into the PLC - a compilation only will do. By compiling the solution, a new definition for Mervis SCADA will be generated without affecting the PLC. 
 </​WRAP>​ </​WRAP>​
  
Line 313: Line 347:
  
 <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]].
 </​WRAP> ​ </​WRAP> ​
  
Line 322: Line 356:
 {{ :​en:​sw:​01-mervis:​31-mervis-scada-project-en.png?​nolink |}} {{ :​en:​sw:​01-mervis:​31-mervis-scada-project-en.png?​nolink |}}
  
-===== 5 =====+===== 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. If you want to **create a graphic template**, check out the  [[creating-scada-graphic-hidden|]] tutorial and then return here.