Configuring the AlarmWorX Logger

When you installed GENESIS64, you created a default database for use with the AlarmWorX64 Logger . If you need to use a different database or alter the parameters of the existing database, refer to the AlarmWorX64 Server 's Database Configurations topic. The database you intend to use as the logger must be the active database in AlarmWorX Logger. To make a database active, right-click the database object in the Project Explorer's navigation tree, then select the Make Active command.

 

It is recommended that you configure a new database as a System Data Source so it is available to any user who is logged into the specific PC. The Alarm Logger includes native support for Microsoft SQL Server and SQL Express with the following limitations:

To configure the AlarmWorX Logger, follow the steps below.

Alarm Log Configuration Form

In AlarmWorX64 Logger, the Configurations node manages the overall details of the logging session. You set the data source that supplies alarm events in the Alarm Subscription section of the form. Alarm events are generated by different types of alarm servers, as well as by the GenEvent server. Unless you set a filter, all of the alarms appear in the log. Use the filter to control the data set, choose particular classes and categories of alarms, and make the data set smaller, more selective, and more manageable.

 

To create an alarm configuration:

  1. Open AlarmWorX64 Logger in the GENESIS64 Workbench. (If you don't know how, refer to the AlarmWorX64 Logger topic for instructions.)

  2. In the Project Explorer, right-click the Configurations node in the navigation tree and select the Configuration command. The Alarm Log Configuration Form appears.

  3. Enter a name for the configuration in the Name text box.

  4. Select the server that is subscribed to that will supply the Event Points. Click the Minus button to remove the current selection and the Plus button to open the Unified Data Browser to select a new alarm server.

  5. Optionally, you can filter the events that are logged by clicking the Alarm Filter: Edit Filter button on the right side of the form to create a filter and control the alarms that are logged. (You may want to log all events at first, and then filter out unwanted alarm events as time goes by.) If no filter information appears in the box below the button, clicking this button opens the Filter Wizard dialog box, which is a front-end for writing an expression; clicking its Advanced button opens the Expression Editor. After you use the wizard, the written expression appears in the Alarm Filter box. Click here to see an example. You can also type the expression into the box, or delete the expression from the box, or edit the expression by clicking the Edit Filter button.

  6. Optionally, you can also enter individual event points and, optionally, click the Edit Categories Filter button to filter categories and attributes for individual event points that are logged. Clicking this button opens the Local Alarm Server dialog box, which has three tabs: the Types tab, the Categories tab, and the Attributes tab. For help using these tabs to set up a filter, refer to the Limiting Alarm Subscriptions by Event Type and Category topic.

  7. At the bottom of the form are three tabs: Database Logging (described below in this topic, in Database Logging Tab), Printer Logging and Translation (described separately in the Printer Logging Tab and Translations Tab topics). Complete these tabs.

  8. When you are done, click Apply to save and apply your settings to the configuration.

Database Logging Tab

The Database Logging tab of the AlarmWorX Logger Alarm Log Configuration form provides database connections, redundancy options, and table management options. To set up this information, follow the steps below:

  1. In the Alarm Log Configuration form, click on the Database Logging tab.

  2. Make sure that the Enable Database Logging check box is enabled.

  3. The Database Connection sub-tab establishes a connection to a primary ODBC data source. So, on the Database Connection sub-tab, confirm that the current database is selected by making sure there is a checkmark in the Use Configuration Database for Logging checkbox.
    Alternatively, to change the database:

    1. Remove the checkmark from the Use Configuration Database for Logging check box and the click the Change Connection button to select a different database from the OLE DB Connection dialog box.

Tip. The Primary Data Source is the database to use for logging. If you leave a checkmark (the default) in the Use Configuration Database for Logging check box, alarm events will be logged to the active configuration database. It is highly recommended that you change this default database option and log alarm data to a database different from the configuration database.

    1. Enter the OLE DB Provider, Server Name, security model and credentials; then select the Database from the fields in the OLE DB Connection dialog box. The Server Name and Database drop-down menus are populated automatically. It is recommended that you use Windows NT Integrated security, which eliminates the need for maintaining individual user accounts and passwords.

    2. Click Test Connection to test the connection to the database.

    3. Click OK to close the dialog box.

    4. The Advanced button allows you to enter a connection string into the OLEDB Advanced Settings dialog box.

    5. Click Apply on the Database Logging tab.

    6. Make the alternative database the active database. You do this in the Project Explorer, where the alternative database now appears. Right-click the alternative database, then select Make Active from the pop-up menu. The database's icon's red arrow changes to green when it is the active database.

  1. Optionally, use the Redundancy tab to set up a redundant database for logging data when the primary database is not available, and for enabling store-and-forward data caching. Refer to the Redundant Databases for the AlarmWorX64 Logger topic for information about this sub-tab.

  2. Optionally, use the Table(s) Management sub-tab to set up table management and table archiving. Refer to the Table Management topic for information about this sub-tab.

  3. Continue to the Printer Logging and Translation tabs (described in the Printer Logging Tab and Translations Tab topics) and set up options as appropriate.

  4. When you are done, click Apply to save and apply your settings to the configuration.

See also:

AlarmWorX64 Logger

Columns

Nodes