Documente Academic
Documente Profesional
Documente Cultură
Historian
Scenarios Guide
Version 17.0.18000
March 2017
© 2017 Schneider Electric Software, LLC. All rights reserved.
No part of this documentation shall be reproduced, stored in a ret rieval system, or transmitted by any
means, electronic, mechanical, photocopying, rec ording, or otherwise, without the prior written
permission of Schneider Electric Soft ware, LLC. No liability is assumed with respect to the use of the
information contained herein.
Although precaution has been taken in the preparation of this documentation, Schneider Electric
Software, LLC assumes no responsibility for errors or omissions. The information in this documentation
is subject to change without notice and does not represent a commitment on the part of Schneider
Electric Software, LLC. The software described in this documentation is furnished under a license
agreement. This software may be used or copied only in accordance wit h the terms of such license
agreement.
ArchestrA, A vantis, DYNS IM, eDNA, EYESIM, Foxboro, Foxboro E vo, I/A S eries, InBatch, InduS oft,
InStep, IntelaTrac, InTouch, PIPEPHASE, PRiSM, PRO/ II, PROVIS ION, ROMeo, Schneider Electric,
SIM4ME, SimCentral, SimSci, Skelta, SmartGlance, Spiral Soft ware, VIS UAL FLA RE, WindowMaker,
WindowViewer, and Wonderware are trademarks of Schneider Electric SE, its subsidiaries, and
affiliated companies. An extensive listing of Schneider Electric Soft ware, LLC trademarks can be found
at: http://software.schneider-electric.com/legal/trademarks/. All other brands may be trademarks of
their respective owners.
Schneider Electric Soft ware, LLC
26561 Rancho Park way South
Lake Forest, CA 92630 U.S.A.
(949) 727-3200
http://software.schneider-electric.com/
Publication date: 2/28/2017
Contact Us
Contact Schneider Electric Software Technical Support
Avanti s Technical Support
Listing of regional and local country contacts: http://software.schneider -electric.com/support/avantis/
Technical support: http://softwares upport.schneider-electric.com/
For A vantis.PRO, A vantis Approvals, Avantis.DSS, and Condition Manager:
Email: support.pro@avantis.net
Phone (8:30 a.m. to 5:00 p.m. Monday to Friday, Eastern Time):
o Toll-Free U.S. and Canada: 1-888-262-7111
o Toll-Free EMEA: 1-800-4670-6466
o Direct dial: 1-905-632-0635
For A vantis. XA:
Email: support.xa@avantis.net
Phone (8:30 a.m. to 5:00 p.m. Monday to Friday, Eastern Time):
o Toll-Free U.S. and Canada: 1-800-991-8000
o Toll-Free EMEA: 1-800-4670-6466
o Direct dial: 1-905-632-4122
SimSci Technical Support
Listing of regional and local country contacts: http://software.schneider -electric.com/support/simsci/
Technical support: http://softwares upport.schneider-electric.com/
Phone (USA 8:00 a.m. to 5:00 p.m. Central Time)
o Toll-Free U.S. and Canada: 1-800-746-7241
Email U.S. and Canada: support.simsci@schneider-electric.com
Wonderware Technical Support
Listing of regional and local country contacts: https://www.wonderware.com/contact/contact -support/
Technical support: http://softwaresupport.schneider-electric.com/
Priority email for Customer FIRS T Members: custfirstsupport@wonderware.com
Email for customers without a support agreement: wwsupport@wonderware.com
Phone
o Toll-Free North America and Latin Americ a: 1-800-966-3371
o Direct dial: 1-949-639-8500
InStep Technical Support
Cont act page: http://www.instepsoftware.com/contact-us
Technical support: https://support.instepsoft ware.com/
Email: instepsupport@schneider-electric.com
Phone (USA 8:00 a.m. to 5:00 p.m. Central Time)
o 1-312-894-7870
Schneider Electric – Smart Water Software Technical Support
Help desk email: DK-HSO-Support@schneider-electric.com
Help desk telephone hotline: +45 88 30 20 77 (09:00 to 16:00 Monday to Thurs day, Friday 09:00 to
15:00, Central European Time)
Contact Schneider Electric Software Learning Services
Cont act Software Learning Services for assistance regarding classes, schedule, offerings, frequently
asked questions, tuition, policies, and more.
Email: software.training@schneider-electric.com
Toll-Free U.S. and Canada: 1-866-998-7246
Direct: 1-949-639-8508
Fax: 1-949-639-1847
Wonderware Historian Scenarios Guide
Contents
Welcome .................................................................................................................................... 7
Wonderware Historian Documentation Set .................................................................................. 7
Version 17.0.18000 5
Wonderware Historian Scenarios Guide
Welcome
In your plant, you work hard to manage large amounts of data. While you and other Wonderware
Historian customers may have very different processes and products, you probably do share some key
issues around managing your data and using it to better run your operations.
This book discusses nine common scenarios where Wonderware Historian can help. They are:
1. Using hourly and daily reports.
2. Tracking inventory and production with packing line counters
3. Tracking liquid and gas use with custody meters.
4. Analyzing cycle time for your process.
5. Calculating the total flow.
6. Calculating downtime statistics.
7. Pinpointing reasons for downtime.
8. Filling in the gaps in your data.
9. Understanding and using data.
Version 17.0.18000 7
Wonderware Historian Scenarios Guide Welcome
In addition, the Schneider Electric License Manager Guide describes the Schneider Electric License
Manager and how to use it to install, maintain, and delete licenses and licens e servers on local and
remot e computers.
8 Version 17.0.18000
Wonderware Historian Scenarios Guide
Version 17.0.18000 9
Wonderware Historian Scenarios Guide
Version 17.0.18000 11
Wonderware Historian Scenarios Guide Scenario 2: Track inventory and production with packing line counters
For example, assume that you have the following dat a values for five consecutive cycle boundaries,
and that the value 0 occurs as the first value within the last cycle:
100, 110, 117, 123, 3
If you set the rollover value to 0, the counter retrieval mode assumes that the 0 following the value 123
represents a manual reset, and returns a value of 3 for the last cycle, which is assumed to be the count
after the manual reset. The value 0 itself does not contri bute 1 to the counter value in this case.
If the rollover value is instead set to 200, then the counter ret rieval mode assumes that the value 0
represents a normal rollover, and a count of 80 is calculated and returned (200 - 123 + 3). In this case,
the value 0 cont ribut es 1 to the counter value, and that is the change from the value 199 to the value
200.
Handling Exceptions
To handle revers als instead of treating them as rollovers, you can use a counter deadband. For more
information, see Counter Retrieval - Using a Counter Deadband in the Wonderware Historian Retrieval
Guide.
For details on how counter retrieval handles "gaps" in data and how to compensate for that in your
queries, see Counter Retrieval and Counter Retrieval - How It Works in the Wonderware Historian
Retrieval Guide.
Example: Counting Items with Counter Retrieval
To use the counter mode, set the following parameter in your query:
wwRetrievalMode = 'Counter'
In the following example, the rollover value for the TotalProduced.Counter tag is set to 0. In a time
span of 3 hours, the tag increments from 0 to 9999 twice. The following query returns the an hourly
total count within the queried time span. The QualityDetail of 212 indicat es that a counter rollover
occurred during the reported time range.
12 Version 17.0.18000
Wonderware Historian Scenarios Guide
Version 17.0.18000 13
Wonderware Historian Scenarios Guide
Value
RoundTrip Retrieval
C0 C1 C2 C3
PC0 Round-trip PC1 PC2 PC3
ON
OFF Gap
Round-trip
1 2 3 4 5 6 7 8 9 11 12 13 14 15 16 17 18 19 21 22 23 24 25 26 27 28 29
Time
TC0 TC1 TC2 TC3
RoundTrip calculates the time a state begins until the time the same state begins again. For a discrete
tag that simply tracks on and off, RoundTrip mode returns two rows per cycle. For example, when
querying a discrete tag, RoundTrip can calculate the time between when a mot or starts until the next
time it starts, and when the motor stops until the next time it stops.
Example: Analyzing Cycle Time with RoundTrip Retrieval
To use the RoundTrip retrieval mode, set the following parameter in your query:
wwRetrievalMode = ‘RoundTrip’
This query uses RoundTrip retrieval:
Version 17.0.18000 15
Wonderware Historian Scenarios Guide Scenario 4: Analyze cycle time for your process
AND wwRetrievalMode='RoundTrip'
AND wwStateCalc='MinContained'
AND wwTimeStampRule='start'
In these results, the value "0" shows when the valve was off and "1" when it was on.
The resulting rows show the average amount of time for each state and have a timestamp of the query
end time (the default).
16 Version 17.0.18000
Wonderware Historian Scenarios Guide
wwRetrievalMode = 'Integral'
In this example, the value is computed for each of five one -minut e cycles. The wwQualityRule
parameter ensures that only points with good quality are used in the computation; data points with
doubtful quality are discarded.
Version 17.0.18000 17
Wonderware Historian Scenarios Guide Scenario 5: Calculate the total flow
The Value column shows the total flow for eac h 4-hour cycle. To calculate the total flow for the entire
period, add the flow values together.
18 Version 17.0.18000
Wonderware Historian Scenarios Guide
Version 17.0.18000 19
Wonderware Historian Scenarios Guide Scenario 6: Calculate down time statistics
20 Version 17.0.18000
Wonderware Historian Scenarios Guide
Version 17.0.18000 21
Wonderware Historian Scenarios Guide Scenario 7: Pinpoint reasons for downtime
22 Version 17.0.18000
Scenario 7: Pinpoint reasons for downtime Wonderware Historian Scenarios Guide
Version 17.0.18000 23
Wonderware Historian Scenarios Guide
Version 17.0.18000 25
Wonderware Historian Scenarios Guide Scenario 8: Filling in data gaps
If the query specifies Optimistic, the results include a PercentGood column indicating whether all the
data was "good" (100) or included some combination of "bad" and "uncertain" data (anything less than
100).
For the illustration above, there iis no previous dat a and no available data in the first cycle, so it is
skipped. At the second cycle boundary, the value 0 is returned, because there was a gap in the data
for the entire first cycle. In the second cycle, there are two points, P1 and P2. The query uses P2 as
the end value of the cycle and infers a start value of the cycle from P1. At the third cycle boundary,
Tc2, the query returns P2 – P1. Similarly, at the last cycle boundary, the query returns P4 – P3.
Example: Masking Gaps in Your Data
At times, you the results of a query might return null values, as in the following example:
26 Version 17.0.18000
Scenario 8: Filling in data gaps Wonderware Historian Scenarios Guide
You can improve the us efulness of your data by adding this statement:
wwQualityRule = 'Optimistic'
For example:
Version 17.0.18000 27
Wonderware Historian Scenarios Guide Scenario 9: Understanding and using data
Note: Although in many cases OPCQuality and QualityDetail use the same codes to indicate similar
concepts (for example, "192" indicates normal "good" values), they will oft en be different and should
not be used interchangeably.
28 Version 17.0.18000
Scenario 9: Understanding and using data Wonderware Historian Scenarios Guide
Note: Although a quality detail of 65536 is used to indicat e block gaps, NULL values are not produced
for block gaps.
Using WWQualityRule
Wonderware Historian provides three different options for interpreting the stored OPCQuality:
Good: Filters out "uncertain" values, as if they did not exist, and converts "bad" values to NULL.
Extended: Includes "unc ertain" values, but takes them out of the "PercentGood" calculations and
makes the OPCQuality "uncert ain" for calculated results that include included them. Extended
also converts any "bad" valuesto NULL.
Optimi stic: Filters out "bad", but is otherwise similar to "extended".
Examples: Using OPCQuality to Refine Results
Suppose you wanted a report to tell you the average production level for a certain storage tank for
each 8-hour shift. You could run this query:
To force a query to exclude points with uncert ain OP C quality, set wwQualityRule to Good. For
example, you can change the previous example to this:
Version 17.0.18000 29
Wonderware Historian Scenarios Guide Scenario 9: Understanding and using data
Finally, queries to AnalogSummaryHistory use the Optimistic quality rule exclusively . For example:
30 Version 17.0.18000