Alarm saving

For each alarm group a file can be defined, in which the alarm events are stored, if (!) a ‘Save’ action has been assigned to the class in the Alarm classes dialog.

Select the alarm group in the configuration tree and open the dialog tab ‘Alarm saving’:

../_images/96ec9a83d0330dd20a317d313d77a051

The following definitions are possible:

  • Filepath: Directories path of the file which is defined in Filename; via button “…” you get the standard dialog for selecting a directory. If the target-specific option Target Settings in Category Visualization is activated, this path will be ignored an the file will be saved in the download directory of the PLC.
  • Filename: Name of the file which should save the alarm events (e.g. “alarmlog”). Automatically a file will be created which gets the name defined here plus an attached digit and which has the extension “.alm”. The digit indicates the version of the log-file. The first file gets a “0”; each further file, which will be created according to the defined File change event, will be numbered with 1, 2 etc. (Examples: “alarmlog0.alm”, “alarmlog1.alm).
  • File change event: Define here the event which will cause the creation of a new file for alarm-saving. Possible entries: Never, after one Hour, after one Day, after one Week, after one Month, at a rising edge of the variable defined in field Triggervariable, when the number of records in the file as defined in Number of records gets exceeded.
  • Triggervariable resp. Number of records: see above, File change event.
  • Delete old files after .. Hours: Number of days since the day of creation, after which all alarm log-files except from the actual one should be deleted.

The log-file (History) contains the following entries:

See the column types and exemplary entries for two alarms.

Date/Time in DWORD Date Time Event Expression Alarm type Limit Tolerance Current value Class Priority Message
1046963332 6.3.03 16:08:52 INTO PLC_PRG.b LO -30 5 -31 Alarm_high 0 Temperature !
1046963333 6.3.03 16:08:53 ACK PLC_PRG.n HIHI 35     Warnng 9 Rising Temp. !

Example appearance of the log-file

1046963332,6.3.03 16:08:52,INTO,PLC_PRG.ivar5,HIHI,,,, 9.00,a_class2,0,

1046963333,6.3.03 16:08:53,INTO,PLC_PRG.ivar4,ROC,2,,, 6.00,a_class2,2,

1046963333,6.3.03 16:08:53,INTO,PLC_PRG.ivar3,DEV-,,,, -6.00,a_class2,5,

1046963334,6.3.03 16:08:54,INTO,PLC_PRG.ivar2,LOLO,-35,,3, -47.00,warning,10,warning: low temperature !

1046963334,6.3.03 16:08:54,INTO,PLC_PRG.ivar1,HI,20,,5, 47.00,a_class1,2,temperature to high ! Acknowledge !