Introduction. Key Benefits. Data Storage. Data Retrieval. TechTip: Wonderware Historian a Look at Different Data Retrieval Methods.

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

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

How To Write A Summary On A Historyorian Server

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

2014 Software Global Client Conference

Nokia E90 Communicator Transferring data

Excel Companion. (Profit Embedded PHD) User's Guide

2015 WW Australia Training Catalogue

Purpose: TechTip: Using Windows Task Scheduler to monitor if WindowViewer is Running

Move Data from Oracle to Hadoop and Gain New Business Insights

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

How To Install FactoryTalk Historian Server SE and Add an Menu

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

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

MAKE INTELLIGENT PLANT DECISIONS IN REAL TIME WITH WONDERWARE DATA ANALYSIS AND REPORTING CLIENTS

Wonderware Intelligence

Quick Reference. Administrator Guide

Cisco NetFlow Reporting Instruction Manual Version 1.0

Host OS Compatibility Guide

The Advantages of Enterprise Historians vs. Relational Databases

CyberLink. PowerDVD Copy. User s Guide

WW INFO-07 Valuable Information From Wonderware System Platform 2014 R2. Elliott Middleton

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

SharePlex for SQL Server

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

TrendWorX32 SQL Query Engine V9.2 Beta III

CA NSM System Monitoring Option for OpenVMS r3.2

The Advantages of Plant-wide Historians vs. Relational Databases

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

Product Overview. Dream Report. OCEAN DATA SYSTEMS The Art of Industrial Intelligence. User Friendly & Programming Free Reporting.

CA Unified Infrastructure Management

Nokia Internet Modem User Guide

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

Simba ODBC Driver with SQL Connector for Apache Cassandra

Implementing the system using these guidelines should improve your system performance for a large database while your database grows in size.

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

Pulse Redundancy. User Guide

Dell InTrust Preparing for Auditing Microsoft SQL Server

Introduction. Back Up the Runtime Database. Application Versions

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

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

Best Practices for Log File Management (Compliance, Security, Troubleshooting)

Nokia Internet Modem User Guide

TekSolv Deploys Wonderware Software for TekNet and HydroWatch Remote Management Solutions for Oil & Gas and Water & Wastewater Applications

Case Study Food Manufacturing Company

BW362 SAP BW powered by SAP HANA

SNMP Informant Release Notes

Product Summary of XLReporter with OPC Servers

Wonderware Historian Concepts Guide Invensys Systems, Inc.

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

GEO Sticky DNS. GEO Sticky DNS. Feature Description

Dell Enterprise Reporter 2.5. Configuration Manager User Guide

CA Workload Automation Agent for Microsoft SQL Server

Spotlight Management Pack for SCOM

SmartGlance Mobile Reporting Architecture and Data Security

BlackBerry Web Desktop Manager. Version: 5.0 Service Pack: 4. User Guide

DeltaV Event Chronicle

Aggregate, Synthesize and Visualize Your Operations Metrics with Wonderware Intelligence

Spotlight Management Pack for SCOM

Storage Efficiency Express Guide For 7-Mode Administrators Learning Cluster-Mode

BW370 BI Integrated Planning

How To Use Shareplex

FOOD & BEVERAGE CONSUMER PACKAGED GOODS INDUSTRIES

BW362 SAP NetWeaver BW, powered by SAP HANA

Business Portal for Microsoft Dynamics GP. Key Performance Indicators Release 10.0

Azure Multi-Factor Authentication. KEMP LoadMaster and Azure Multi- Factor Authentication. Technical Note

FireSIGHT User Agent Configuration Guide

Port Following. Port Following. Feature Description

Quest Collaboration Services 3.5. How it Works Guide

Sage HRMS 2014 Sage Employee Self Service Tech Installation Guide for Windows 2003, 2008, and October 2013

Milestone Solution Partner IT Infrastructure Components Certification Summary

Rational Reporting. Module 3: IBM Rational Insight and IBM Cognos Data Manager

Introduction 1 Rockwell - FactoryTalk Historian 1 Inductive Automation - Ignition 3 Wonderware - Historian 5 Siemens - Simatic Process Historian 6

How HMI Users can Benefit from a Process Historian. by Jim Frider, Product Marketing Manager, Information Products, Schneider Electric

Network device management solution

Predictive Research Inc., Predict & Benefit

Unprecedented Performance and Scalability Demonstrated For Meter Data Management:

Dream Report vs MS SQL Reporting. 10 Key Advantages for Dream Report

Deploying BlackBerry Desktop and Handheld Software Research In Motion

THUM - Temperature Humidity USB Monitor

Real-Time Analysis and Reporting Software for Production and Performance Management

AV TSS-05 Avantis.DSS 5.0 For Wonderware Intelligence

RSA Two Factor Authentication

CA Repository for z/os r7.2

Log Insight Manager. Deployment Guide

Course 20463:Implementing a Data Warehouse with Microsoft SQL Server

Enterprise Historian Information Security and Accessibility

SQL Server Solutions GETTING STARTED WITH. SQL Safe Backup

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

GFI Product Manual. Administration and Configuration Manual

Quest Collaboration Services How it Works Guide

RDP300 - Real-Time Data Warehousing with SAP NetWeaver Business Warehouse October 2013

Performance Best Practices Guide for SAP NetWeaver Portal 7.3

SQL Server 2012 Performance White Paper

Product Release Notes

CA Workload Automation Restart Option for z/os Schedulers r11

Transcription:

NOTE: This article and all content are provided on an "as is" basis without any warranties of any kind, whether express or implied, including, but not limited to the implied warranties of merchantability, fitness for a particular purpose, and non-infringement. In no event shall Wonderware North be liable for any special, indirect or consequential damages or any damages whatsoever resulting from loss of use, data or profits, whether in an action of contract, negligence or other tortuous action, arising out of or in connection with the use or performance of information contained in this article. Introduction The Wonderware Historian is a high-performance real-time database for historical information. It combines the openness, power and flexibility of a relational database with the speed and compression of a true process historian, while integrating the office with the factory floor. Wonderware Historian is designed to collect a wide variety of plant and process data, at full resolution and very high rates, ensuring that the decision makers at all levels will have the right information at the right time to make intelligent business decisions. Key Benefits Designed for all industrial manufacturing and infrastructure operations. Generate actionable information for faster, more accurate decision making. Unify information from multiple manufacturing and HMI/SCADA systems. Flexible architectures scalable for any sized application. Fully integrated with the award-winning Wonderware ArchestrA architecture and System Platform. Data Storage There are three different methods to store data within the Historian. The first being Delta, the second being Cyclic and the final method is Forced. These are defined as: Delta Storage is the storing of data based on a change in value. Delta storage writes a record to history only if the value has changed since the last time it was written. Delta storage is also known as storage by exception Cyclic Storage is the storing of analog data base on a time interval. Cyclic storage writes a record to history at a specified interval only if a data change occurred during the time interval. Forced Storage is the storage of each value as it comes in from the plant floor or from a client application, without filtering applied. That is, no delta or cyclic storage method is used. Data Retrieval Regardless of how this Historian is configured to store data, Wonderware Historian data appears to client applications as if it were stored in Microsoft SQL Server. The Historian receives SQL queries and then locates, processes, and returns the data. Microsoft Transact-SQL is extended with the Historian time domain extensions providing support for time-series data.

Since the Historian is a relational database, queries can join data across multiple tables to retrieve data efficiently. Some examples of database queries possible with Historian are: Average vibration of a motor each day over the last month when the load is greater than X. The values for 50 specified analog tags at a point in time when X was greater than 10. The Minimum, Maximum, and Average of the temperature during specified production run. Data Storage versus Data Retrieval Since Wonderware Historian uses separate storage and retrieval engines, the way you can retrieve data is independent of how you store data in Historian. For instance, you might use Delta storage (storage only on a value change) for a tank level, but your report might require a tank level reported once an hour (i.e., Cyclic retrieval) for the past month. Or, a temperature might be stored cyclically every 10 seconds, but you might only want to report on significant changes in temperature (i.e., Delta retrieval with a value/change deadband). So, there is essentially no correlation between how the data is stored versus how the data is retrieved. Except for the fact, you cannot retrieve more data than which is physically stored. Data Retrieval Modes Different retrieval modes allow you to access the data stored in Historian in different ways. For example, if you retrieve data for a long time period, you might want to retrieve only a few hundred evenly spaced data points to minimize response time. For a shorter time period, you might want to retrieve all values that are stored on the server to get more accurate results. In addition the to the standard data retrieval modes (Cyclic, Delta, Full), there are advanced modes to choose from: Interpolation, Best Fit, Average, Minimum, Maximum, Integral, Slope, Counter, Value State and Round Trip. In this Tech Tip, we will examine several of these retrieval modes: Delta and Full retrieval modes The Average retrieval The Integral retrieval mode for totalizing raw data Delta versus Full Retrieval Delta retrieval, or retrieval based on exception, is the retrieval of only the changed values for a tag for the given time interval. That is, duplicate values are not returned. Example Delta query: -- Delta retrieval will return all changed values over the time peroid. Select DateTime, Tagname, Value And DateTime > '04/01/2010 1:59 PM' And DateTime <= '04/01/2010 2:00 PM' And wwretrievalmode = 'Delta'

Full retrieval will return all data points stored regardless whether the value or quality has changed since last value. Using the same query except for changing the mode to Full instead of Delta will return a different record set: -- Full retrieval mode returns all records regardless if the value has changed. Select DateTime, Tagname, Value And DateTime > '04/01/2010 1:59 PM' And DateTime <= '04/01/2010 2:00 PM' And wwretrievalmode = 'Full' This is useful when retrieving the actual times that a tag was logged, even if the tag s value did not change e.g., using the same temperature setpoint for several batches run in a day (if Delta retrieval is used, only the first value, and associated timestamp would be returned.) With these results, there was one additional record at 13:59:05.703 which was not displayed in the previous Delta mode, but with Full retrieval all data points are returned regardless if the value has changed or not.

SQL AVG function versus Historian Average Retrieval The SQL Server AVG is a simple statistical average. The actual data values are used to calculate the average. The average is the sum of the data values divided by the number of data values. For the following data values, the statistical average is computed as: (P 1 + P 2 + P 3 + P 4 ) / 4) = Average For a time-weighted average, values are multiplied by the time difference between the points to determine the time weighted value. Therefore, the longer a tag had a particular value, the more weight the value holds in the overall average. The overall average is determined by adding all of the timeweighted values and then dividing that number by the total amount of time. (((P 1 + P 2 ) / 2) x (T 2 - T 1 )) + (((P 2 + P 3 ) / 2) x (T 3 - T 2 )) + (((P 3 + P 4 ) / 2) x (T 4 - T 3 )) / (T 4 - T 1 ) = Average The SQL Server AVG aggregate is a simple statistical average. Using the Historian s Average retrieval mode with a cycle count of 1 returns data much faster than the AVG aggregate, and usually more accurately due to the time weighting. Let us look at differences between SQL Server AVG versus Historian s Average:

-- SQL Server Aggregate Function Select [Average] = AVG(Value) And DateTime > '03/22/2010 2:59 PM' And DateTime <= '03/22/2010 3:00 PM' -- Historian s Average Retrieval Select [Average] = Value And DateTime > '03/22/2010 2:59 PM' And DateTime <= '03/22/2010 3:00 PM' And wwretrievalmode = 'Average' And wwcyclecount = 1 Look at the difference for the CPU resources to run the query. Imagine the impact for a query over a greater period of time than just for one minute. As we see, the SQL Server AVG aggregate is a simple statistical average. The result will depend on the resolution of samples. Using the time weighted average (TWA) retrieval mode will use actual values in the table to calculate the average. Even if the SQL Server AVG aggregate returns a similar value, the data is returned much faster.

Historian Integral Retrieval The Historian Integral retrieval mode is useful when reporting totalized values. For instance, Historian might be logging a flow rate (gal/hour) from a water treatment flow meter, but the report needs the daily total amount treated. When retrieving data as an integral, pay careful attention to the Engineering Unit associated with that tag e.g., gal/min, gal/hour, MGD, ft/sec. If the incorrect units are used, the integral will be incorrectly calculated, as it is time-based. Using wwcyclecount or wwresolution in conjunction with the Integral retrieval mode allows you to specify the number of intervals, or time interval, over which the data will be integrated. -- Total for 1 Day (wwcyclecount = 1) Select DateTime, Tagname, Value From History Where Tagname = '100_02TT175_SCL' And DateTime > '4/5/10' And DateTime <= '4/6/10' And wwretrievalmode = 'Integral' And wwcyclecount = 1 -- Hourly Totals for 1 Day (wwcyclecount = 24) Select DateTime, Tagname, Value From History Where Tagname = '100_02TT175_SCL' And DateTime > '4/5/10' And DateTime <= '4/6/10' And wwretrievalmode = 'Integral' And wwcyclecount = 24 Results for the hourly totals query:

Summary Wonderware s Historian is a very powerful data storage and retrieval system. With the many retrieval options available, Wonderware Historian simplifies the task of extracting meaningful information from raw plant and process data, allowing the right information to get to the right people, at the right time, for them to make intelligent business, production and process control decisions. NOTE: This article and all content are provided on an "as is" basis without any warranties of any kind, whether express or implied, including, but not limited to the implied warranties of merchantability, fitness for a particular purpose, and non-infringement. In no event shall Wonderware North be liable for any special, indirect or consequential damages or any damages whatsoever resulting from loss of use, data or profits, whether in an action of contract, negligence or other tortuous action, arising out of or in connection with the use or performance of information contained in this article.