Auto Report Application

Overview

The Auto Report application is designed to automatically generate various reports, save them to disk and send by email. The schedule for generating reports is set using Automatic Control Module. Sending reports by email is provided by the corresponding KpEmail.dll driver, which is included in the standard Rapid SCADA installation.

The following types of reports are supported:

  • Hourly data report;
  • Event report;
  • Minute data report;
  • Elastic report.

Work Algorithm

Auto Report works as a service. It connects to the Server application and is permanently ready to receive commands. Automatic Control Module, which operates as part of Server, sends commands to execute tasks for generating reports at specified time. Due to a command, a set of reports is generated and saved to disk in a format of office files or archive. If the corresponding option is set, the Auto Report application passes a command to Server to send the generated reports by email.

Installation

  1. Unzip the application installation package.
  2. Copy all files from the SCADA folder of the installation package to the Rapid SCADA installation directory, the default is C:\SCADA, with the hierarchy of directories retained.
  3. Execute the file ScadaAutoReport\svc_install.bat as administrator to register the service.
  4. Execute the file ScadaAutoReport\svc_start.bat as administrator to run the service.
  5. Open the application ScadaAutoReport\ScadaAutoReportConfig.exe, go to the Registration tab and register the application.

Configuring

The configuration of Auto Report is stored in the file C:\SCADA\ScadaAutoReport\Config\ScadaAutoReportConfig.xml. To edit the configuration, the ScadaAutoReportConfig.exe application is intended. Its user interface is shown in the following figures:

General options of Auto Report
Task options of Auto Report

To make Auto Report work, it is necessary to perform certain settings in the project:

  1. Create a communication line, device, and output channel to send reports by email to the specified recipients.
  2. Create a device and an output channel to send and receive commands for generating reports.
  3. Add a new user, which is used to connect the application to Server.
  4. Configure Automatic Control Module to send commands on a schedule.
  5. Set up email sending in Communicator.

Actions 1, 2, and 3 are shown in the following figures:

Communication lines
Devices
Output channels
Users

The settings of Automatic Control Module (item 4) are shown below:

Automatic control module

An example of Communicator settings for sending emails (item 5) is contained in the DemoProject.en-GB.rsproj project. The following figure shows the device properties:

Email settings

Operation

After completing the configuration or changing the existing configuration, restart the Auto Report service. To do this, run the file ScadaAutoReport\svc_restart.bat as administrator or use the Windows management console. The service name is ScadaAutoReportService.

To perform a check, run a task of generating report by the Administrator application. Open the Generator form and send a standard command, specifying the control channel that is responsible for generating reports. In this example, the output channel number is 201. Use the task ID as the command value. Then check the log files located in the directory C:\SCADA\ScadaAutoReport\Log\

Telecontrol command

If the application works well, generated reports are saved in the directory specified in the general options, by default C:\SCADA\Reports\