Configuring an Alarm Storage

Steps for Configuring an Alarm Storage

Step

Action

1

In the Tools tree, right-click the AlarmStorage node and execute the command Properties....

2

In the Properties dialog box, change the name from AlarmStorage to, for example, DatabaseFileAlarmStorage and click the OK button.

3

Double-click the node DatabaseFileAlarmStorage from the Tools tree.

4

In the DatabaseFileAlarmStorage alarm storage editor on the right-hand side, configure the following parameters:

  • The Subdirectory field is by default empty and the default directory /usr/Alarms is set on the controller for the alarm SQLite files. If you enter a name, a subfolder of this name is created in the default directory.

  • In the Limit section, select the option Maximum number of records and enter a value, for example, 1000.

After you have performed these alarm storage configurations, EcoStruxure Machine Expert saves the alarms internally at application runtime in an SQLite database in the directory /usr/Alarms on the Modicon M262 Logic/Motion Controllers. The database contents can be displayed as historic alarms as part of an alarm table in a visualization. As a prerequisite, the History control variable of the alarm table must be set to TRUE. For further information, refer to the CODESYS Online Help: Visualization Element 'Alarm Table'.