Alarm Statistics

Movicon has an in-built feature that manages calculations and analysis on system downtimes and alarm occurrences.  This feature analytically works with the Event Log from the historical archive to  generate Reports with Tables and Graphs showing alarm classifications and total number of occurrences and durations overall.

This feature is completely integrated in the system and does not need additional installations or configurations.  This feature comes as a license option to be enabled on request.  

 

 

The commands for opening, saving or printing Alarm Statistics reports can be activated from the  "Alarm Commands" from the Movicon "Commands List".

The report files have been created  both in  "Crystal Report" format and using the Movicon  "Embedded Reports" resource.   You can decide which format to use based on the open report command selection using the "Action" parameter from the "Alarm Command List".

These reports allow access to the  historical data archive database ('Alarms' table), independently from the DB format being used.

The analysis is carried out on the 'Alarms' table, creating a table, histogram and pie chart to display the alarms classified by duration (total time ON) or for intervention frequency. Reports can be applied filters for different  time periods and can be open in preview mode or printed out directly.  Furthermore, custom reports can be created to open in substitution to those proposed by Movicon for default.

 

Alarm Statistics are not supported if the "InMemoryDB" database engine is being used for the Historical Log.  In addition, the ODBC driver being used must support the following commands in the SELECT SQL syntax:: "SUM", "COUNT", "GROUP BY" and "ORDER BY".  It will be impossible to use the Alarm Statistics Reports if these commands are not supported by the database being used.

 

The report files in question are already in the Movicon installation folder.  Four types of Report files created with the Crystal Reports 10 version are available (OrderByDate.rpt, OrderByDuration.rpt, GroupByThreshold.rpt, GroupByFrequency.rpt) along with another four files created with the Movicon "Embedded Reports" resource (OrderByDate.movrep, OrderByDuration.movrep, GroupByThreshold.movrep, GroupByFrequency.movrep). Even though the "Crystal Report" and Movicon "Embedded Report" files display the same information and have the same names, they have different extensions.   Each report file provides the possibility to obtain the following statistical data:

 

 

In addition, default reports can be modified or new customized ones can be created to open instead of those proposed by Movicon.  In this case, to modify or create a new report in the "Crystal Report" format, you will need to have the "Crystal Report" developer tool. The Movicon "Embedded Reports" can be modified or created using the project's "Report" resource.  In this case, when needing to modify one of the four default "Reports"only the following procedures need to be performed:

 

  1. copy the ".movrep" report file to be modified from the Movicon installation folder to the project's resource folder

  2. open the project in development mode and modify the report, which will be found in the "Report" resource in the Project's Explorer Window

  3. after completing modifications, copy the ".movrep" report file from the project's resource folder to the Movicon installation folder, overwriting the one already existing within.

 

When needing to create a new report file in the Movicon format, perform these procedures below:

 

  1. open a Movicon project in development mode and add a new "Report" resource with the desired name

  2. edit the report by customizing it as pleased

  3. when completing all modifications, copy the ".movrep" report file from the project resource folder to the Movicon installation folder

  4. enter the report name manually in the create report command from the "Alarm Commands" without specifying its extension in the  "Report File" parameter

 

The statistical alarm reports created with the Movicon Embedded Reports can also be left within the project resource folder. The first thing Movicon does is search for report files within the project's resource folder (and any existing sub-folders) and if the file is not found, a search is made in the Movicon Installation folder.  

 

When editing a Movicon "Embedded Reports" , the "Alarm Statistic" option is available in the report's properties that once enabled will provide the alarm statistical values in the list of fields that can be inserted on the report.  These fields are:

 

_TotalNumOn_: statistical information representing the total number of times the alarm turned ON.

_TotalNumAck_: statistical information representing the total number of times the alarm was acknowledged.

_TotalNumReset_: statistical information representing the total number of times the alarm was reset.

_TotalTimeOn_: statistical information representing the total time the alarm remained in the ON status.

_ProgressiveId_: statistical information representing the alarm's progressive Id number.  This value is used as the chart's X axis in default Alarm Statistic Reports.

_DateTimeOn_: this field is used for displaying the alarm's activation date and time.  This value is calculated for each record, during the report generation phase by Movicon, based on the alarm's OFF date and time and duration.

Some of the statistical values described above are saved by Movicon in the "Alarm Status File" and can be reset during runtime using the "Reset Statistic" command from the Alarm Command list.

 

The statistical alarm reports created with the Movicon Embedded Reports manages any Alarm table or column name customizing automatically.  Therefore Alarm table and column names can be customized as pleased without having to repeat same operation in the statistical alarm reports as well.  However, this functionality is not available for reports created with Crystal Report which will  need to be modified as well.

 

 

See Also