TechNote869 SMC System Management Console Configuration For Historian
TechNote869 SMC System Management Console Configuration For Historian
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#: 002669
Created: July 2012
Introduction
Wonderware Historian Server provides Summary replication to store and retrieve summarized data so that you can access and analyze
the data quickly, without having to perform ad-hoc calculations on the fly. Summary replication involves analyzing and storing statistical
information about tag values based on specified time intervals, called calculation cycles. The summary results can be stored on a Tier-1
(local) Historian, or sent to a Tier-2 (remote) Historian to be stored with the timestamp of the cycle.
There are two types of summary replication: Analog summary replication and State summary replication. Analog summary replication
produces summary statistics for analog tags. The statistics relate only to the recorded interval. State summary replication summarizes
the various states of a tag value. State summary replication can be applied to analog (integer only), discrete, and string tags.
Using local replication, Analog and State summary data can be stored for quick retrieval by configuring replication tags that correlate with
the source tag (Figure 3 below). This Tech Note shows you how to configure the Historian Server to replicate analog summary data
locally using a local Replication Server.
Application Versions
Historian Server 10 or later
-or-
Note: This Tech Note assumes that you are familiar with Wonderware Historian Server and Microsoft SQL Server Management Studio. If
you have any questions regarding the Microsoft SQL Server, contact Microsoft Technical support at www.microsoft.com for further
assistance.
Procedures
1. Open the ArchestrA System Management Console (SMC)
3. Right click the desired calculation cycle. In this example we use 15 Minutes.
4. Click Add Multiple Tags. The Add Multiple Tags – Step 1 of 2 – Select tags to replicate wizard appears (Figure 2 below).
5. Click Find Now to show all analog tags in the Found Tags panel.
6. Select teh tags you want to replicate, then click the > button in order to add the tags to the target tag list.
7. Click OK. The Add Mutiple Tags – Step 2 of 2 – Create replication wizard appears (Figure 3 below). Figure 3 shows the
destination tag names to which the source tags will be replicated.
Destination tags are provided with a suffix corresponding to the calculation cycle such as 15M. You can override the default values
shown in Figure 3.
8. Click Apply. The Status column shows Passed for every tag (Figure 4 below).
9. Click Close.
The Analog Summary Replication/15 Minutes item now includes the newly-added tags (Figure 5 below).
10. On the left pane of the SMC, right-click Configuration Editor and click Commit Pending Changes to apply the changes to the
Runtime database.
2. On the left pane of the SMC, expand the Management Console item and click Replication. The Local Replication status appears
in the right panel.
Replication Server: The name of the remote replication server, or "Local Replication" when replicating locally.
Total Tags: The total number of tags being replicated to the replication server.
Sync Queue Values/Sec: The average number of synchronization queue values replicated per second.
Querying AnalogSummaryHistory
Analog summary replication produces summary statistics for analog tags. The statistics relate only to the recorded interval. You can
retrieve the following statistics:
Time-weighted average
Standard deviation
Integral
OPC Quality
Value
When you retrieve the data, you specify which calculation you want to return. The AnalogSummaryHistory view allows you to return
multiple statistics for a single tag within a single query. The following query returns the minimum, maximum, and average values for the
SysTimeSec tag for the last minute.
SELECT StartDateTime, EndDateTime, Tagname, OPCQuality, Minimum as MIN, Maximum as MAX, Average as AVG
FROM AnalogSummaryHistory
WHERE TagName = 'ProdLevel.15M'
AND StartDateTime >= dateadd(minute,-30, GETDATE())
AND EndDateTime <= GETDATE()
B. Nguyen
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.
Back to top
©2012 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.