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
Next revision Both sides next revision
en:sw:01-mervis:08-sscp-bridge [2020/05/21 12:02]
tomhora
en:sw:01-mervis:08-sscp-bridge [2020/07/15 08:23]
jan_kozak [Configuration file structure]
Line 6: Line 6:
   * **Daemon runs on the PLC**   * **Daemon runs on the PLC**
     * In this case, the daemon runs on the PLC right next to the Mervis RT and send the data to a remote database. Requires IP connection between the PLC and the database server.     * In this case, the daemon runs on the PLC right next to the Mervis RT and send the data to a remote database. Requires IP connection between the PLC and the database server.
-  * **Daemon runs a different machine/​server**+  * **Daemon runs on a different machine/​server**
     * This can be divided into two scenarios depending on the network connection.     * This can be divided into two scenarios depending on the network connection.
     * **Daemon has IP access to the PLC**     * **Daemon has IP access to the PLC**
Line 45: Line 45:
   - One or more **.vlist** file(s) containing a list of all variables in the Mervis project(s). These files are generated automatically by the Mervis IDE and are located in the main Mervis project folder in your Windows PC. These files should be copied (eg. using SCP) from the PC to the PLC/server where this toll will run. Default path within the PLC/server is /​opt/​unipi/​data/​ and can be changed in the **mapping.yaml** file. This .vlist file should not be edited manually.   - One or more **.vlist** file(s) containing a list of all variables in the Mervis project(s). These files are generated automatically by the Mervis IDE and are located in the main Mervis project folder in your Windows PC. These files should be copied (eg. using SCP) from the PC to the PLC/server where this toll will run. Default path within the PLC/server is /​opt/​unipi/​data/​ and can be changed in the **mapping.yaml** file. This .vlist file should not be edited manually.
  
-Care should be taken that the configuration files follow the valid YAML format. An online YAML validator (such as this one https://​codebeautify.org/​yaml-validator) can be used to ensure this. Do not add any extra fields that are not listed in the example.+Make sure the configuration files follow the valid YAML format. An online YAML validator (such as this one https://​codebeautify.org/​yaml-validator) can be used to ensure this. Do not add any extra fields that are not listed in the example.
  
 The structure of the mapping.yaml file is described below. The structure of the mapping.yaml file is described below.
Line 68: Line 68:
     * **sscp_username** — sscp credentials,​ can be set through Mervis IDE     * **sscp_username** — sscp credentials,​ can be set through Mervis IDE
     * **sscp_password** — sscp credentials,​ can be set through Mervis IDE     * **sscp_password** — sscp credentials,​ can be set through Mervis IDE
-    * **db_user** — DB server ​credentials +    * **db_user** — DB server ​login 
-    * **db_pass** — DB server ​credentials+    * **db_pass** — DB server ​password
     * **db_ip** — DB server IP (can be 127.0.0.1 if the daemon runs on the same machine)     * **db_ip** — DB server IP (can be 127.0.0.1 if the daemon runs on the same machine)
     * **db_port** — Database server port (3306 is usually the default)     * **db_port** — Database server port (3306 is usually the default)