DM08 FTHS Advanced Use of ProcessBook
DM08 FTHS Advanced Use of ProcessBook
Advanced Lab 2
Contents
Lab Format.................................................................................................................................................... 5
Lab Materials................................................................................................................................................. 6
Software ........................................................................................................................................................ 6
Document Conventions................................................................................................................................. 8
Exercise...................................................................................................................................................... 10
Exercise...................................................................................................................................................... 24
Exercise...................................................................................................................................................... 38
3 of 55
Welcome to FactoryTalk Historian Advanced Lab
Welcome to the FactoryTalk Historian Advanced Lab! This session provides you with an opportunity to
explore more advanced features of the new FactoryTalk Historian Site Edition. The following sections explain
what you’ll be doing in this lab session, and what you will need to do to complete the hands-on exercises.
FactoryTalk Historian Site Edition is a solution for optimizing your manufacturing process through the analysis
of historical data. Historian provides the capability to collect, store, analyze, and visualize data using a
powerful capturing engine and a powerful set of reporting tools (such as time-series trends, bar chart, pie
chart, and tabular) and easily generate reports using Microsoft Excel.
When using Historian you will see references to OSIsoft PI. FactoryTalk Historian is built on OSIsoft PI
technology, based on a joint development and licensing relationship between Rockwell Automation and
OSIsoft. Some of the more advanced tasks in FactoryTalk Historian will have to be performed using the
OSIsoft PI tools such as SMT (PI System Management Tool), ICU (PI Interface Configuration Utility) etc.
This lab uses a combined FactoryTalk View SE and FactoryTalk Batch project called Instant Soap which
simulates a Soap manufacturing process. The plant has several work cells generating data that will be
collected by Historian for use in your production reports.
4 of 55
Who Should Complete This Lab
Lab Format
This lab is a “pick and choose” lab, with six (6) different lab to choose from. Each lab will take about 30 min to
one hour, so it is not the expectation that you will finish all six labs. You will be able to take these labs material
with you after the lab, for further learning later.
5 of 55
Lab Materials
For this Hands-On lab, we have provided you with the following materials that will allow you to complete
the labs in this workbook.
Software
This hands-on lab uses the following software:
Microsoft Windows Server 2003 SP2
Microsoft Internet Explorer 7.0
FactoryTalk Historian Site Edition 2.1
FactoryTalk Historian ProcessBook.
FactoryTalk Historian DataLink
FactoryTalk Historian BatchView Add-in
FactoryTalk Historian SQC Add-in
FactoryTalk Historian ActiveView
FactoryTalk Administration Console 2.10 (CPR9)
A modified InstantSoap Logix 5000 project.
FactoryTalk View Site Edition 5.0 (CPR9)
Microsoft Office 2003 (Excel 2003)
Activation licenses for appropriate software
SoftLogix v16
6 of 55
Tools and prerequisites
One (1) “host” computer with VMware virtualization software will host 2 “guest” operating systems for a
total of 2 virtual computers in a workgroup named “FTHDEMO”. The VMware images are named as
follows:
1. “VM-DATA”: A Windows 2003 Server computer to act as a FactoryTalk Directory and
FactoryTalk View Site Edition HMI Server and Client. Internet Information Server (IIS) and the
necessary Rockwell Software has been pre-installed (and activated) for you.
2. “VM-HIST”: A Windows 2003 Server computer to act as the server for FactoryTalk Historian SE,
and to host the clients: Configuration Clietns, ProcessBook, and DataLink clients.
Learning Point: We are not participating in the RSTechEd Windows Domain during this lab. While a
Windows Domain is recommended for use with FactoryTalk View SE, it is not required for 10 computers or
less. A Windows Domain is also not required to use Terminal Services. We are using VMware’s “Host Only”
networking environment to create a virtual Ethernet limited to your PC.
Communications Overview:
Host PC
Virtual Ethernet
TCP/IP Protocols
(numerous ports)
VM-DATA VM-HIST
(FTSP & View SE Server) (FT Historian SE and Clients)
The 2 VMware guest images use the following pre-existing user account:
o Administrative User:
o Username: Administrator Password: rockwell
o Desktop Background: RSTechEd08
7 of 55
Document Conventions
Throughout this workbook, we have used the following conventions to help guide you through the lab
materials.
This style or symbol: Indicates:
Words shown in bold italics (e.g., Any item or button that you must click on, or a menu name from
RSLogix 5000 or OK) which you must choose an option or command. This will be an
actual name of an item that you see on your screen or in an
example.
Words shown in bold italics, An item that you must type in the specified field. This is information
enclosed in single quotes (e.g., that you must supply based on your application (e.g., a variable).
'Controller1')
Note: When you type the text in the field, remember that you do
not need to type the quotes; simply type the words that are
contained within them (e.g., Controller1).
The text that appears inside of a gray box is supplemental
“Learning Point”. The text is intended to emphasize certain key
concepts about using the product.
Note: If the mouse button is not specified in the text, you should click on the left mouse button.
The following steps must be completed before starting the lab exercise:
a. Username: Administrator
b. Password: rockwell
8 of 55
Section 1: Using ProcessBook Datasets
9 of 55
Exercise
1. Verify that you are on the VM-HIST image by checking the hostname on the background image:
2. Launch ProcessBook:
4. Select new “ProcessBook Display (.pdi) File”, set the “Display Name” to “Test”, and click
the “OK” button:
10 of 55
5. Select the “Data Sets…” command on the “Tools” menu:
6. In the “Data Sets” dialog, click on the “New” button and choose the “PI Calculation” sub-type:
11 of 55
7. Set the data set “Name” to “LEVEL” and the “Description” to “Tank Level”. Set the “Tag or
Expression” to the tag “SINUSOID” and the “Interval” to “1h” then click the “OK” button:
12 of 55
12. Use the drop-down to the right of the “Tag Search…” button to select a “PI Calculation”:
13 of 55
13. First, select “LEVEL” from the “Datasets” list. Next, select from the “Columns” the “Average”, “Minimum”,
and “Maximum” columns. Finally, click the “OK” button:
14 of 55
14. Change the “Start Time” to “*-12 Hour” and then click the “OK” button:
15. Examine the effect of the data set calculations on the SINUSOID tag. Notice how the summary
calculations that we selected are performed on an hourly basis as configured by the “Interval” setting:
16. We will now explore using Data Sets to perform custom calculations. Use the “Open” icon on the toolbar
to open the file “Ex12 – Data Sets.PDI” located in the class files folder:
15 of 55
17. Again, select the “Data Sets…” entry on the “Tools” menu:
18. Notice that the “Data Sets” dialog is again empty. This is because the data sets we previously created
are local to the file in which they were created. Click on the “New” button and choose the “PI
Calculation” sub-type:
16 of 55
19. On the “PI Calculation Data” dialog, set the following values:
o Name: PRODUCTA
o Description: % Product A
o Tag or Expression: ‘CDT158’ * 100 / (‘CDT158’ + ‘BA:TEMP.1’)
o Column Label: % Product A
20. Back in the “Data Sets” dialog, click on the “Close” button:
21. Change to build mode by selecting the “Build” button on the toolbar:
17 of 55
22. Click on the “Value” toolbar button:
23. Use the “Value” tool and click on the area beneath the “% Product A” label:
24. Select “PI Calculation” from the drop-down to the right of the “Tag Search…” button:
25. Select “PRODUCTA” from the “Datasets” list. Next select “% Product A” from the “Columns” list.
Finally, click the “OK” button:
18 of 55
26. Click the “OK” button:
27. Notice that the tank outlet now displays the current percentage of “Product A”:
19 of 55
28. With the “Build” cursor selected, double-click on the empty “Plot-0”:
20 of 55
29. Select “PI Calculation” from the drop-down to the right of the “Tag Search…” button:
30. Select “PRODUCTA” from the “Datasets” list. Next select “% Product A” from the “Columns” list.
Finally, click the “OK” button:
21 of 55
31. Click the “OK” button:
32. Now you can enjoy a live updating trend of the calculated product A percentage:
22 of 55
Section 2: ProcessBook Relative Displays
23 of 55
Exercise
1. Verify that you are on the VM-HIST image by checking the hostname on the background image:
3. Click the “Open” toolbar button and open the file “Ex15 - PB Rel Display Setup.xls” located in
the class files folder (ask instructor for exact location):
4. If you are presented with a macro security warning, simply click the “OK” button:
24 of 55
6. Select the “Export Items…” entry on the “Module Database Builder” sub-menu of the “PI-SMT”
menu. Be careful to not use the “Export Tags…” entry on the “PI-SMT” menu.
7. First expand the tree and click on the “Modules” entry to select it. Next, change the “Mode” to “Create”.
Finally, click the “OK” button:
8. Verify that the only errors produced are “-12001”. These can be ignored for this exercise. Click the “OK”
button:
25 of 55
9. Close Excel and launch the System Management Tools (SMT):
10. Under the “Operation” category, select the “Module Database” plug-in:
11. Expand the “Modules” tree and verify that the “Aliases” and “Properties” for “Reactor 1” and
“Reactor 2” were properly created:
26 of 55
13. Click on the “New” toolbar button:
14. Select a “Type” of “ProcessBook Display (.pdi) File”, set the “Display Name” to “Test”
and click the “OK” button:
15. Make sure that you are in “Build” mode and select the “Symbol Library” toolbar button:
16. Drag a box in some empty space and then select a tank from the symbol library:
27 of 55
17. On the “Tools” menu, select the “Add Module…” entry on the “Module Context” sub-menu:
18. Use ctrl-clicks to select both “Reactor 1” and “Reactor 2”. Next click the “>” button to add them both
to the “Selected Modules” list. Finally click the “OK” button:
20. Click on the background to the right of the tank to initiate the dynamic value dialog:
28 of 55
21. In the “Format” options, select a display location of “Top” for the “Tag” attribute. Next, select the
“Module Context” entry from the drop-down to the right of the “Tag Search…” button:
22. From the “Properties” category, select the “Height” entry. Next, click the “>” button. Finally, click
the “OK” button:
29 of 55
24. Repeat steps 19 through 23 to add the “Radius” property and the “Level”, “Concentration”, and
“Temperature” aliases:
25. Click the “Bar” toolbar button and then drag a rectangle over the tank:
30 of 55
26. Select “Module Context” from the drop-down to the right of the “Tag Search…” button:
27. Click on the “Level” alias, then the “>” button, and finally the “OK” button:
31 of 55
28. Click the “OK” button:
29. Click on the “Value” toolbar button and then click on the background below the tank:
32 of 55
30. In the “Format” options, select a display location of “(None)” for the “Tag” attribute. Next, select the
“Module Context” entry from the drop-down to the right of the “Tag Search…” button:
31. Select the “Current Context” checkbox and then click the “OK” button:
33 of 55
33. Select the “Trend” toolbar button and drag a rectangle on the background below the tank:
34. Select the “Module Context” entry from the drop-down to the right of the “Tag Search…” button:
34 of 55
35. Click on the “Teperature” alias, then the “>” button, and finally the “OK” button:
36. Change the “Start” time to “*-1 Hour” and then click the “OK” button:
35 of 55
37. Change back to “Run” mode and try changing the active context to “Reactor 2”:
38. After you have finished exploring your module relative display, close ProcessBook. This exercise has
been completed.
36 of 55
Section 3: SQC Charting in ProcessBook
37 of 55
Exercise
1. Verify that you are on the VM-HIST image by checking the hostname on the background image:
3. Click the “Open” toolbar button and open the file “Ex16 - ProcessBook SQC Setup.xls” located in
the class files folder (ask instructor for exact location):
38 of 55
5. On the “Export PI Tags” dialog, verify that the “Mode” is set to “Create” and then click the “OK”
button:
7. Close Excel
8. Launch ProcessBook:
9. Use the “Open” icon on the toolbar to open the file “Ex16a – SQC.PDI” located in the class files folder:
39 of 55
10. Verify that you are in “Run” mode and then explore the interactive SQC chart:
11. Drag a rectangle on the data plot to zoom in to the selected area:
12. Click the “Revert Time Ranges” toolbar button to undo the zoom:
40 of 55
13. Double-click on the chart control to maximize it. Double-click on it again to return it to its original size and
location:
14. Use the “One Time Period Back” and “One Time Period Forward” toolbar buttons to scroll
through the data:
15. Use the “Scroll Time” bar to free scroll through the data:
16. Use the set time range button to look at a specific period of data:
17. Set the time span from “*-4 Hour” to “*” and click the “OK” button:
41 of 55
19. Double-click on the “Exercise 1: [Individuals]” title bar to bring up the “Statistics Window”:
42 of 55
20. Examine the various statistics and information available, eventually selecting the “Plot Data” option
and click on the “Save Data To File” button:
43 of 55
22. Close the “Statistics Window” and open the “sqcdata.txt” file in Notepad:
23. When you are done examining the available statistics, close Notepad and close the ProcessBook display
file.
44 of 55
25. Select new “ProcessBook Display (.pdi) File”, set the “Display Name” to “Ex16 - XBar”,
and click the “OK” button:
26. Switch to “Build” mode and then click on the “SQC Chart” toolbar button:
45 of 55
28. On the “General” tab, set the following fields (and click “OK”):
o Chart Title: X-Bar Control Chart
o Chart Type: X - Bar
o Chart Tag: stationary1
46 of 55
30. Click the “Save” button:
31. Take some time to explore your recently created SQC chart. When you are ready, use the “Save As…”
command on the “File” menu:
47 of 55
32. Set the new name to “Ex16 – Moving Avg.PDI” and then click the “Save” button:
48 of 55
34. On the “General” tab, set the “Chart Title” to “Moving Avg Control Chart”. Next change the
“Chart Type” to “Moving Average”. Finally click on the “Sample” tab:
35. On the “Sample” tab, set the “Sample Size” to “5” and then click “OK” button:
49 of 55
36. Click the “Save” toolbar button:
37. Take some time to play with the SQC chart. When you are done, close the current PDI and then reopen
the “Ex16 – XBar.PDI” file:
50 of 55
39. Set the new name to “Ex16 – XBar Time Sampled.PDI” and then click the “Save” button:
51 of 55
41. We want to change the sampling algorithm. We want to take two samples every ten minutes starting on 5
and 6 minutes after the hour. On the “Sample” tab, change the “Calculation Basis” to “Time”. Set
the “Calculation Period” to “00:10:00”. Set the “Sample Period” to “00:01:00”. Set the
“Start Time of Sample” to “00:05:00”. Finally click the “OK” button:
52 of 55
43. Take some time to play with the SQC chart. When you are done, close the current PDI and then open
the file “Ex16b – SQC.PDI” located in the class files folder:
53 of 55
45. On the “Sample” tab, use the “Tag Search…” button to select the “stationary3_filter” tag and set
the “Filter Equation” to : ‘stationary3_filter’ = 1
46. Click “OK” to acknowledge that the filter equation is correct. Then, click “OK” to close the “PI-SQC Chart
Definition” dialog:
54 of 55
47. Change to “Run” mode and use a “Trend Cursor” to verify that now values greater than 31.9 or less
than 29.1 appear in the SQC Chart anymore:
48. Save the file and then close ProcessBook. This short exercise has been completed.
55 of 55