Skip to main content

Object: Alarm Storage

Important

In case of a reset (origin), the alarm storage file is deleted.

In Alarm Storage, you define the settings for the database file where the occurring alarms are stored. You can insert the object only once below an alarm configuration.

There is exactly one memory file located in a database. This file is saved optionally in a file directory on the controller. You cannot change the name it is derived from the application name according to the following convention: <application name>.alarmstorage.sqlite. The alarm classes and alarm groups define whether or not the memory file should be used.

Subdirectory:

Name of a subdirectory on the PLC where the memory file is saved (optional) 

No limit

No limit for the file size for the alarm storage

Maximum number of records

Number of recorded entries

When this number is reached, the oldest entry is deleted as soon as a new one is queued (ring buffer).

Maximum storage size

Maximum size of the memory file with specification of the unit. 

This size is implicitly converted into an approximate maximum number of entries which can be saved in the file (ring buffer).

Ring buffer

For display purposes only (not editable)

standard icon: Memory in a ring buffer

_cds_icon_option_deactivated.png: Memory in an unlimited buffer

Tip

The records which are automatically saved in the database can be displayed in the Alarm Table visualization element.

Command: CSV Export of Alarm Storage

Function: The command opens the Alarm Storage Export Configuration dialog.

Call: Context menu of the Alarm Storage object.

Requirements: The application is in online mode with an alarm configuration. An alarm storage is configured.

The command opens the Alarm Storage Export Configuration dialog.

Dialog: Alarm Storage Export Configuration – Basic Settings

Export file: Path to the generated CSV file in the file system

Export all 

All listed alarms are exported.

Export alarms in timestamp range (timestamp activated) 

Defined time range for the export of the listed alarms. This refers to the timestamp when the alarm was activated. The min./max. timestamps that are available in the alarm storage or were the last ones to be used in an export are shown by means of "From" and Until".

When selecting the time range, the smallest unit is one second.

Language 

The list box includes all languages that are available in text lists for alarm texts, as well as the default language (<standard>).

Dialog: Alarm Storage Export Configuration – Advanced Settings

Ascending 

Descending 

Sort order by the timestamp when the alarm was activated

Formatted values and timestamps 

The timestamps are formatted with the date and time format as defined below. REAL and LREAL values are formatted in number format.

Raw data from alarm storage file 

The timestamps and values are written unformatted to the CSV file, as they appear in the alarm storage. Alarms, alarm groups, and alarm classes are written in non-readable form to the CSV file as internal IDs.

Defines the formatting of the entries in the CSV file. Possible only if the Formatted values and timestamps data format is selected.

REAL format (printf syntax) 

Setting: %.1f

Date format 

The settings are applied from the system control.

Time format 

The settings are applied from the system control.

Semicolon 

The entries in the CSV file are separated by a semicolon.

Comma 

The entries in the CSV file are separated by a comma.

Tab 

The entries in the CSV file are separated by a tab.

Local time

Available only if the Formatted values and timestamps data format is selected.

standard icon: The timestamps are written to the CSV file in local time.

_cds_icon_option_deactivated.png: The timestamps are written to the CSV file in universal time coordinated (UTC).