Add an event command to export the alarm history

Create an event command to export the alarm history to view the alarm states collected on the HMI device. When triggered on the HMI device, the event exports the entire alarm history in the
View Designer
project. Alarm history exports to a USB storage device or SD card as a .zip file for a
PanelView
. The .zip file contains a .csv file.
For a
PanelView
project, create an additional event to allow the safe removal of the removable media from the HMI device so that files on the media do not become corrupt.
The valid destinations for a
View 5000 Server
project are locations on a local hard drive or a drive attached to a computer, such as a USB drive. Exporting to a networked drive location is not supported.
Prerequisites
  • Create an event to trigger the command:
    • Touch press.
      Occurs when touching the item on the screen that is configured with the event.
    • Touch release.
      Occurs when releasing the item on the screen that is configured with the event.
    • Key press.
      Occurs when
      pressing the specified key.
    • Key release.
      Occurs when releasing the specified key.
To add event commands to export the alarm history
    1. Select the graphic element configured with the touch or key event.
    2. In the
      Properties
      pane on the
      Events
      tab, select
      Add Command
      .
    Expand the
    Alarm History
    category and configure the command:
    • Export Alarm History
      . Creates and exports the alarm history in .csv format to a .zip file:
      • In the
        Destination
        box of the command card, select
        USB
        or
        SD Card
        for a
        PanelView
        project.
      • In the
        FileName
        box, type the name of the export .zip file for the alarm history.
    • Cancel Alarm History Export.
      Cancels the export of the alarm history to the HMI device. No .zip file appears in the destination.
      TIP:
      • Tip: Bind the
        FileName
        box of the Export Alarm History event command to a graphic element property or a tag in a controller. Binding the file name specifies the alarm history to export on the HMI device. For example, bind the
        FileName
        box of the Export Alarm History event command to the text property of Text Input graphic element. This displays the name of the alarm history on the Text Input graphic element that exports the alarm history from the HMI device.
      • Exporting the same alarm history file to the same removable media creates a new export file each time. The file name increments by one. This may cause the USB storage device, SD card, or destination to reach capacity. For example, AlarmHistory_002 indicates a second instance of an exported alarm history named AlarmHistory.
      • When the alarm history is exporting, the
        Data Export
        icon Data Log Exporting
        appears in the
        System Banner
        . If there is an error exporting the alarm history, the
        Data Export Error
        icon Data Log Error
        appears in the
        System Banner.
      • Alarm history exports do not complete or create a .zip file on removable media if a ControlFLASH, reboot, or power cycle to the HMI device occurs during the export.
      • The alarm history file contains alarms from all controllers.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal