Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Contents
2 of 62
Exporting a transaction template ................................................................................................................ 50
Conclusion ................................................................................................................................................. 62
3 of 62
Before you begin
Launch the FactoryTalk Transaction Manager. A shortcut to it can be found on your desktop or it can be
run from the Start -> All Programs -> Rockwell Software -> FactoryTalk Transaction Manager ->
FactoryTalk Transaction Manager menu item.
The goal of this lab is to demonstrate some of the types of advanced tasks that can be accomplished with
the product and to explore the tools available to help create and manage larger configurations quickly and
easily.
This lab is intended to be done in sequence; however provisions have been made to allow individual
exercises to be skipped if necessary.
4 of 62
Exercise 1: Work order tracking
In many manufacturing systems, it is desirable to know where partially built products are at various times.
Tracking work in progress can help reduce inventory, identify bottlenecks in the process and highlight
areas where efficiency can be improved. Tracking WIP is often an important piece of migrating from a
build to inventory to a build to order model and can help reduce the amount of wasted raw materials.
To this end, exercise 1 will pair FactoryTalk Transaction Manager with a stored procedure to retrieve a
manufacturing order for a work station and record the time that the order was received by the first station
and the time that the order was completed by that station. When completed, an operator will be able to
pull the next work order from the database from the HMI terminal and allow the control system to
automatically update the work order status when complete.
In the FactoryTalk Transaction Manager user interface, select New from the Configuration
menu
5 of 62
Click Apply
Click OK on the Insert Success dialog then Close to return to the configuration checklist
Click Step 2
Click Yes on Update Warning dialog. Then click OK on the Update Success dialog.
6 of 62
From the Connector Service drop down box, select OLEDB Connectors
Note that the password field has already been populated and click Apply (note: if the password
field is blank, enter rockwell)
Click OK on the Insert Success dialog then Close to return to the configuration checklist
With these controller tags identified, the next step in configuring Transaction Manager is to define the
data points, and their collection parameters.
7 of 62
Click Step 3
8 of 62
Change the mode of /Devices::[MI10_Control]Station1.NextGet and
/Devices::[MI10_Control]Station1.BuildTimer.DN to Unscheduled
Click Apply to save changes and then Close to return to the configuration checklist
9 of 62
table containing manufacturing orders and a stored procedure to pull the next available order for the first
station. Transaction Manager can interface directly with a variety of database table designs and perform
single row inserts or updates. More complicated operations and integrations can be wrapped in a stored
procedure and exposed to Transaction Manager.
For this exercise, Transaction Manager will be configured to use the stored procedure dbo.getWIP to
check out the next manufacturing order from the database and directly update dbo.wipTrack when the
work at the current station has completed.
Click Step 4
Click the ellipsis [] button next to the Database Connection drop down box
Click Refresh
10 of 62
11 of 62
From the list of databases, select ProductionManagement and click Test
Click Apply
Click OK on the Insert Success dialog then Close to return to the data object definition
window
12 of 62
From the Stored Procedure drop down box select dbo.getWIP
Click the >> button to select add all parameters to the data object.
13 of 62
In the Name field, enter MI10.ProductionManagement.dbo.getWIP
Click Apply
Hold the Ctrl key and click on the fields, mfgorder, partID, and sta1out and click the >>
button to add these fields to the data object
14 of 62
Right click on partID in the list of Data Object Columns and select Modify the update attribute
Click No
Click Apply to save changes and then Close to return to the configuration checklist
15 of 62
Connecting control system to database
With the connection to both the control system and database defined, the last step in building a
configuration is connecting control system points to database objects and determining when data
transfers should occur.
Click Step 5
Click the Enable radio button under the Transaction Status section
16 of 62
In the Expression String field, enter station1 and click OK
Right click on @mfgOrder and select Separate Input/Output Parameter, do the same for
@partID. Note that there are now two entries for each parameter, an input labeled I and an
output labeled O
17 of 62
Right click on the input line of @mfgOrder and select Bind Null Value
Right click on the input line of @partID and select Bind Null Value
Right click on the output line of @mfgOrder and select Bind Data Point
Right click on the output line of @partID and select Bind Data Point
18 of 62
From the Bind Transaction Result drop down box select
FT.RSTechED2010::_MI10_Control_Station1.ReturnGetNext
19 of 62
Click Apply
20 of 62
Click Apply
21 of 62
22 of 62
Click Yes to confirm starting the configuration
Launch the FactoryTalk View client from the desktop short cut
23 of 62
Note that in the FactoryTalk Transaction Manager window, Station1.IN reports 1 total and 1
passed transactions and the Ready to build indicator in FactoryTalk View is illuminated.
Note that when the build process completes, the FactoryTalk Transaction Manager window
Station1.OUT reports 1 total and 1 passed transactions and the Ready for next indicator in
FactoryTalk View is illuminated.
24 of 62
Connect to the database engine on MI10 with Windows Authentication
Under MI10 > Databases > ProductionManagement > Tables, right click on dbo.wiptrack and
click Select Top 1000 Rows
25 of 62
Verify that the sta1in and sta1out fields for the manufacturing orders processed have updated
with the current date and time.
26 of 62
Exercise 2: Parameter Download / Recipe Management
A database makes the perfect repository for storing recipes or collections of build and test parameters for
products. Paired with a stored procedure and a small amount of control system logic, FactoryTalk
Transaction Manager can be used to transfer parameters from the database into the control system as
needed. This concept can be extended to allow a database to manage any type of data that is better
managed outside the control system and effectively makes a database an integral part of the control
system.
Exercise 2 builds on the previous configuration and pulls build parameters for a particular part and passes
it back to the control system.
27 of 62
1. Right click on FT in the configuration tree and select Define Data Points
28 of 62
4. In the tag browser add /Devices::[MI10_Control]Station1.PartID and change the mode to
Unsched
Note: Even though the PartID datapoint was already selected in exercise one, add the data point
again and change the mode of the newly created datapoint.
5. Click Apply to save changes and Close to return to the main window
29 of 62
Adding data objects to an existing configuration
6. Right click on OLEDB under OLEDB Connectors and select Define Data Object
10. Click the >> button to add all stored procedure parameters to the data object
30 of 62
11. In the Name field enter MI10.ProductionManagement.dbo.getParam
12. Click Apply to save changes and Close to return to the main window
31 of 62
14. From the Data Object Name drop down box select
MI10.ProductionManagement.dbo.getParam
16. Right click on the @p1 input parameter and select Bind Null Value
32 of 62
19. Select Ft.RSTechED2010._Devices::_MI10_Control_Station1.PartID_1
20. Right click on the @p1 output parameter and select Filter & Select Data Points
22. Drag and drop Parameters_0_ to @p2, Parameters_1_ to @p3 and Parameters_2_ to
@p4
33 of 62
24. From the Bind Transaction Result drop down box select
FT.RSTechED2010._Devices::_MI10_Control_Station1.ReturnGetParam
28. Click the Ignore the First Unscheduled Event check box
34 of 62
Testing the modified configuration
34. From the Configuration menu select Start and click Yes to start the configuration
36. Launch the FactoryTalk View client from the desktop short cut
38. In the FactoryTalk View client, click the Get Next button
35 of 62
39. Note that the parameter information updates and both the Station1.IN and Station1.PARAM
transactions have executed.
36 of 62
Exercise 3: Duplicating transactions
In many environments, a single FactoryTalk Transaction Manager instance is used to manage data flow
to several similar or identical areas of the plant. In such environments it is often desirable to create one
set of transactions and duplicate them for other identical areas of the plant.
Exercise 3 takes the work done in exercise 1 and 2 and shows how the XML import / export tool can be
used to rapidly deploy the same set of transactions for two additional areas.
2. Select the XML Import / Export Wizard radio button and click OK
37 of 62
4. Under Export Settings uncheck Configuration Data and Connectors and click Next
38 of 62
6. Review the export results and click OK
39 of 62
9. From the File menu, select Open>File
11. From the Edit menu, select Find and Replace > Quick Replace
40 of 62
12. In the Find and Replace window, under Find what: enter Station1 and under Replace with
enter Station2 and click Replace All
14. Change Find what: to sta1 and Replace with: to sta2 and click Replace All
15. There should be 2 occurrences replaced. Click OK and close the Find and Replace"
16. From the File menu, select Save MI10_Config.xml As and change the file name to
Station2.xml
41 of 62
Importing new configuration data
17. In FactoryTalk Transaction Manager, from the Tools menu select Wizards and reopen the
XML import/export wizard
42 of 62
20. Click the ellipsis button next to the XML File field and browse to C:\Lab
Files\MI10_Config\Station2.xml
23. When the import is complete, review the status and log. The import should complete with 16
successful and 4 failed records.
43 of 62
24. Click Open Log to view the import log. Note that the errors were for reused objects and not new
objects.
25. In FactoryTalk Transaction Manager, click on a different entry in the configuration tree to force a
refresh. Note: a second set of transactions have been created
27. Start the configuration and test each station as documented in exercise 1 and 2.
44 of 62
Exercise 4: Buffered data collection
While useful for bi-directional data management, the most common application for FactoryTalk
Transaction Manager is data collection. While simple data point reads and table inserts are enough for
most applications, some data collection scenarios require the control system to buffer data to be collected
in short bursts.
Exercise 4 walks through an example buffered data collection scenario and illustrates additional import /
export tools that can be used to augment the user interface and allow for rapid development of
applications.
45 of 62
4. Select the row for /Device::[MI10_Control]Buffer[0].DateTime and press CTRL-C
5. Open Microsoft Excel and create a new workbook and press CTRL-V to paste
6. In Column A, add an equal sign and double quote at the start of the line and a double quote at the
end.
7. Replace the 0 in Buffer[0] with &ROW()-1& including the quotation marks as shown
8. In column B, add an equal sign and double quote at the start of the line and a double quote at the
end.
46 of 62
9. Replace the 0 in Buffer_0_ with &ROW()-1& including the quotation marks as shown
10. Note that the display values in columns A and B are still the same as in the Data Point Definition
window in FactoryTalk Transaction Manager.
11. Select the row and drag the copy/fill handle down 20 rows
12. Excel may perform a Fill Series by default, ensure that it performs a copy by clicking on the
popup menu and selecting Copy Cells
47 of 62
13. Delete columns N and O from the spreadsheet
15. Click on an empty line in the data point definition window in FactoryTalk Transaction Manager
and press Ctrl-V to paste.
16. In the Data point name resolution message, click Modify Existing
17. Repeat steps 4-16 on a new sheet in the same workbook for
/Devices::[MI10_Control]Buffer[0].Value. Leave Microsoft Excel open when complete
18. In FactoryTalk Transaction Manager, click Apply to save changes and then Close
48 of 62
Adding a new data object
19. Right click on OLEDB under OLEDB Connectors and select Define Data Object
20. From the Database Connection drop down box select \\MI10\ProductionManagement
22. From the Stored Procedure drop down box select dbo.storeBuffer
23. Click the >> button to add all stored procedure parameters to the data object
49 of 62
24. In the Name field enter MI10.ProductionManagement.dbo.storeBuffer
25. Click Apply to save changes, and OK on the Insert Success dialog
29. From the Data Object Name drop down box select
MI10.ProductionManagement.dbo.storeBuffer
50 of 62
32. Click Yes to save the transaction with errors
33. Click OK on the Insert Success dialog and Close to return to the main window
51 of 62
37. Select Export Transaction, enter My Documents\StoreBuffer.tsv and click Next
38. From the Data Object drop down box select MI10.ProductionManagement.dbo.storeBuffer
52 of 62
39. Check StoreBuffer and click Finish
40. The wizard will report an error, click Finish to restart the wizard.
41. Leave the wizard window open and go back to Microsoft Excel
43. When the file opens, Microsoft Excel will display a text import wizard. Click Finish to close the
wizard.
53 of 62
45. From the original workbook, copy the contents of column B on the sheet used to create the
.DateTime data points. Note: Do not select the entire column. Only select the cells with data
from rows one through twenty.
54 of 62
46. In StoreBuffer.tsv, select Row 2, Column D, right click and select and Paste Special
47. In the Paste Special dialog, select Values and check the Transpose checkbox then click OK
55 of 62
48. From the original workbook, copy the contents of column B on the sheet used to create the
.Value data points. Note: Again, do not select the entire column. Only select the data in the
cells from row one through twenty.
56 of 62
49. In StoreBuffer.tsv, select Row 2, Column X, right click and select Past Special
50. In the Paste Special dialog, select Values and check the Transpose checkbox then click OK
53. In the File Name field enter My Documents\StoreBuffer.tsv and click Next
54. Click Next on the Import Confirmation screen to perform the import and OK when the import
has completed.
57 of 62
Completing the imported transaction
56. In FactoryTalk Transaction Manager window, from the Define menu, select Transaction
57. From the Transaction Name drop down box, select StoreBuffer
59. Click the String button and type Tag1 then click OK
58 of 62
63. Select On Change and Click OK
64. Click Apply and the Close to return to the main window.
66. From the View menu, ensure that Transaction Defnition is selected.
59 of 62
68. Click the Assemble All button on the toolbar
69. Click Yes accept the pending edits and OK to acknowledge that edits have been assembled.
70. From the View menu, select Transaction Monitor and note that StoreBuffer is now triggering
and collecting data
71. From the Configuration menu select Stop and stop the configuration.
60 of 62
72. Under MI10 > Databases > ProductionManagement > Tables, right click on dbo.sampleBuffered
and click Select Top 1000 Rows
61 of 62
73. Verify that the table contains data collected from the controller.
Conclusion
The exercises in this lab demonstrate a subset of the data management applications possible with
FactoryTalk Transaction Manager. From simple data logging to complex manufacturing intelligence
applications, FactoryTalk Transaction Manager can be used to manage the flow of information from the
control system to the enterprise.
62 of 62