Professional Documents
Culture Documents
Lab 10 - Use The Tag Analysis Wizard 5-39: Systimesec
Lab 10 - Use The Tag Analysis Wizard 5-39: Systimesec
Lab 10 - Use The Tag Analysis Wizard 5-39: Systimesec
10. For this lab, accept the default settings in the wizard.
12. Change one of the tags in the analysis by changing the text in Cell A2 from LIT_001.PV to
SysTimeSec.
Notice that the data in column B changes as well as the scatter plot. Cell B1 continues to read
LIT_001.PV.
13. Change cell B1 to read SysTimeSec.
14. Create a new Tag Analysis using the Analog tag analysis type. Excel will create a new sheet
automatically. Use the LIT_001.PV tag.
15. Accept all the defaults in steps 3 and 4.
18. To preserve the results of this tag analysis, use the Convert Sheet button on the Workbook
toolbar.
19. Save the report in the C:\Wonderware Training\Labs folder as TagAnalysis.xls.
Wonderware Training
Lab 11 – Create an Hourly-Average Shift Report 5-41
Introduction
The following lab demonstrates use of formatting, aggregate functions, and time ranges within
Excel.
Objective
Upon completion of this lab you will be able to:
z Create and Format a New Report based on a specific time range
z Create Shift Time Range
z Insert Aggregate Value Function
z Modify Cell Formulas
8. Click OK.
9. Select cell A3.
10. Select the ActiveFactory menu and click Tag Selection / Tag Selection.
11. Locate the SysDataAcqOverallItemsPerSec tag and click OK.
Wonderware Training
Lab 11 – Create an Hourly-Average Shift Report 5-43
21. Select cell A6 and position the cursor over the lower right-hand corner of the cell. The cursor
should turn into a + icon, indicating a handle.
22. Drag the handle downwards to cell A12. This will increment each of the highlighted cells by
one hour.
The date and time should now appear in each of the cells. Your instructor will indicate what
time span to use.
Note: If cells need to be resized, a series of #s will appear in the cell fields. The cells can be
resized by double-clicking the column border at the top of the worksheet.
Wonderware Training
Lab 11 – Create an Hourly-Average Shift Report 5-45
Note: (C5) is selected because the output will contain 2 cells: (C4) contains the tagname,
(C5) contains the aggregate value for that time (last hour of data).
31. Select the Values spaced every option (we want average values).
32. Set the number to 60000 ms. This value sets the data retrieval mode to Cyclic, at 1-minute
intervals.
33. Click Next.
34. Select the Absolute Time option.
35. Click the first radio button (not the checkbox) under Absolute time.
36. Insert your cursor into the top-left field just below the Single value checkbox.
37. In the main worksheet field, select cell A5. This is the cell containing the time at the beginning
of the aggregate time span.
38. Insert your cursor into the right-hand field below the Absolute Time option.
This is the cell that contains the ending time of the average period.
39. In the main worksheet field, select cell A6. This is the cell containing the time at the end of the
aggregate time span.
The dialog box should now look like the following figure:
Note: The value is calculated against the previous hour, so the first one appears at 9:00, the
second at 10:00, etc.
Wonderware Training
Lab 11 – Create an Hourly-Average Shift Report 5-47
Changing the cell reference creates relative cell referencing and enables the average values
to be cascaded down the column.
43. Press the Enter key to save the changes.
44. Highlight cell C6 and drag it down to row 12.
The cell values are refreshed during the drag-down. This is because the wwAggregate formula
is being dynamically copied into each cell.
You can now change the tagname reference or the date/time from within the worksheet field
and Workbook will calculate the new values.
45. Save the report in the C:\Wonderware Training\Labs folder as ShiftAvg_DataAcq.xls.
It will be used in Lab 26, “Publishing Workbook Reports”.
Wonderware Training