Set up alarm history logging
To log historical alarms and events, you can either install the version of
Microsoft
SQL Server
available with FactoryTalk View
, or you can use an existing SQL Server
database, if it is already installed on your network.Overview: Set up alarm history logging
- ConfirmSQL Serveris installed.
- Add a database definition in theFactoryTalk Directory.
- Associate a database definition with an alarm server.
- Add an Alarm and Event Log Viewer object to a graphic display.
- RunFactoryTalk ViewSE Client and monitor the display.
Step 1. Confirm
SQL Server
is installedVerify that for the latest supported versions.
SQL Server
is installed on the computer you want to use for alarm history logging. Check the FactoryTalk Alarms and Events
Release Notes- If you do not haveSQL Serverinstalled, install the version included with theFactoryTalk Viewsoftware (found in theFTView\Redist\SQLServerEXPR_2014SP3folder).Follow the installation instructions in theavailable in the following directory:FactoryTalk Alarms and EventsSystem Configuration Guide,C:\Program Files (x86)\Common Files\Rockwell\Help\FT Alarms and Events System Configuration Guide.pdf.The guide is also available from theHelp > Online Booksmenu inFactoryTalk View Studio.
- If you already haveSQL Serverinstalled, you can configure the database to log alarm and event log information. Follow the configuration instructions in the, in the section titled "Using an existingFactoryTalk Alarms and EventsSystem Configuration GuideSQL Serverdatabase."
Step 2. Add a database definition in the
FactoryTalk Directory
Add a database definition to create a connection between the
FactoryTalk Directory
and the database software installed on your network.- RunFactoryTalk Administration ConsoleorFactoryTalk View Studioand open an application.
- In theFactoryTalkExplorer window, expandSystem>Connections, and then right-click theDatabasesfolder. ClickNew Database.
- Set up properties for the new database definition.
- When you finish, clickOK. The database definition is added to the Databases folder and is ready for use.
Step 3. Associate a database definition with an alarm server
Associate the database definition with an alarm server to begin logging historical data to the alarm history log. You can associate different alarm servers with different databases (alarm history logs), or choose to associate all alarm servers with one database.
- RunFactoryTalk Administration ConsoleorFactoryTalk View Studioand open an application.
- Expand theFactoryTalkExplorer window until each alarm server is visible.
- Right-click a server, and then clickProperties.
- For aRockwell AutomationDevice Server (FactoryTalk Linx), click theAlarms and Eventstab. SetAlarm and Event Historyproperties.
- For a Tag Alarm and Event Server, click thePriorities and Historytab. SetAlarm and Event Historyproperties.
- For an OPC UA server, click theOPC UA Serverstab. UnderAlarm Settings, setHistoryproperties.
- ClickApplyto apply the settings, or clickOKto apply the settings and close the dialog box.
Step 4. Add an Alarm and Event Log Viewer object to a graphic display
- RunFactoryTalk View Studioand open an application.
- To create a new graphic display, open theGraphicsfolder, right-clickDisplays, and then clickNew.
- On theObjectsmenu, chooseAlarm and Event > Log Viewer, and then click and drag the cursor to add the Log Viewer object to the display.
- To open its properties, double-click the Log Viewer object.
- On theGeneraltab, select the database that contains the alarm and event history information you want to view.
- On the other tabs, set properties to customize the Log Viewer display. ClickHelpon any tab for details. When you finish, clickOKto close the dialog box.
Step 5. Run
FactoryTalk View
SE Client and monitor the display- Start.FactoryTalk ViewSite Edition Client
- Open the graphic display that contains the Log Viewer object and verify its operation.
Provide Feedback