Tech Note 663 HMI Reports: Creating Alarm Database (WWALMDB) Reports



Similar documents
Tech Note 743 Configuring Reporting Services 2008 Configuration for a New Host Name in Windows 2008 R2

Tech Note 920 Resolving Disabled ActiveFactory Reporting Website for Wonderware System Platform R2

Tech Note 1010 SQL Server Authentication and ArchestrA Network Account Restrictions When Installing Wonderware Historian

Tech Note 782 Installing Remote Desktop Services on Windows 2008 Server R2 for Wonderware Products

Tech Note 882 Configuring Time Synchronization for Historian Server Using Net Time and Windows Task Scheduler

This tech note will explain how to use the following parameters in Configurator General Parameters.

Introduction. Application Versions. Installing Virtual SMTP Server. Tech Note 692 Using Virtual SMTP Server for SCADAlarm Notifications

Tech Note 551 Configuring SQLMail or Database Mail for the Historian Event

Tech Note 847 Installing Wonderware Information Server (WIS) on the Windows Server Window 7 64 and 32-bit Operating System

Introduction. Notes. Important Considerations. Application Versions. Assumptions. 8/22/13 Setting Up Historian Servers for Tier-2 Summary Replication

Migrating QI 8.0 Admin and Process Databases from Microsoft Access to Microsoft SQL Server

Tech Note 882 Configuring Time Synchronization for Historian Server Using Net Time and Windows Task Scheduler

Tech Note 338 How to Change the ActiveFactory Reporting Website Default Install Location

This Tech Note provides step-by-step procedures to install Microsoft SQL Server 2012 on a 32- or 64-bit Operating System.

Note: This Tech Note was formerly titled Installing Microsoft SQL Server 2008 for Wonderware Historian v10.0.

Tech Note 868 Troubleshooting Wonderware Software Resource Issues with Performance Monitor

8/22/13 Configuring Windows SharePoint Services for PEM v1.0 to Work with SuiteVoyager v2.6

Tech Note 782 Installing Remote Desktop Services on Windows 2008 Server R2 for Wonderware Products

Introduction. Back Up the Runtime Database. Application Versions

Introduction. Tech Note 884 Setting Up Historian Servers for Tier-2 Summary Replication

How To Write A Summary On A Historyorian Server

Introduction. Issues. Symptoms. Application Versions. Case 1: Deploy an ArchestrA Object - UDO4DevUsers_001_001 - Has Error Messages

Introduction. Application Versions. Assumptions. Delete $$ExportTempFolders. Tech Note 930 Wonderware System Platform Clean-up Guide

This Tech Note describes working with Microsoft Reporting Services in order to publish InBatch Reports to Wonderware Information Server.

How To Migrate Qi Analyst To A New Database On A Microsoft Access (Windows) From A New Version Of Qi.Io To A Newer Version Of A New Qi 8.0 (Windows 7.3

Tech Note 751 Installing InBatch Report Contents for Wonderware Information Server (WIS)

Enabling Cross-Machine Distributed Transactions (via MSDTC)

Introduction. Symbol Script Timeout Setting. Sample MES Custom Code in Symbol Script. Application Versions. Sample Code

Introduction. Configuration: Entity and OCO Modeling. Application Version: OCO General Configuration

Tech Note 1042 Solving Historian Memory Issue with SQL Server MemToLeave Configuration

All Tech Notes and KBCD documents and software are provided "as is" without warranty of any kind. See the Terms of Use for more information.

Jolly Server Getting Started Guide

This Tech Note provides detailed guidelines and options for defragmenting and maintaining your production databases.

Communication to End Device Going In and Out of Slow Poll Mode

Tech Note 1035 Moving the Historian Runtime Database to Another Machine Using SQL Server 2012

Instead, use the following steps to update system metadata that is stored in sys.servers and reported by the system function

Note: Not all messages in the log are indicative of a problem. Contact Technical Support if questions arise.

All Tech Notes and KBCD documents and software are provided "as is" without warranty of any kind. See the Terms of Use for more information.

INTRODUCTION: SQL SERVER ACCESS / LOGIN ACCOUNT INFO:

To allow SQL Server Agent to trigger when a report is executed, we need to provide a set of report group types.

1. Under Application Objects, open the $Tank object and then open the $TankDisplay as shown in Figure 1 (below).

Tech Note 612 Upgrading DLL Version Mismatches Between CBM Solution and System Platform

CIMHT_006 How to Configure the Database Logger Proficy HMI/SCADA CIMPLICITY

Part I: Setting up Bristol Babcock's OPC Server

Tech Note 128 Configuring InBatch For Standalone PCs With SQL Server and IndustrialSQL Server

Tech Note 957 Creating Custom Password Entry on Intermec-Supported Handhelds

Tech Note 400 Configuring Remote Connections for Windows 2000/2003/XP

Tech Note 813 Troubleshooting Wonderware Information Server (WIS) Part Four: Client License Release

All Tech Notes and KBCD documents and software are provided "as is" without warranty of any kind. See the Terms of Use for more information.

Video Administration Backup and Restore Procedures

Introduction. Application Versions. Compatibility and System Requirements. Firewall and DCOM Settings

Industrial Application Server Redundancy: Troubleshooting Guidelines

Tech Note 912 Using Alternate TCP Port Numbers with Modbus Ethernet DAServer

How to Connect to CDL SQL Server Database via Internet

Migrating helpdesk to a new server

Using Network Application Development (NAD) with InTouch

Tech Note 905 Troubleshooting Wonderware Information Server (WIS) Part Six: ArchestrA Graphics No Live-Data

Connect to MySQL or Microsoft SQL Server using R

Setting Up ALERE with Client/Server Data

8/22/13 Configuring the SST5136SD PCI Card Using the New SSTDHP IO Server V8.1 or the DASDHPlus Server

Technical Paper. Defining an ODBC Library in SAS 9.2 Management Console Using Microsoft Windows NT Authentication

SpectraPro. SLQ Server databases

2. Unzip the file using a program that supports long filenames, such as WinZip. Do not use DOS.

Installing Cobra 4.7

Define ODBC Database Library using Management Console

8/23/13 Configuring the Wonderware SECS-II/GEM Host Creator (SERIAL-RS232)

ACT! by Sage. Premium for Workgroups 2007 (9.0) Administrator s Guide to the ACT! Reader Utility

SQL Express to SQL Server Database Migration MonitorIT v10.5

Use the below instructions to configure your wireless settings to connect to the secure wireless network using Microsoft Windows Vista/7.

for Networks Installation Guide for the application on the server July 2014 (GUIDE 2) Lucid Rapid Version 6.05-N and later

Web Work Module User s Guide

Database Assistant. Once Database Assistant is installed you must login to gain access to the database. Copyright 2009

Using ELM Reports in WhatsUp Gold. This guide provides information about configuring ELM reports in WhatsUp Gold v15.0

Tech Note 53 Configuring the Siemens SINEC H1 CP1413 for Windows NT

Tech Note 652 Changing an ArchestrA Symbol's Custom Property Expression or Reference in Runtime

Installing the TCP/IP Network Protocol

Tech Note 213 Finding Memory Leaks in Windows 95/98/98SE Using System Monitor

for Networks Installation Guide for the application on the server August 2014 (GUIDE 2) Lucid Exact Version 1.7-N and later

Installing SQL Express. For CribMaster 9.2 and Later

Creating a System DSN for Crystal Reports to Access a Sentinel Server Database. Configuration Guide Version 1.0

Installing LearningBay Enterprise Part 2

Linking Access to SQL Server

Working with SQL Server Integration Services

The purpose of this document is to describe how to connect Crystal Reports with BMC Remedy AR System using ODBC.

Immotec Systems, Inc. SQL Server 2005 Installation Document

Using ODBC with MDaemon 6.5

This Tech Note describes modem connections using DAServers and provides some guidelines on how to make the modem connection work.

Outlook Profile Setup Guide Exchange 2010 Quick Start and Detailed Instructions

Automated backup. of the LumaSoft Gas database

BillQuick Installation Guide for Microsoft SQL Server 2005 Express Edition

XMailer Reference Guide

Set Up Setup with Microsoft Outlook 2007 using POP3

System Area Management Software Tool Tip: Integrating into NetIQ AppManager

Configuring Network Load Balancing with Cerberus FTP Server

How to Configure a Secure Connection to Microsoft SQL Server

Connect to a SQL Database with Monitouch

Cloud Services ADM. Agent Deployment Guide

USING MYWEBSQL FIGURE 1: FIRST AUTHENTICATION LAYER (ENTER YOUR REGULAR SIMMONS USERNAME AND PASSWORD)

Microsoft SQL Server Staging

8/23/13 Configuring SIDirect DAServer to Communicate with S7 PLC Over TCP Connection

Transcription:

Tech Note 663 HMI Reports: Creating Alarm Database (WWALMDB) Reports All Tech Notes, Tech Alerts and KBCD documents and software are provided "as is" without warranty of any kind. See the Terms of Use for more information. Topic#: 002427 Created: October 2009 Introduction This Tech Note explains configuring HMI Reports to easily connect to and create reports against the Wonderware Alarm Database (WWAlmdb). Recommendations The following recommendations ensure the best results: Use Consolidated Mode for your Alarm Database (wwalmdb). Create a new SQL View and DSN Connection for the Alarm Database (wwalmdb) reporting. Application Versions HMI Reports Microsoft SQL Server 2008 Creating the SQL View and the DSN Connection Before you can generate the reports, you must create a SQL View and a DSN (Data Source Name) connection. To create a new SQL View Create a new SQL View for your Alarm Database reports. You will connect to and create reports using this new View. 1. Open SQL Management Studio and click New Query. FIGURE 1: NEW SQL QUERY 2. Copy the following SQL Query and paste it into the query editor, 3. Click Execute (above the active query tab) to run it. https://wdnresource.wonderware.com/support/kbcd/html/1/t002427.htm 1/13

The query creates a new SQL View in the Alarm Database. In this example, the View is called v_hmireportsalarms. USE [WWALMDB] GO /****** Object: View [dbo].[v_hmireportsalarms] Script Date:09/15/09 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE VIEW [dbo].[qv_hmireportsalarms] AS SELECT dbo.alarmconsolidated.alarmid, dbo.alarmmaster.tagname, dbo.alarmconsolidated.alarmtime, CASE WHEN dbo.alarmconsolidated.returntime = '9999-12-12 23:59:59.997' THEN NULL WHEN dbo.alarmconsolidated.returntime = '1900-01 -01 00:00:00.000' THEN NULL ELSE dbo.alarmconsolidated.returntime END AS ReturnTime, dbo.alarmmaster.groupname, dbo.alarmconsolidated.priority, CASE WHEN dbo.alarmconsolidated.acktime = '9999-12-12 23:59:59.997' THEN NULL WHEN dbo.alarmconsolidated.acktime = '1900-01-01 00:00:00.000' THEN NULL ELSE dbo.alarmconsolidated.acktime END AS AckTime FROM dbo.alarmmaster INNER JOIN dbo.alarmconsolidated ON dbo.alarmmaster.alarmid = dbo.alarmconsolidated.alarmid WHERE (dbo.alarmconsolidated.alarmtime > DATEADD(dd, - 90, GETDATE())) AND (dbo.alarmconsolidated.returntime < DATEADD(mi, ABS(dbo.AlarmConsolidated.AlarmTimeZoneOffset), GETDATE())) When the view is created, you see the Command completed successfully message (Figure 2 below). https://wdnresource.wonderware.com/support/kbcd/html/1/t002427.htm 2/13

FIGURE 2: CREATE VIEW QUERY SUCCESSFUL You can then see your new View in the list of WWALMDB Views: FIGURE 3: NEW VIEW IN WWALMDB To create an ODBC DSN https://wdnresource.wonderware.com/support/kbcd/html/1/t002427.htm 3/13

For this Tech Note, we will create a System DSN; however, you can create a User, System or File DSN for this purpose. 1. Click Start > Control Panel > Administrative Tools > Data Sources (ODBC). 2. Click the System DSN tab, then click Add to create a new Data Source. 3. Select the SQL Native Client driver, then click Finish (Figure 4 below). FIGURE 4: CREATE A SYSTEM DSN 4. Name your DSN and select your server. The description is optional (Figure 5 below). FIGURE 5: CREATE A NAME AND SERVER CONNECTION 5. Click Next and use SQL Server authentication. Type your Login ID and Password. https://wdnresource.wonderware.com/support/kbcd/html/1/t002427.htm 4/13

FIGURE 6: LOGIN ID AND STRONG PASSWORD 6. Click Next. Note: It is highly recommended you replace the defaults with strong Login ID and Passwords. Consult your system administrator for their direction. 7. Click the Change the default database to option and choose WWAlmdb from the list. If necessary, click the ANSI options shown in Figure 7 (below). FIGURE 7: DEFAULT DATABASE IS WWALMDB 8. Click Next, then Finish. 9. Click Test Data Source to make sure the connection was configured correctly (Figure 8 below). 10. When the test completes successfully, click OK to close the dialog. If the test completes unsuccessfully, repeat the previous steps and recheck your settings for correctness. https://wdnresource.wonderware.com/support/kbcd/html/1/t002427.htm 5/13

FIGURE 8: TEST THE DATA SOURCE CONNECTION Configure the Driver Definition for the Alarm Database Now that you've created a DSN, you can configure the Alarm Database Driver Definition. 1. Open HMI Reports Studio and select Logger/Driver Configuration from the main menu. 2. Type a Source Name in the Source Definition area. This can be any name. 3. To define the Alarm Database Driver, select ODBC History Access from the History Driver list. FIGURE 9: DEFINE THE DATA SOURCE 4. Click the Configure button to the right of the History Driver field. The Database Definition window appears. 5. Select the DSN you created from the DSN File list and type the User Name and strong Password (SQL). 6. In the Select database type area, select Column-Item structure from the list. 7. Click the Connect button to make sure the connection is successful. The Alarm History Data and Item History Data fields are populated automatically. 8. Highlight the new view Qv_HMIReportsAlarms, in the Alarm History Data area. 9. Configure the Table Fields for Alarm ID, Alarm Text, Alarm Priority, Start Time, Ack Time and End Time from their lists. 10. Click Done when you finish. Your database definition should look similar Figure 10 (below). https://wdnresource.wonderware.com/support/kbcd/html/1/t002427.htm 6/13

FIGURE 10: DATABASE DEFINITION WINDOW 11. Click the Add Definition button. The new Definition appears in the Source Name column (Figure below). https://wdnresource.wonderware.com/support/kbcd/html/1/t002427.htm 7/13

FIGURE 11: NEW SOURCE DEFINITION Note: Be sure to click the Add Definition button after configuring your Source Definition or the definition will not be saved. Now you are ready to connect to Alarm Database Data for use in your reports. Create a Simple Alarm Database Report In this section we will create two different types of Alarm Reports. One using the Free SQL Query Table and One using the Alarm Table. In HMI Reports Report Design Studio 1. Create a Free SQL Query Table and run a query against the View you just created. 2. Create a Report (default settings are ok). 3. Add the Free SQL Table to the report and configure it as shown in Figure 12 (below): https://wdnresource.wonderware.com/support/kbcd/html/1/t002427.htm 8/13

FIGURE 12: FREE SQL QUERY TABLE REPORT Note: You will need to include the user name and password with the DSN as shown above when using SQL Server authentication in your DSN. The user interface for the Free SQL Query Table will be slightly modified to include a separate box for user ID and password in a future release. 4. Click Appearance to configure column names and sorting preferences. https://wdnresource.wonderware.com/support/kbcd/html/1/t002427.htm 9/13

FIGURE 13: CONFIGURE APPEARANCE OPTIONS 5. Figure 14 (below) shows the data returned using the Free SQL Query Table. FIGURE 14: FREE SQL QUERY TABLE RESULTS 6. To configure an Alarm Table, add the object to the report canvas and configure it to Get Data From an External History Server and make sure to Define Time Period as appropriate. https://wdnresource.wonderware.com/support/kbcd/html/1/t002427.htm 10/13

FIGURE 15: ADD AND CONFIGURE THE ALARM OBJECT 7. Click Edit List button to configure the priority filter. 8. Define a Filter by naming your filter, choosing the Source, and specifying the Priority From and To selections. https://wdnresource.wonderware.com/support/kbcd/html/1/t002427.htm 11/13

FIGURE 16: CONFIGURE ALARM FILTER OPTIONS 9. Click Add Filter to add it, then OK to close the Alarm Filter Manager window. Figure 17 (below) shows a sample of data returned in this report using the Alarm Table. FIGURE 17: SAMPLE REPORT USING THE ALARM TABLE Additional Resources Tech Note 601: HMI Reports: Creating a Historian (InSQL) Driver Configuration Tech Note 620: Preventing Column Misalignment with HMI Reports Generated by Free SQL Table Click the following icon to view this file in.pdf format: A. Rantos Tech Notes are published occasionally by Wonderware Technical Support. Publisher: Invensys Systems, Inc., 26561 Rancho Parkway South, Lake Forest, CA 92630. There is also technical information on our software products at Wonderware Technical Support. For technical support questions, send an e-mail to support@wonderware.com. Back to top https://wdnresource.wonderware.com/support/kbcd/html/1/t002427.htm 12/13

2013 Invensys Systems, Inc. All rights reserved. No part of the material protected by this copyright may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying, recording, broadcasting, or by anyinformation storage and retrieval system, without permission in writing from Invensys Systems, Inc. Terms of Use. https://wdnresource.wonderware.com/support/kbcd/html/1/t002427.htm 13/13