Requirements and Installation
Requirements
- WinCC OA and the Add-on package SmartSCADA (SmartSCADA_3.19)
- A valid license for SmartSCADA. The following license options are available for SmartSCADA: smartscada_kpi >= 1, smartscada_analyt = Expiration date of the package (YYYYMMDD) e.g. 20171031. See chapter WinCC OA License Options
- Windows or Linux 64bit.
R Software Version well as further R packages. For information on the supported R version, see chapter Software requirements.
Installation
In the following the installation of SmartSCADA is described. Some of the installation steps are only necessary under Windows and others only under Linux. These steps contain a reference to the respective platform. All other installation steps are valid for both platforms. To install Smart SCADA, proceed as follows:
R Installation
- In order to use SmartSCADA, the installation of R is necessary: Install the R
version 4.2.3 https://cran.r-project.org/bin/windows/base/old/4.2.3/ (Windows) or https://cran.r-project.org/bin/linux/ (Linux) as an administrator.
- Install the "Core files", the 64 bit files as well as Message translations:
-
Furthermore, open the RGUI and install the R packages. Therefore, execute the following commands in the R console:
>install.packages("RInside") install.packages("Rcpp") install.packages("forecast") install.packages("randomForest") install.packages("skmeans") install.packages("tseries") install.packages("xts") install.packages("binhf") install.packages("TSA")
- After installing R and the packages, set the system variables listed below (Windows: MyComputer -> Properties -> Advanced System Settings -> Environment variables button).:
Environment variables Under Windows:
R_HOME ... to the R installation directory:
R_LIBS_USER ... to the R extension packages Rcpp and RInside:
Additionally set the Windows path to:
%R_HOME%\bin\x64
%R_LIBS_USER%\RInside\libs\x64
To reload the environment variables, stop the project and restart it.
Environment variables under Linux
To reload the environment variables, stop the project and restart it.
Main Project integration into your project
- Install WinCC OA Version 3.19, for the installation see chapter Installation under Windows or Installation under Linux.
-
Install the SmartSCADA package
via R Shell:
install.packages("wincc_oa_path/SmartSCADA_3.19/data/SmartSCADA/smartscada_1.2.tar.gz", repos = NULL, type="source", INSTALL_opts="--no-multiarch")
e.g. install.packages("C:/Siemens/Automation/WinCC_OA/3.19/SmartSCADA_3.19/data/SmartSCADA/smartscada_1.2.tar.gz",repos = NULL, type="source", INSTALL_opts="--no-multiarch")
- Include the sub project "SmartSCADA_3.19" into your main project. How to include a sub project, see chapter Change Project properties. Note that by including the SmartSCADA sub project into your customized project, you can also use SmartSCADA in customized projects.
- Add a CTRL manager with the script SmartSCADA.ctc and start mode "always" to the
WinCC OA
console:
SmartSCADA.ctc
-
Add a CTRL manager with the script webclient_http.ctl and start mode "always" to the WinCC OA console:
webclient_http.ctl
CAUTION: In case the parts used are not the default the ports can be changed by the config entries [[webClient] httpPort or [[webClient] httpsPort. Additionally the port for the web server has to be changed with [[ui]_httpServer for usage of loadSnippet. -
You can find the SmartSCADA wizards in the System Management ->on the SmartSCADA tab.
General debug Flag for SmartSCADA
A general debug flag is available for SmartSCADA:
-dbg ssc_debug
Shows general debug information for SmartSCADA.