Rockwell Automation FactoryTalk Transaction Manager User Manual

USER GUIDE
PUBLICATION RSSQL-UM001H-EN-P-April 2011
Supersedes Publication RSSQL-UM001G-EN-P
Copyright
Contact Rockwell
Customer Support Telephone 1.440.646.3434 Online Support http://www.rockwellautomation.com/support
Copyright Notice
© 2011 Rockwell Automation Technologies, Inc. All rights reserved. This document and any accompanying Rockwell Software products are copyrighted by
Rockwell Automation Technologies, Inc. Any reproduction and/or distribution without prior written consent from Rockwell Automation Technologies, Inc. is strictly prohibited. Please refer to the license agreement for details.
Trademark Notices
FactoryTalk, Rockwell Automation, Rockwell Software, the Rockwell Software logo are registered trademarks of Rockwell Automation, Inc.
The following logos and products are trademarks of Rockwell Automation, Inc.: RSBizWare, FactoryTalk Metrics, and FactoryTalk Transaction Manager.
Other Trademarks
Microsoft, SQL Server, Event Viewer, Windows, Windows Server 2003, and Windows Server 2008 are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries.
Adobe, Acrobat, and Reader are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries.
All other trademarks are the property of their respective holders and are hereby acknowledged.
Warranty
This product is warranted in accordance with the product license. The product’s performance
may be affected by system configuration, the application being performed, operator control, maintenance and other related factors. Rockwell Automation is not responsible for these intervening factors. The instructions in this document do not cover all the details or variations in the equipment, procedure, or process described, nor do they provide directions for meeting
every possible contingency during installation, operation, or maintenance. This product’s
implementation may vary among users. This document is current as of the time of release of the product. However, the accompanying
software may have changed since the release. Rockwell Automation, Inc. reserves the right to change any information contained in this document or the software at anytime without prior notice. It is your responsibility to obtain the most current information available from Rockwell when installing or using this product.
2
Contents
Chapter 1 Welcome To FactoryTalk Transaction Manager 13
What Is FactoryTalk Transaction Manager? ................................. 13
What Can FactoryTalk Transaction Manager Do For Me? ................. 13
Automate Data Logging .................................................... 13
Control the Plant Floor Using Business Rules and Quality
Enforcement ................................................................. 14
Manage Recipes .............................................................. 14
Understanding FactoryTalk Transaction Manager Concepts ............. 14
Transaction Control Manager Service .................................... 15
FactoryTalk Transaction Manager Service and Control Connectors 17
Control Connectors ......................................................... 18
Enterprise Connectors ...................................................... 18
Configuration Server ........................................................ 18
Transactions .................................................................. 19
FactoryTalk ....................................................................... 19
FactoryTalk Services Platform Components ............................ 20
Intended Audience .............................................................. 21
Where Can I Go For Help? ...................................................... 22
3
FactoryTalk Transaction Manager User Guide
Online Help ................................................................... 22
Product Manual .............................................................. 22
Training ....................................................................... 23
Technical Support ........................................................... 23
Get Web Support ............................................................ 24
Get Phone Support .......................................................... 24
Get Consulting Services .................................................... 24
Contact Us .................................................................... 24
Chapter 2 Installing FactoryTalk Transaction Manager 27
Before You Begin ................................................................ 27
Hardware Requirements ................................................... 27
Software Requirements .................................................... 28
Software Compatibility ..................................................... 30
Activation ..................................................................... 30
Activation Options .......................................................... 33
Installing FactoryTalk Transaction Manager Software .................... 36
Distributed FactoryTalk Transaction Manager Installations ......... 38
Chapter 3 Exploring the FactoryTalk Transaction Manager User Interface
41
Starting FactoryTalk Transaction Manager ................................. 41
Exploring the FactoryTalk Transaction Manager User Interface ........ 42
Title Bar....................................................................... 43
Menu Bar ...................................................................... 44
Toolbar ........................................................................ 45
Configuration Tree .......................................................... 46
Workspace .................................................................... 49
Status Bar ..................................................................... 50
Configuration Checklist ........................................................ 50
4
Contents
Step 1: Defining and Naming a New Configuration .................... 53
Step 2: Defining Connectors ............................................... 54
Step 3: Defining Data Points .............................................. 54
Step 4: Defining Data Objects ............................................ 55
Step 5: Defining Transactions ............................................. 55
Step 6: Verifying Transactions ............................................ 56
Miscellaneous .................................................................... 56
Viewing Configuration Properties ........................................ 56
Starting Configurations ..................................................... 57
Stopping Configurations .................................................... 58
Starting and Stopping Connectors ........................................ 58
Monitoring Configurations ................................................. 58
Understanding FactoryTalk Transaction Manager External Files ........ 60
Using the Service Console ..................................................... 61
Chapter 4 Understanding FactoryTalk Transaction Manager Services 63
Introducing FactoryTalk Transaction Manager Services .................. 63
Control Connectors ............................................................. 63
FactoryTalk Live Data ...................................................... 64
DDE ............................................................................ 64
RSLinx Classic OPC .......................................................... 65
RSView32 ..................................................................... 65
Generic OPC .................................................................. 66
Enterprise Database Connectors .............................................. 66
ODBC........................................................................... 67
Oracle OCI .................................................................... 67
Microsoft OLE DB ............................................................ 67
Enterprise Application Connectors ........................................... 67
Microsoft COM+ .............................................................. 68
Time-series Data Compression ............................................ 68
FactoryTalk Metrics ......................................................... 68
Enterprise Connector Options ................................................. 68
FactoryTalk Transaction Manager Service .................................. 69
Transaction Control Manager Service ........................................ 70
5
FactoryTalk Transaction Manager User Guide
Configuration Server ............................................................ 70
Chapter 5 Defining Data Points 73
Introducing Data Points ........................................................ 73
FactoryTalk Live Data Data Points ........................................... 75
Selecting a Collection Mode ............................................... 76
Consecutive Data Point and Data Block Support ....................... 77
Selecting Timeout Properties ............................................. 78
Selecting a Substitution Option ........................................... 80
Preventing Stale and Mismatched Data ................................. 80
Specifying Quality ........................................................... 81
OPC Data Points ................................................................. 82
RSLinx Classic OPC Data Points ........................................... 82
Generic OPC Data Points ................................................... 83
RSView32 Data Points ...................................................... 83
DDE Data Points ............................................................. 84
Chapter 6 Defining Data Objects 87
Introducing Data Objects ...................................................... 87
Enterprise Database Objects .................................................. 89
Oracle Call Interface (OCI) Data Objects ............................... 89
Microsoft SQL Server Data Objects ........................................... 89
ODBC Data Objects .......................................................... 89
Enterprise Application Objects ............................................... 90
Microsoft COM+ Data Objects ............................................. 90
FactoryTalk Metrics Data Objects ........................................ 91
Enterprise Connector Error Handling ........................................ 91
Inserting and Updating Data Table Records ................................ 93
Stored Procedures ............................................................... 93
Chapter 7 Creating Transactions 95
6
Introducing Transactions ....................................................... 95
Transaction Types ............................................................... 96
Contents
Unidirectional Transactions ............................................... 97
Bidirectional Transactions ................................................. 97
Bidirectional or Unidirectional Transactions With Transaction
Bindings ....................................................................... 99
Transaction Timeout .......................................................... 101
Transaction Completion ...................................................... 102
Cached Transactions ...................................................... 102
Real-time Transactions ................................................... 102
Bidirectional Transactions ............................................... 104
Transactions With Bound Transaction Results ........................ 104
Database Triggers ......................................................... 104
Expression Editor .............................................................. 104
Logical and Mathematical Operations ................................. 105
Time Functions ............................................................ 106
Data Point Range and Advanced Functions ........................... 106
Parse Function ............................................................. 107
Chapter 8 Understanding Online Edits 111
Introducing Online Edits ..................................................... 111
Understanding Online Edit Concepts....................................... 111
Online Edits Workflow .................................................... 112
Configurations That Use Online Edits .................................. 114
Learn More About Current and Pending Edits ........................ 115
Assembling Pending Edits ................................................ 116
Canceling Pending Edits .................................................. 117
Pending Edit Alerts ........................................................ 118
Creating a Configuration That Uses Online Edits ........................ 121
Editing Data Points In a Running Configuration That Uses Online Edits
............................................................................... 121
Editing Transactions In a Running Configuration That Uses Online
Edits ......................................................................... 124
Chapter 9 Exploring Advanced Topics 131
Introducing Advanced Topics ................................................ 131
Remote User Interface ....................................................... 131
7
FactoryTalk Transaction Manager User Guide
Configuring the Remote User Interface ............................... 132
Distributed Configurations ................................................... 133
Licensing Required For a Distributed Configuration ................ 133
Establishing Microsoft Windows Privileges ............................ 134
Creating a Distributed Configuration .................................. 134
Using UNC Paths ........................................................... 134
Data Point Buffering ...................................................... 135
Increasing Performance ...................................................... 138
Control System ............................................................. 138
Database .................................................................... 138
FactoryTalk Transaction Manager ...................................... 139
Hardware and Operating Environment ................................ 140
Appendix A FactoryTalk Transaction Manager Sample Applications 143
External Trigger Sample Application ...................................... 143
Contents .................................................................... 143
Running the Application .................................................. 144
Appendix B FactoryTalk Transaction Manager and Microsoft COM+ Objects147
Introducing FactoryTalk Transaction Manager and Microsoft COM+
Objects .......................................................................... 147
Creating the Remote Component .......................................... 147
Creating the Client Application ............................................. 148
Installing the Remote Component .......................................... 149
Setting Up the Remote Client ............................................... 150
Creating the Microsoft COM+ Setup Program ............................. 150
Moving the Client Sample Application ..................................... 151
Including the COM+ Enterprise Application Connector In a FactoryTalk
Transaction Manager Configuration ........................................ 152
Defining the COM+ Enterprise Application Connector .................. 152
Defining the COM+ Data Object ............................................ 153
Code Sample A (ComSampleVB) ............................................ 154
Code Sample B (ClientSampleVB) .......................................... 155
8
Contents
Appendix C Securing FactoryTalk Transaction Manager Using FactoryTalk
Security 159
About FactoryTalk Security .................................................. 159
Considerations When Using FactoryTalk Transaction Manager With
FactoryTalk Security .......................................................... 159
Specify FactoryTalk Security Permissions That Allow You To Perform
FactoryTalk Transaction Manager Tasks .................................. 162
FactoryTalk Transaction Manager Behaviors When the FactoryTalk
Security Single Sign-on User Is In Effect .................................. 165
Overview .................................................................... 166
At FactoryTalk Transaction Manager Start Up ....................... 166
When Using FactoryTalk Transaction Manager ....................... 168
Writing Product-Specific Security Privileges From a Previous Release
To a File .................................................................... 169
Map Old Product-Specific Security Privileges To the New FactoryTalk
Security Permissions ...................................................... 170
Appendix D Glossary 173
Index .................................................................. 181
9
FactoryTalk Transaction Manager User Guide
10
Figures
Figures
Figure 1: FactoryTalk Transaction Manager Functions (1) ................... 16
Figure 2: FactoryTalk Transaction Manager Functions (2) ................... 17
Figure 3: FactoryTalk Transaction Manager Functions (3) ................... 42
Figure 4: FactoryTalk Transaction Manager Title Bar ........................ 43
Figure 5: FactoryTalk Transaction Manager Menu Bar ........................ 44
Figure 6: FactoryTalk Transaction Manager Configuration Tree ............ 47
Figure 7: Error Log File View ...................................................... 49
Figure 8: Transaction Definition View ........................................... 50
Figure 9: FactoryTalk Transaction Manager Configuration Checklist ...... 52
Figure 10: FactoryTalk Data Point dialog box .................................. 74
Figure 11: Data Object Definition dialog box .................................. 88
Figure 12: Transaction Monitor ................................................... 92
Figure 13: Transaction Definition dialog box ................................... 96
Figure 14: Expression Editor dialog box ....................................... 105
Figure 15: Online Edits Workflow diagram ................................... 113
Figure 16: Pending Edit Alerts dialog box..................................... 120
Figure 17: FactoryTalk Transaction Manager Configuration ............... 121
Figure 18: Transaction Definition dialog box ................................. 124
Figure 19: Transaction Differences dialog box ............................... 127
Figure 20: Communication scheme ............................................ 132
11
FactoryTalk Transaction Manager User Guide
12
Chapter 1
Welcome To FactoryTalk Transaction Manager
What Is FactoryTalk Transaction Manager?
FactoryTalk Transaction Manager (previously known as RSSql) is an industrial transaction software engine that shares data between your shop floor systems and your enterprise applications (for example, corporate databases) or COM+. FactoryTalk Transaction Manager can interact with the following shop floor systems:
Human Machine Interfaces (HMI) Programmable Logic Controllers (PLC) ControlLogix Controllers Distributed Control Systems (DCS)
What Can FactoryTalk Transaction Manager Do For Me?
FactoryTalk Transaction Manager helps you to manage your manufacturing processes by integrating the data in your control systems with enterprise applications. The following three sections describe examples of FactoryTalk Transaction Manager applications.
Automate Data Logging
FactoryTalk Transaction Manager can move large amounts of data in a fast and robust manner. In addition, the software has built-in fault tolerance and
13
FactoryTalk Transaction Manager User Guide
the ability to optimize reading and writing of both control and enterprise data. You can use the software to automate the following types of processes:
Monitoring performance of control systems such as machine usage. Tracking product information such as Work in Progress status and raw
material availability.
Updating real-time process information such as temperature, pressure,
and alarm states.
Control the Plant Floor Using Business Rules and Quality Enforcement
FactoryTalk Transaction Manager provides the interface for a repository of business rules. A business rule can be any logic required to run your plant such as product specifications or quality parameters. By placing business rules in a database or COM+ server in a central location, the rules are easier to manage within an enterprise system. Additionally, the software can assure
quality data to meet the requirements of today’s advanced manufacturing
companies.
Manage Recipes
FactoryTalk Transaction Manager moves data (for example, recipe information) from a database to an HMI or control system.
Understanding FactoryTalk Transaction Manager Concepts
FactoryTalk Transaction Manager consists of several design-time and run-time components. This guide describes the following components in detail: Transaction Control Manager service, FactoryTalk Transaction Manager service, control connectors, enterprise connectors, Configuration Server, and transactions.
14
1 Welcome To FactoryTalk Transaction Manager
Transaction Control Manager Service
The Transaction Control Manager is a service that controls and executes FactoryTalk Transaction Manager transactions contained in a configuration, but with the additional functionality of the FactoryTalk Live Data control connector embedded in it. In an edit enabled configuration, the Transaction Control Manager replaces the separate FactoryTalk Transaction Manager and control connector services.
15
FactoryTalk Transaction Manager User Guide
The Transaction Control Manager service can connect to Rockwell Software products and all OPC servers; therefore, the use of this service is the preferred method for all new FactoryTalk Transaction Manager configurations. For more information on how the Transaction Control Manager service functions, see the following figure.
In a configuration that uses online edits, the Transaction Control Manager service performs the duties of the FactoryTalk Transaction Manager service. For more information on online edits, see Chapter 8, Understanding Online Edits (page 111).
16
Figure 1: FactoryTalk Transaction Manager Functions (1)
1 Welcome To FactoryTalk Transaction Manager
FactoryTalk Transaction Manager Service and Control Connectors
The FactoryTalk Transaction Manager service is used to control and execute FactoryTalk Transaction Manager transactions contained in configurations created prior to CPR 7 or when you have a business reason to not run the Transaction Control Manager service. For more information on how the FactoryTalk Transaction Manager functions, see the following figure.
Figure 2: FactoryTalk Transaction Manager Functions (2)
17
FactoryTalk Transaction Manager User Guide
Control Connectors
The FactoryTalk Transaction Manager service interfaces with the industrial control system device via a control connector. A control connector is a Microsoft Windows 2003/XP/Vista/2008 R2 service that collects data from a controller and sends it to the FactoryTalk Transaction Manager service in the FactoryTalk Transaction Manager. You can use the following types of control connectors: FactoryTalk Live Data, DDE, RSLinx Classic OPC, RSView32, and Generic OPC. Control connectors can be used to reference data points, or memory locations within your control or shop floor system, such as ―tags‖ from an RSView32 application.
Enterprise Connectors
The Transaction Control Manager service and the FactoryTalk Transaction Manager service interface with enterprise systems such as databases via an enterprise connector service. An enterprise connector is a Microsoft Windows 2003/XP/Vista/2008 R2 service that transfers data between the Transaction Control Manager service or the FactoryTalk Transaction Manager service and a database. You can use the following types of enterprise connectors: Open Database Connectivity (ODBC), Oracle Call Interface (OCI), Microsoft OLE DB, Microsoft COM+, Time-series Data Compression, and FactoryTalk Metrics. Enterprise connectors can be used to create data objects that reference elements in your enterprise system, such as tables or stored procedures.
Configuration Server
The Configuration Server is a Microsoft Windows 2003/XP/Vista/2008 R2 service that runs continuously to provide a single interface to the configuration (.dat) files that make up the FactoryTalk Transaction Manager configuration. The Configuration Server simplifies access to configuration files by filtering all changes to the files and interfacing with other FactoryTalk Transaction Manager services. A collection of all changes that affect a configuration are recorded in an audit trail (via either FactoryTalk Diagnostics or the Configuration Server *.log file). For more information, see the FactoryTalk Transaction Manager online help.
18
1 Welcome To FactoryTalk Transaction Manager
Transactions
FactoryTalk Transaction Manager creates transactions, or discrete operations that transfer data from your control system to/from the enterprise system. For example, a single transaction can download data from an Oracle database, via a stored procedure, to tags in a ControlLogix processor. Alternately, a transaction can send multiple data points from a distributed control system to a Microsoft SQL Server database to be logged for reporting. Transactions can be modified at runtime; for more information, see Chapter 8, Understanding Online Edits (page 111).
The transaction model organizes the task of data management. FactoryTalk
Transaction Manager’s flexibility provides many options for customizing all
aspects of a transaction. The software can manage many transactions at once, allowing for sophisticated manufacturing data collection and control applications. Using the software, you can also monitor, modify, and enable or disable individual transactions, making the development and implementation of an application easier.
FactoryTalk
FactoryTalk is a manufacturing information platform that integrates plant-wide control systems and connects the enterprise with the production facility.
Integrate - FactoryTalk eliminates both functionality gaps and overlaps
by providing common services (such as diagnostics and access to real-time data) and by sharing plant resources (such as tags and graphic displays) throughout a production facility.
Communicate - FactoryTalk transforms plant-floor data into useful
information and delivers it to the people who need it, from maintenance engineers to enterprise planners.
Collaborate - FactoryTalk allows defining plant-floor resources once,
and then allows simultaneous access to those resources across system boundaries.
19
FactoryTalk Transaction Manager User Guide
FactoryTalk Services Platform Components
With each coordinated release, additional Rockwell Software products build on the FactoryTalk platform and integrate more of the FactoryTalk components. All of the FactoryTalk components install together as a platform, integrated into each FactoryTalk-enabled product's install process. The following sections discuss the FactoryTalk Services Platform components.
FACTORYTALK DIRECTORY
FactoryTalk-enabled products use the FactoryTalk Directory to share a common address book, which automatically finds and provides access to plant-floor resources, such as data tags and graphic displays. Unlike a single database, FactoryTalk Directory provides searchable references to resources stored anywhere across an automation system, offering the benefits of central data storage without the risk of a single point of failure. Changes made to the automation system automatically update across all participants in a FactoryTalk-enabled application.
FACTORYTALK LIVE DATA
FactoryTalk Live Data manages connections between FactoryTalk-enabled products and data servers. It notifies clients when a connection is lost, automatically reconnects, and combines data from multiple controllers and servers into a single group with a single data server connection. This results in faster real-time data transfer and more reliable, efficient connections to data servers. It also assists in redundancy support for data servers by automatically handling detection and failovers for all FactoryTalk-enabled products.
FACTORYTALK ADMINISTRATION CONSOLE
The FactoryTalk Administration Console is a stand-alone tool that allows you to configure and manage FactoryTalk-enabled applications.
20
1 Welcome To FactoryTalk Transaction Manager
FACTORYTALK AUDIT AND FACTORYTALK DIAGNOSTICS
FactoryTalk Audit and FactoryTalk Diagnostics provides the ability to log errors, warnings, and other status messages generated throughout a FactoryTalk-enabled system to either local logs or a central location.
FACTORYTALK SECURITY
FactoryTalk Security is intended to improve the security of your automation system by limiting access to those with a legitimate need. FactoryTalk Security authenticates user identities and authorizes user requests to access a FactoryTalk-enabled system. These security services are fully integrated into the FactoryTalk Directory and are included as part of the FactoryTalk Services Platform that installs with many Rockwell Software products.
FactoryTalk Security replaces all of the product-specific privilege configuration that was available in previous releases of FactoryTalk Transaction Manager. For more information about using FactoryTalk Transaction Manager with FactoryTalk Security, refer to Appendix C, Securing FactoryTalk Transaction Manager using FactoryTalk Security (page 159).
Intended Audience
We assume that you are a control engineer or database administrator and that you are familiar most of the following:
Intel personal computers Microsoft Windows 2003/XP/Vista/2008 R2 operating systems DDE or OPC servers (for example, RSLinx Classic or RSView32) Configuration of database connections such as ODBC, OCI, or
Microsoft OLE DB
Microsoft COM+ RSLinx Enterprise
21
FactoryTalk Transaction Manager User Guide
FactoryTalk View SE
Where Can I Go For Help?
Our commitment to your success starts with the suite of learning aids and assistance we provide with FactoryTalk Transaction Manager. Consult the following resources for additional information:
Online help Product manual Training Technical support
Online Help
The online help provides general overview information, comprehensive step-by-step procedures, quick start topics, and context-sensitive control definitions (for example, text boxes, drop-down lists, and option buttons) for working with all of the features in FactoryTalk Transaction Manager. You can view online help in FactoryTalk Transaction Manager by using any of the following methods:
select Help > FactoryTalk Transaction Manager Help on the main
FactoryTalk Transaction Manager user interface.
click Help on any FactoryTalk Transaction Manager dialog box. click the What's This? icon in the upper-right corner of a FactoryTalk
Product Manual
You can gain immediate access to product documentation by selecting Help > Product Manuals > FactoryTalk Transaction Manager User Guide
from within FactoryTalk Transaction Manager. Throughout this document, a number of style conventions are used to help identify material. File menu
22
Transaction Manager dialog box, then click any control to open a definition of that control.
1 Welcome To FactoryTalk Transaction Manager
paths are in bold with a (>) separating the entries (e.g., go to File > New); text you are asked to type is shown in Courier Bold (e.g., in this field, type Work Week), and button names are shown in bold (e.g., click OK).
Training
One of the best ways to increase your proficiency at using Rockwell Software products is to attend Rockwell Software training programs. Our training programs can help you master the basics and show you how to unleash the full potential of our software.
We offer a wide range of training programs, from regularly scheduled classes conducted at Rockwell Automation facilities to custom-tailored classes conducted at your enterprise. The size of each class is kept small intentionally to maximize student engagement.
If you would like more information about our training programs, visit the Rockwell Software site on the World Wide Web or contact the Rockwell Software Training Coordinator. Our World Wide Web address and telephone numbers appear on the inside front cover of this document.
Technical Support
Rockwell Automation’s support team of outstanding professionals provides
top-notch technical support-monitoring and tracking your experience with our products to pave the road to your success in understanding and improving your factory performance.
Rockwell Automation provides full support for FactoryTalk Transaction Manager. Questions concerning installation and the use of the software are handled by the Rockwell Automation Customer Support Center, staffed every day - except U.S. holidays - from 8 AM to 5 PM in your time zone for calls originating within the U.S. and Canada.
To reach the Customer Support Center, call 1 (440) 646-3434 and follow the prompts. For calls originating outside the U.S./Canada, locate the number in your country by visiting http://www.rockwellautomation.com/locations.
23
FactoryTalk Transaction Manager User Guide
Get Web Support
For web-based product support, and for detailed information on technical support
resources, please visit http://www.rockwellautomation.com/support/.
Access the Rockwell Automation Knowledge base for 24/7 technical information and assistance. You can also download software patches and new software versions, ask questions via email, participate in user forums, and access other useful problem-solving tools.
The support resources available vary depending upon the product purchased. The latest information can be obtained from the Rockwell Automation Technical Support website.
A current TechConnect Support contract may be required to use some online features.
Get Phone Support
To speak with a Technical Support representative in North America, call 1-440-646-3434.
For information on how to contact Technical Support in other locations worldwide, please visit http://www.rockwellautomation.com/support/.
A current TechConnect Support contract may be required to obtain phone support.
Get Consulting Services
Rockwell Automation provides expert consulting and turnkey implementation of this product. Please contact your local representative for more information.
Contact Us
We strive to help all of our customers become successful in their manufacturing improvement efforts. Toward this objective, we invite you to contact your local representative or Rockwell Automation at any time that we may be of service to you.
24
1 Welcome To FactoryTalk Transaction Manager
25
Chapter 2
Installing FactoryTalk Transaction Manager
Before You Begin
You should know about the following prerequisites before you install FactoryTalk Transaction Manager:
hardware requirements software requirements software dependencies activation activation options
See the following sections for more information.
Hardware Requirements
To use FactoryTalk Transaction Manager v10.10 effectively, your personal computer must meet the following hardware requirements:
Intel Pentium processor (1 GHz or faster recommended) - single, dual,
or quad processors.
512 MB of RAM recommended (or more based on application
requirements).
34 MB of free hard disk space (or more based on application
requirements).
CD-ROM compatible drive. 256-color VGA graphics adapter (1024 x 768 or greater resolution).
27
FactoryTalk Transaction Manager User Guide
Software Requirements
To use FactoryTalk Transaction Manager v10.10 effectively, the software installed on your server computer must meet the following minimum requirements.
One of the supported operating systems:
Microsoft Windows XP (Service Pack 3) Microsoft Windows Server 2003 R2 Standard Edition (Service
Pack 2)
Microsoft Windows Vista Business (Service Pack 2) Microsoft Windows Server 2008 R2
In order to use control connectors, you need one or more of the
following:
DDE server and/or OPC server software. If you use the RSView32 control connector, you must have
RSView32 v7.40.00 or later.
RSView32 is not supported on Windows Server 2008 R2.
RSLinx Classic must be configured to start as a Microsoft Windows service.
In order to use enterprise connectors, you need one or more of the
28
If you use the RSLinx Classic OPC control connector, you must
have RSLinx Classic v2.52.00 or later.
following:
If you use an ODBC enterprise connector, you must have ODBC
Manager and ODBC drivers version 2.x or later.
If you use an Oracle OCI enterprise connector, you must use one of
the following types of Oracle databases:
2 Installing FactoryTalk Transaction Manager
Oracle 9i, with ODBC driver version 9.2.1.0, and Net client
driver version 9.2.0.1.0.
Oracle 10g, with ODBC driver version 10.2.0.1.0, and Net
client driver version 10.2.0.1.0.
Oracle 11g, with ODBC driver version 11.1.0.6.0, and Net
client driver version 11.1.0.6.0.
Oracle 10g and later supports all three types of client installations (Instant client,
Runtime and Administrator install). Oracle databases created in version 10.2.0.1.0 and later are recommended. The use of the Oracle ODBC drivers is not recommended.
If you use a Microsoft OLE DB enterprise connector, you must
have one of the following types of Microsoft SQL Server databases:
SQL Server 2000 (Service Pack 4), with ODBC driver
SQLSRV32.DLL version 2000.85.1117.0
SQL Server 2005 (Service Pack 3), with ODBC driver
SQLSRV32.DLL version 2000.86.3959.0 and Net client driver SQLNCLI.dll version 2005.90.4035.0.
SQL Server 2008 R2 with ODBC driver SQLSRV32.DLL
version 6.1.7600.16385 and Net client driver SQLNCLI.dll version 2005.90.1399.0.
If you use Microsoft COM+, your Microsoft COM+ connector and
the FactoryTalk Transaction Manager configuration using it must reside on a computer running one of the supported systems:
Microsoft Windows XP (Service Pack 3) Microsoft Windows Server 2003 R2 Standard Edition (Service
Pack 2)
Microsoft Windows Vista Business (Service Pack 2)
29
FactoryTalk Transaction Manager User Guide
Microsoft Windows Server 2008 R2
Microsoft COM+ objects must be built using Microsoft Developer Studio 6.0.
Microsoft Windows 2003/XP/Vista/2008 R2 simple TCP/IP services
must be configured.
Microsoft Data Access Components (MDAC) is updated to version 2.8
during the FactoryTalk Transaction Manager installation.
Minimum video resolution of 1024 x 768.
Software Compatibility
FactoryTalk Transaction Manager v10.10 has been tested, and is compatible, with the latest Rockwell Software release of the following products:
FactoryTalk Services Platform (v2.30.01) FactoryTalk Activation (v3.30.00) RSView32 (v7.50.00) FactoryTalk View SE (v5.20.00) RSLinx Enterprise (v5.30.00) RSLinx Classic (v2.56.00)
Activation
Rockwell Software's Windows-based software products are copy protected and require an activation key, located in an activation file, to run the software.
FactoryTalk Transaction Manager v10.10 supports the following activation tools:
FactoryTalk Activation: If you are a new user, you will need to
30
activate your software using FactoryTalk Activation.
2 Installing FactoryTalk Transaction Manager
EvRSI activation: If you are a current user upgrading to FactoryTalk
Transaction Manager v10.10, your activation is already installed and will be used automatically.
EvRSI activation will be replaced by FactoryTalk Activation in a future release. If you
are using EvRSI activation, please contact your local Rockwell Automation Sales office or Technical Support for information on migrating your activations to FactoryTalk Activation.
For Rockwell Automation Technical Support in the U.S. call 1 (440) 646-3434. Outside the U.S. see http://www.rockwellautomation.com/locations.
When you launch FactoryTalk Transaction Manager, the software checks for the activation file. If the system fails to detect the activation file, an error is logged to FactoryTalk Diagnostics. Refer to the FactoryTalk Activation online help for more information about diagnostic messages (go to x:\Program Files\Common Files\Rockwell\Help\FTActivationEN.chm, where x: is the drive where your Rockwell Software products are located).
FactoryTalk Transaction Manager software consists of several components. The Transaction Control Manager service and the FactoryTalk Transaction Manager service are copy protected, which means that you can run either of these services on only one computer, per license, at a time. The Microsoft COM+ enterprise application connector is also copy protected. If you have FactoryTalk Transaction Manager Professional, you may install copies of any of the other connectors on as many computers as necessary.
ACTIVATE USING FACTORYTALK ACTIVATION
FactoryTalk Activation provides a secure, software-based system for activating Rockwell Software products and managing software activation files. Activation files are generated and distributed via the Internet. If an Internet connection is not available, activation file information can be delivered via email, fax, or phone.
FactoryTalk Transaction Manager v10.10 supports floating, concurrent activations.
31
FactoryTalk Transaction Manager User Guide
To activate your software using FactoryTalk Activation, first determine your activation server/client configuration:
One or more activation servers, one or more clients. You will need
to run the FactoryTalk Activation Server software on the network computer(s) that will act as the activation server(s). You will need to run the FactoryTalk Activation Client software on each of the client computers. Then you will direct the client computers to the activation server computer.
Activation server/client on each computer. You will need to run the
FactoryTalk Activation Server software on this computer. This computer will then act as both the activation server and client.
For more information, see the FactoryTalk Activation online help.
ACTIVATE USING EVRSI ACTIVATION
EvRSI activation relied on a physical master disk that used to be supplied with the FactoryTalk Transaction Manager product. If you are a current user upgrading to the latest release, your activation is already installed and will be used automatically.
For more information about EvRSI activation, refer to the Activation Help (COPYPROT.HLP) by selecting Help > Copy Protection or by clicking Help on any of the EvMove or Reset dialog boxes.
GRACE PERIOD
In FactoryTalk Transaction Manager v10.10, the software supports a seven day activation grace period when a valid activation is not found. During grace period:
When a configuration is started following an operating system reboot, a
When a configuration is started from the software itself, you are
32
message is logged to the FactoryTalk Diagnostic log every four hours until a valid activation is found.
prompted to confirm entry into grace period mode. Upon confirmation, a message is logged to the FactoryTalk Diagnostic log every four hours
2 Installing FactoryTalk Transaction Manager
on the computer running the Transaction Control Manager service or FactoryTalk Transaction Manager service until a valid activation is found.
FactoryTalk Transaction Manager can be started an unlimited number
of times. If the grace period ends and a valid activation has not been found, you will no longer be able to start the software.
If FactoryTalk Transaction Manager is unable to successfully obtain valid activations
(for example, a network failure occurs), the software will attempt run in grace period for up to seven days.
Activation Options
Activating FactoryTalk Transaction Manager software is determined by two factors: whether the control and enterprise connectors can be distributed among several computers and the maximum number of tags (data points) that the Transaction Control Manager service or FactoryTalk Transaction Manager service will support.
Please keep the following in mind about FactoryTalk Transaction Manager
activation:
FactoryTalk Transaction Manager previously was sold without a restriction on
the number of tags. Although this option is no longer available, customers who own this version can continue without a tag restriction.
Each Microsoft COM+ connector must be installed on the same computer as
the Transaction Control Manager service or FactoryTalk Transaction Manager service and requires a separate activation.
Any FactoryTalk Transaction Manager activation must be installed on the same
computer (when using EvRSI activation) or on either a centralized or local activation server (when using FactoryTalk Activation) that will be running the Transaction Control Manager service or the FactoryTalk Transaction Manager service.
33
FactoryTalk Transaction Manager User Guide
FACTORYTALK TRANSACTION MANAGER LITE
This embedded version of FactoryTalk Transaction Manager supports data collection for RSBizWare components and allows you to create transactions in FactoryTalk Historian Classic and FactoryTalk Metrics, which can then be executed by the FactoryTalk Transaction Manager services. While FactoryTalk Transaction Manager Lite is similar to FactoryTalk Transaction Manager Professional and FactoryTalk Transaction Manager Standard, it only supports creating and modifying data points, data objects, and transactions defined by other RSBizWare components. FactoryTalk Transaction Manager Lite does not support custom transactions created outside of the RSBizWare suite. To use custom transactions in addition to RSBizWare transactions, a FactoryTalk Transaction Manager activation is required.
FactoryTalk Transaction Manager Lite cannot be purchased separately and does not
require a separate activation. FactoryTalk Transaction Manager Lite does not run in Demo mode.
FACTORYTALK TRANSACTION MANAGER DEMO
FactoryTalk Transaction Manager Demo cannot be purchased separately. This embedded version of FactoryTalk Transaction Manager runs when no activation is installed or the software is not already running under grace period. FactoryTalk Transaction Manager Demo is limited to two hours and 10 tags.
FACTORYTALK TRANSACTION MANAGER TRIAL
This version of FactoryTalk Transaction Manager allows you to run a configuration that includes 50 tags for a period of seven days. After seven days, FactoryTalk Transaction Manager servers will be shut down; these servers can be restarted. FactoryTalk Transaction Manager Trial is not compatible with configurations containing transactions that were created by FactoryTalk Historian Classic or FactoryTalk Metrics.
34
2 Installing FactoryTalk Transaction Manager
Catalog Number:
Class:
Availability:
Tag Limit:
9356-PRO2400
Unlimited Professional (1)
No
Unlimited
9356-PRO2500
Large Professional
Yes
70000
9356-PRO2450
Large Professional
Yes
32000
9356-PRO2350
Medium Professional
Yes
5000
9356-PRO2300
Medium Professional
Yes
1500
9356-PRO2200
Small Professional
Yes
300
9356-PRO2100
Small Professional
Yes
150
9356-STD2400
Unlimited Standard
No
Unlimited
9356-STD2350
FactoryTalk Transaction Manager Standard
Yes
5000 9356-STD2300
Large Standard
Yes
1500
9356-STD2200
Medium Standard
Yes
300
9356-STD2100
Small Standard
Yes
150
9356-SQLCOMPLS
Microsoft COM+ Connector (1), (2)
Yes
N/A
An activation is required to run this version of FactoryTalk Transaction Manager. This
activation is available with RSView32 7.30.00 or later, and FactoryTalk ViewSE
5.00.00 or later.
SUMMARY
The table below shows the level of distribution and the maximum number of tags supported for each FactoryTalk Transaction Manager activation.
The Availability column denotes sales availability (if the product is still for sale). "No" denotes products that are no longer available for sale.
35
FactoryTalk Transaction Manager User Guide
Catalog Number:
Class:
Availability:
Tag Limit:
N/A
Trial
Free (3)
50
N/A
Demo
Free
10
N/A
FactoryTalk Transaction Manager Lite
Free (3)
N/A
(1) Used when the software enters grace period. (2) Sold for use with FactoryTalk Transaction Manager Professional only. (3) With the purchase of other Rockwell Software products.
Installing FactoryTalk Transaction Manager Software
FactoryTalk Transaction Manager is installed from the FactoryTalk Transaction Manager CD-ROM or the RSBizWare CD-ROM.
To perform the installation tasks, you must have the Windows System Administrator privilege, and your user account must be a member of the local administrator user group.
If you install FactoryTalk Transaction Manager on a system running Microsoft
Windows 2003/XP/Vista/2008 R2 that has not previously run Microsoft Windows Installer (MSI), you will have to reboot the computer once the FactoryTalk Services Platform is installed. You may also have to reboot the computer at the end of the installation.
To install FactoryTalk Transaction Manager software, complete the following steps:
1. Log on to your system using an account with administrator privileges.
2. Shut down any other Rockwell Software applications and services.
3. If you are installing FactoryTalk Transaction Manager from the
FactoryTalk Transaction Manager CD-ROM, use autorun.exe or
36
2 Installing FactoryTalk Transaction Manager
setup.exe. If you are installing FactoryTalk Transaction Manager from the RSBizWare CD-ROM, FactoryTalk Transaction Manager installs automatically with any other RSBizWare service.
4. After you have launched the FactoryTalk Transaction Manager
Welcome Page, click Required Steps. Click each of the following options in the order specified below, to successfully install FactoryTalk Transaction Manager.
1. Check Operating System - Verifies your operating system and its
compatibility with the current version of FactoryTalk Transaction Manager.
2. Install Microsoft Internet Explorer - Installs Microsoft Internet
Explorer so that you can properly view the FactoryTalk Transaction Manager online help files. Follow the instructions that appear on the screen. If Microsoft Internet Explorer is already installed, skip to step 4.3.
3. View Release Notes - Displays the Release Notes, allowing you to
learn more about the current version of FactoryTalk Transaction Manager prior to installing the software.
4. Install FactoryTalk Services Platform - Installs the FactoryTalk
Services Platform on your computer. Follow the instructions that appear on the screen.
At the end of the FactoryTalk Services Platform installation, the FactoryTalk Services
Platform Wizard appears. Follow the instructions that appear on the screen.
5. Install FactoryTalk Activation Client - Installs the FactoryTalk
Activation Client on your computer. Follow the instructions that appear on the screen.
6. Install FactoryTalk Transaction Manager - Installs FactoryTalk
Transaction Manager on your computer. Follow the instructions that appear on the screen.
37
FactoryTalk Transaction Manager User Guide
7. View “How to Activate Rockwell Software Products” -
Displays information on activating Rockwell Software products.
8. Check for Product Updates - Displays the FactoryTalk
Transaction Manager Product Updates page, outlining any software updates that may be available after this version of the software was released.
5. After you have completed all of the required steps of the FactoryTalk
Transaction Manager installation, either click Documentation and Extras to display an optional page (which allows you to install Adobe Acrobat Viewer, view the FactoryTalk Transaction Manager User Guide, Release Notes, and other related documentation, display the Application Trigger example, and launch the FactoryTalk Transaction Manager Live Data Migration Tool), or proceed to step 6.
6. When you have finished installing the software, remove the
FactoryTalk Transaction Manager CD-ROM from the CD-ROM drive. Store it in a safe place.
Distributed FactoryTalk Transaction Manager Installations
You may want to run FactoryTalk Transaction Manager or its services on more than one computer. To run the software in a distributed mode, it must be installed on all computers that are referenced in a configuration. For more information, see Distributed Configurations (page 133) in Chapter 9,Exploring Advanced Topics.
38
2 Installing FactoryTalk Transaction Manager
39
Chapter 3
Exploring the FactoryTalk Transaction Manager User Interface
Starting FactoryTalk Transaction Manager
To start FactoryTalk Transaction Manager, click Start on the Task bar, then select Programs > Rockwell Software > FactoryTalk Transaction Manager > FactoryTalk Transaction Manager.
41
FactoryTalk Transaction Manager User Guide
Exploring the FactoryTalk Transaction Manager User Interface
When you start FactoryTalk Transaction Manager for the first time (and if it is the first Rockwell Software product run on your computer), you are automatically logged on to FactoryTalk Security using your Windows-linked user account information. The system graphic appears in the right pane (or workspace) of the FactoryTalk Transaction Manager user interface.
For more information on FactoryTalk Security, see Appendix C, Securing FactoryTalk Transaction Manager with FactoryTalk Security (page 159). To view the procedures for configuring and using FactoryTalk Transaction Manager, select Help > Quick Start.
42
Figure 3: FactoryTalk Transaction Manager Functions (3)
3 Exploring the FactoryTalk Transaction Manager User Interface
Item:
Description:
Restore
Restores the window to its former size after minimizing or maximizing it.
Move
Repositions the window on the desktop using the arrow keys on the keyboard.
Size
Resizes the window on the desktop using the arrow keys on the keyboard.
Minimize
Shrinks the window to an icon that is located on the task bar.
Maximize
Enlarges the window to occupy the entire screen.
Close
Exits the software.
The design elements on the main FactoryTalk Transaction Manager user interface include:
Title bar Menu bar Toolbar Configuration tree Workspace Status bar
Title Bar
The title bar shows the FactoryTalk Transaction Manager icon, the name of the configuration or configuration server (depending on what is selected in the configuration tree), the product name, and the Minimize, Maximize, and Close buttons.
Figure 4: FactoryTalk Transaction Manager Title Bar
To view the Control Menu, click the FactoryTalk Transaction Manager icon on the title bar. The following items appear on the control menu.
43
FactoryTalk Transaction Manager User Guide
Menu Bar
You can access many features from the FactoryTalk Transaction Manager menu bar. For a description of the available shortcuts, refer to Section Toolbar (page 45) in this chapter.
Figure 5: FactoryTalk Transaction Manager Menu Bar
The Security menu allows you to log on or log off of FactoryTalk Security, or view your FactoryTalk Security permissions on the current configuration server. For more information on FactoryTalk Security, see Appendix C, Securing FactoryTalk Transaction Manager with FactoryTalk Security (page 159).
The Configuration menu allows you to create a new configuration, set or change properties in a configuration, access the Configuration Checklist, delete, backup, or restore a configuration, or stop or start a configuration.
The Define menu allows you to define a connector, data object, data points, or a transaction. In addition, you can define options for error logging and scheduled events.
The View menu allows you to view information about the currently defined transaction. You can view diagnostic information about the configuration that is currently running. You can also view error log files or the system graphic. This option allows you to switch between large and small icons, obtain a status update, or enable or disable the toolbar or status bar.
The Tools menu allows you to create a configuration report, verify the selected configuration, or use wizards to create data logging, duplicate data points, or duplicate transactions. You can also use this menu to set message and log viewer options.
The Help menu provides assistance with using FactoryTalk Transaction Manager. From the Index of the online help system, simply enter the name of the topic for which you want to search for information. Click the Help
44
3 Exploring the FactoryTalk Transaction Manager User Interface
Icon:
Description:
Creates a new FactoryTalk Transaction Manager configuration.
Displays the About FactoryTalk Transaction Manager dialog box.
Displays the online help for any design element (click this button and place the cursor on any design element).
Starts the configuration or connector currently selected in the Configuration tree. If the edit enabled configuration has pending edits, a message displays prompting the user to ignore the pending edits and start the configuration anyway.
Stops the configuration or connector currently selected in the Configuration tree.
Assembles all data point and transaction pending edits in the edit enabled configuration. For a detailed description of assembling pending edits, refer to the chapter Understanding Online Edits (page 111).
Opens the Pending Edit Alerts dialog box. For a detailed description of pending edit alerts, refer to the chapter Understanding Online Edits (page
111).
graphic on the toolbar, and then place the cursor on any design element on the system graphic for more information. The Help menu also provides specific links for viewing the release notes, a quick start, the online books, an error code resource, support and training,. In addition, you can use this option to obtain FactoryTalk Transaction Manager license and version information.
Toolbar
The toolbar contains shortcuts to several commonly used FactoryTalk Transaction Manager functions. Each button on the toolbar is a graphical representation of a command that is also available from the FactoryTalk Transaction Manager menu bar.
45
FactoryTalk Transaction Manager User Guide
Icon:
Description:
Verifies the selected configuration. You can verify multiple transactions and choose to save the results to a text file.
Displays information about the current transactions in the right pane of the application workspace.
Displays diagnostic information about the configuration that is currently running in the right pane of the application workspace.
Displays error log information in the right pane of the application workspace.
Displays the system graphic in the right pane.
Configuration Tree
The FactoryTalk Transaction Manager user interface is divided into two panes. The left pane is known as the Configuration tree; it is a tree view of the current configurations.
46
3 Exploring the FactoryTalk Transaction Manager User Interface
If you see this icon:
A configuration is...
A connector is...
running properly; all connectors in that configuration are running properly. All transactions start based on the triggering rules that you defined.
running properly.
The top level is the Configuration Server, named for the computer on which it is running. The second level is the configuration name. The third level displays the Transaction Control Manager service (if the configuration uses online edits) or the FactoryTalk Transaction Manager service. The Transaction Control Manager service or the FactoryTalk Transaction Manager service are followed by the control connectors and enterprise connectors defined for the configuration. For a detailed description of the
Transaction Control Manager service’s role in a configuration that uses
online edits, see Chapter 8, Understanding Online Edits (page 111).
Figure 6: FactoryTalk Transaction Manager Configuration Tree
CONFIGURATION AND CONNECTOR STATUS
The traffic lights in the Configuration tree represent the status of FactoryTalk Transaction Manager connectors and configurations, turning from red to green when services are started. See the following table to determine how each icon applies to connectors and configurations.
47
FactoryTalk Transaction Manager User Guide
If you see this icon:
A configuration is...
A connector is...
experiencing one or more connectors that are not functioning properly
n/a (this state does not apply to a connector).
stopped; all of the connectors are not running. Additionally, the Transaction Control Manager service or the FactoryTalk Transaction Manager service is not running.
not running properly.
Icon:
Status:
Description:
Running
The configuration server host computer:
Resides in the FactoryTalk Administration Console. Is working properly (the service is running and FactoryTalk
Transaction Manager can connect to it).
Has been configured in the FactoryTalk Administration
Console so that the current user has permissions (page 162) to communicate with it.
Unknown
The configuration server host computer:
May or may not reside in the FactoryTalk Administration
Console.
Cannot be connected to or queried in FactoryTalk
Transaction Manager.
Cannot provide any information to FactoryTalk Transaction
CONFIGURATION SERVER STATUS
The icons that are displayed in the Configuration tree represent the status of the configuration servers. The following table shows the status icons, state, and a description of that state:
48
3 Exploring the FactoryTalk Transaction Manager User Interface
Icon:
Status:
Description:
Manager so that the software can determine why it is not working properly.
No privilege
The configuration server host computer:
Resides in the FactoryTalk Administration Console. Is working properly. User does not have permissions (page 162) to
communicate with the Configuration Server.
Workspace
The right pane of the FactoryTalk Transaction Manager user interface is the workspace; it displays the Transaction Definition View, the Transaction Monitor View, the Error Log Files View, or the FactoryTalk Transaction Manager system graphic, depending on the view option that you have selected. The Error Log File View is displayed below.
Figure 7: Error Log File View
TRANSACTION STATES
Transactions display in the Transaction Definition view. The states are described below:
Current - The current definition of a transaction (with or without
pending edits).
Edit Pending - Changes that are made to the current transaction
definition, but not assembled.
Add Pending - A new transaction (created online), but not assembled.
49
FactoryTalk Transaction Manager User Guide
The following is an example Transaction Definition View.
Figure 8: Transaction Definition View
Status Bar
The status bar at the bottom of the main FactoryTalk Transaction Manager user interface displays the following information:
Rows Selected (includes pending edits). The number of rows selected
before you saved, assembled or canceled pending edits.
Transactions Selected. The number of transactions selected. Passed. The number of successful operations. Disregarded. FactoryTalk Transaction Manager does not allow the
Failed. Operations that did not take place because of an internal error.
Configuration Checklist
A FactoryTalk Transaction Manager configuration consists of a set of transactions that use control and enterprise connector elements required to perform the transactions. You may create many configurations, but the Transaction Control Manager service or the FactoryTalk Transaction Manager service can run only one configuration at a time. Therefore, all the
50
action to be performed.
3 Exploring the FactoryTalk Transaction Manager User Interface
transactions required to implement an application must be contained in a single configuration.
Create a configuration using the Configuration Checklist, which lists the required steps and displays the progress of your configuration. A green check mark indicates a completed step, while a yellow check mark indicates a partially completed step.
51
FactoryTalk Transaction Manager User Guide
Select Configuration > Checklist or Configuration > New to begin using the Configuration Checklist. The following figure shows the Configuration Checklist:
This chapter is not intended to provide step-by-step directions for creating a configuration, but to provide an overview to help you understand configurations. The following sequence mimics the Configuration
52
Figure 9: FactoryTalk Transaction Manager Configuration Checklist
3 Exploring the FactoryTalk Transaction Manager User Interface
Checklist. It is recommended, at least initially, that you follow this sequence when creating configurations:
Define and name a new configuration. Define control and enterprise connectors. Define the data points that will be used in transactions. Define the data objects that will be used in transactions. Define transactions, which transfer data between data points, in the
control system and data objects.
Verify transactions.
The following sections provide additional details for each task in the sequence. For more information, see the Quick Start in the FactoryTalk Transaction Manager online help (select Help > Quick Start).
Step 1: Defining and Naming a New Configuration
To create a new configuration, enter a configuration name, and then click Step 1 to open the FactoryTalk Transaction Manager Configuration dialog box. Enter a name for the configuration and the directory path in which the configuration (*.dat) files will reside. This directory becomes the default location of the other files used in the configuration. Select the control and enterprise connector service types to use in the configuration. To create a distributed configuration, see Chapter 9, Exploring Advanced Topics (page
131).
Each configuration must have an unique name and directory path.
To create a configuration that uses online edits, you can select only the FactoryTalk Live Data control connector. You may select any enterprise connector. Make sure to select the Enable Online Edits check box. For more information, see Chapter 8, Understanding Online Edits (page 111).
53
FactoryTalk Transaction Manager User Guide
Step 2: Defining Connectors
To begin defining a connector, select the service to define from the drop-down list of connector services. Click Step 2 to open the Connector Definition dialog box. This dialog box allows you to configure communication and security settings for the Microsoft Windows 2003/XP/Vista/2008 R2 services.
You can create multiple control or enterprise connectors in a configuration, but you can create only one connector of each type on each host computer. A FactoryTalk Transaction Manager Professional activation is required to distribute connectors.
Only one instance of the Transaction Control Manager service or the FactoryTalk
Transaction Manager service can be used by a configuration.
The connector service uses the Microsoft Windows user name and password assigned to the connector when it runs on the host computer.
In general, control connectors must run on the computer that contains the data server to which they will communicate. This is not the case with some OPC servers that support DCOM or OPC used in a FactoryTalk architecture.
After this step is complete (and you exit the Configuration Checklist), the configuration displays in the Configuration tree. Click the plus sign next to a configuration to expand it. Each connector service that is used by the configuration displays. Individual control and enterprise connectors display under the connector services. The Configuration tree displays all configurations recognized by each registered configuration server.
Step 3: Defining Data Points
From the Configuration Checklist, define the data points in the control system that you wish to use in a configuration. For more information about data points, see Chapter 5, Defining Data Points (page 73). If you have multiple control connectors, you must configure them individually. Select the connector for which you wish to add or edit points, then click Step 3. In a configuration that uses online edits, you can perform Step 3 on the
54
3 Exploring the FactoryTalk Transaction Manager User Interface
Configuration Checklist while the configuration is running. For information about distributing control connectors and remote browsing capabilities, see Chapter 9, Exploring Advanced Topics (page 131).
Step 4: Defining Data Objects
To begin defining a data object, select the enterprise connector to define from the dropdown list. Click Step 4 to configure connections to the database and create a data object. For more information about enterprise connectors, see Chapter 6, Defining Data Objects (page 87).
From the Data Object Definition dialog box, select the table, view, or connection (or appropriate enterprise object for your type of connector) to configure the data object to use. Depending on the connector type, different properties display, such as whether to insert or update the rows in the table you select. For information about distributing enterprise connectors, see Chapter 9, Exploring Advanced Topics (page 131).
Step 5: Defining Transactions
You can create transactions that move data between a control system and an enterprise application or database. Click Step 5 to open the Transaction Definition dialog box. Provide a name for the transaction, and then select the data object to which you want to bind (the process of mapping a column in a database table to a data point) the data points. The data object’s columns or parameters appear in the list of available bindings near the bottom of the dialog box.
Each transaction name must be unique.
You can bind individual data points or an expression to a column/field/parameter in a data object. Double-click a non-bound entry in the Data Object Column to open the Filter and Select Data Points dialog box or right-click and select Filter and Select Data Points from the menu. You can limit the list of data points by a connector and/or device. Bind the data point to the data object by dragging it from the Filter and Select Data Points
55
FactoryTalk Transaction Manager User Guide
dialog box and dropping it onto the appropriate Data Object Column in the Transaction Definition dialog box.
From the Transaction Definition dialog box, open the Trigger and Storage Parameters dialog box to specify the events that will initiate your transactions and timeout values. For more detailed information about transactions, see Chapter 7, Creating Transactions (page 95).
In a configuration that uses online edits, you can edit existing or create new transactions while the configuration is running. When you have pending edits, you can view the differences between the current and pending definitions on the Transaction Differences dialog box. If the pending edits that you created have caused pending edit alerts, you can view them on the Pending Edit Alerts dialog box. For a detailed description of the information displayed on these dialog boxes, see Chapter 8, Understanding Online Edits (page 111).
Step 6: Verifying Transactions
To verify multiple completed transactions, click Verify on the Configuration Checklist. You can also verify transactions individually from the Transaction Definition dialog box, which provides informational messages or warnings about the configuration.
Miscellaneous
Viewing Configuration Properties
To open the Configuration Properties dialog box, select Configuration > Properties or right-click a configuration name in the Configuration tree and
select Configuration Properties from the menu. You can access all configuration level settings, such as enterprise connector options and error logging levels, from individual tabs on this dialog box.
56
3 Exploring the FactoryTalk Transaction Manager User Interface
Starting Configurations
If you are starting a FactoryTalk Transaction Manager configuration, you must be
logged into a Microsoft Windows 2003/XP/Vista/2008 R2 account that has administrative privileges for all computers that are part of the FactoryTalk Transaction Manager system. This is required by the Microsoft Windows 2003/XP/Vista/2008 R2 Service Control Manager to be able to start and stop FactoryTalk Transaction Manager services.
Only the Transaction Control Manager service or the FactoryTalk Transaction Manager service can run at one time. Further, the Transaction Control Manager service or the FactoryTalk Transaction Manager service can run only one FactoryTalk Transaction Manager configuration at a time; the configuration runs until it is stopped. You can start a FactoryTalk Transaction Manager configuration by using one of the following methods:
Select the configuration name in the Configuration tree, right-click, and
select Start Configuration from the menu.
Select the configuration name in the Configuration tree, then click Start
on the toolbar.
If you are using a distributed configuration, make sure all remote computers that are
used in the configuration are running and available before you start the configuration. If the software encounters a remote computer that is not running or available, it will proceed to the next running and available computer. If your configuration includes RSView32 or FactoryTalk View SE, ensure that these products are running on the appropriate host computer and the project that is used by the configuration is loaded and running before you start the configuration.
Once you have started a configuration manually, you can set the configuration to autostart by performing the following steps:
7. Select Start > Settings > Control Panel > Administrative Tools >
Services. The Services dialog box appears.
8. Navigate through the Services list, select either the FactoryTalk
Transaction Manager Transaction and Control Manager service or the FactoryTalk Transaction Manager service (depending on your
57
FactoryTalk Transaction Manager User Guide
configuration), and double-click the mouse. The Properties dialog box appears.
9. In the Start-up field, select Automatic.
10. Click OK.
11. Repeat steps 2 through 4 for each connector service in your
configuration.
The Transaction Control Manager service and the FactoryTalk Transaction Manager
service cannot be set to Auto-start at the same time.
Stopping Configurations
You can stop a configuration by using one of the following methods:
Select the configuration name in the Configuration tree, right-click and
select Stop Configuration from the menu.
Select the configuration name in the Configuration tree, then click Stop
on the toolbar.
You cannot stop the configuration by exiting FactoryTalk Transaction Manager or logging off of the computer. For more information, see Chapter 9, Exploring Advanced Topics (page 131).
Starting and Stopping Connectors
To start an individual connector when a configuration is running, select the connector in the Configuration tree, right-click and select Start Connector Service from the menu. To stop an individual connector when a configuration is running, select the connector in the Configuration tree, right-click and select Stop Connector Service from the menu.
Monitoring Configurations
You can monitor transactions as they are executed while a configuration runs. Click Transaction Monitor on the toolbar to view a summary of cumulative activity organized by transaction.
58
3 Exploring the FactoryTalk Transaction Manager User Interface
Click any column header, except Total, to sort the list. The list refreshes every 30
seconds, or when you click the column headers.
The columns in the Transaction Monitor have the following meaning:
Total - The total number of transactions that have been triggered. Passed - The number of transactions that have completed without
errors.
Failed - The number of transactions that have failed. % Passed - Passed/Total * 100. Cached - The number of transactions currently in Transaction Cache
files.
Database Passed - The number of transactions that have been
successfully executed by the database.
Database Failed - The number of transactions that have experienced a
database error.
Pending - The number of transactions that have been started, but are not
completed or currently running.
59
FactoryTalk Transaction Manager User Guide
Understanding FactoryTalk Transaction Manager External Files
FactoryTalk Transaction Manager generates several types of external files while creating and running a configuration; you can set the location of these files from the FactoryTalk Transaction Manager user interface. The easiest way to determine where the configuration files are stored is to view the Configuration Properties dialog box. Select Configuration > Properties or select a configuration name in the Configuration tree, right-click and select Configuration Properties from the menu.
Configuration files (*.dat) - FactoryTalk Transaction Manager stores
all information associated with a single configuration in a set of *.dat files. The configuration files have fixed file names, so each configuration generates a set of identically named files. For this reason, configuration files must be stored in a unique directory.
Cached Transaction files (*.rsl) - FactoryTalk Transaction Manager
transactions can update their target database directly from cached transaction files. These files contain completed transactions that are applied to the database as a group. The use of cached transaction files is set individually for each transaction, but the files are associated with an enterprise connector. To edit cached transaction file properties, open the Configuration Properties dialog box, select the Cache tab and double-click a connector to open the Enterprise Connector Options dialog box.
Log files (*.log) - Each of the FactoryTalk Transaction Manager
60
services generates log files when the configuration is running. The level of error messages contained in these files is set at the configuration level. You can specify error log file parameters from the FactoryTalk Transaction Manager user interface by selecting Define > Error
Logging. All log files can be viewed by selecting View > Error Log Files.
3 Exploring the FactoryTalk Transaction Manager User Interface
SQL files (*.sql) - FactoryTalk Transaction Manager generates these
SQL files as a result of a failed connection or database error. To include this data in the database, use a database maintenance utility.
RSQ files (*.rsq) - FactoryTalk Transaction Manager uses these
compressed files to backup configurations. An .rsq file is a result of a backup. You can restore an .rsq file by using the restore command.
RPB files (*.rpb) - These files are generated when you use the
Time-series Data Compression enterprise connector. FactoryTalk Historian Classic uses these files to save uncompressed, partial block information.
RFB files (*.rfb) - These files are generated when you use the
Time-series Data Compression enterprise connector. FactoryTalk Historian Classic uses these files to save compressed, full block information prior to storage in the database.
Using the Service Console
The Service Console is a Microsoft Management Console (MMC) snap-in that provides administrative functions for the Information Services Manager and other RSBizWare servers. The Service Console is capable of accessing and controlling RSBizWare servers that are running on machines across the network or on the local machine. It supports system user administration, server administration, and any custom functionality specific to the RSBizWare component that is being managed.
FactoryTalk Transaction Manager can be managed via the Service Console when used as a part of a FactoryTalk Historian Classic or FactoryTalk Metrics applications. For more information, refer to the Administration Guide.
The Service Console is not installed with FactoryTalk Transaction Manager, but it is
installed with the RSBizWare products.
61
Chapter 4
Understanding FactoryTalk Transaction Manager Services
Introducing FactoryTalk Transaction Manager Services
FactoryTalk Transaction Manager is designed to run as several services. During design time, the FactoryTalk Transaction Manager user interface sends information to the Configuration Server which writes to the configuration files. At run time, the other FactoryTalk Security services run in the background of the computer(s) involved in the configuration, similar to other Microsoft Windows 2003/XP/Vista/2008 R2 services. For more information about configuring services, refer to Chapter 3,Exploring the FactoryTalk Transaction Manager User Interface (page 41).
This chapter describes the types of control and enterprise connectors you must define during design time.
Control Connectors
The control connector services manage the interaction between the industrial control system and the FactoryTalk Transaction Manager service in the FactoryTalk Transaction Manager. These control connector services (FactoryTalk Live Data, DDE, RSLinx Classic OPC, RSView32, or Generic OPC) communicate with the data server using the appropriate protocol.
Rockwell Software recommends using the FactoryTalk Live Data control connector for most user applications. If your application requires the use of any other control connector, please review and consider the following sections before selecting an alternate control connector.
63
FactoryTalk Transaction Manager User Guide
FactoryTalk Live Data
The FactoryTalk Live Data control connector service is used to interface with data items provided by the FactoryTalk Live Data servers. The FactoryTalk Directory provides a common name space for factory automation products from Rockwell Software, allowing all applications to use the same naming convention and giving you the capability to browse available data points. FactoryTalk Live Data provides services that allow the efficient transfer of high-speed manufacturing data between processes in the system.
In a configuration that uses online edits, the Transaction Control Manager service performs the duties of the FactoryTalk Transaction Manager service and inherits the functionality of the FactoryTalk Live Data control connector. For more information about performing online edits, see Chapter 8, Understanding Online Edits (page 111).
DDE
The DDE control connector service can be used for legacy connections to DDE servers or to provide functionality that is not supported by the OPC or FactoryTalk Live Data specification.
The DDE server must be running on the same computer as the associated control
connector. FactoryTalk Transaction Manager does not support NetDDE.
The FactoryTalk Transaction Manager user interface cannot query remote DDE servers to retrieve configured DDE topic information. When the DDE control connector is located on a remote FactoryTalk Transaction Manager computer, manually enter DDE topic names on the FactoryTalk Transaction Manager DDE Data Point Configuration dialog box. Perform the following steps.
1. Define a configuration on the local computer that contains the
64
FactoryTalk Transaction Manager service.
4 Understanding FactoryTalk Transaction Manager Services
2. Run the FactoryTalk Transaction Manager user interface on the remote
computer and select a configuration that is using existing configuration files on the local computer.
3. Use the FactoryTalk Transaction Manager user interface on the remote
computer to configure the DDE topics and items.
When you have finished, exit the FactoryTalk Transaction Manager user interface on the remote computer and continue creating configurations on the local computer.
RSLinx Classic OPC
The RSLinx Classic OPC control connector service can be used for data items that reside in Allen-Bradley Programmable Logic Controllers (PLC), with the exception of the Logix family of controllers. The RSLinx Classic OPC control connector must be on the same computer on which RSLinx Classic is running.
OPC recognizes when a controller sends a message to a client with the same value,
but does not forward that message to the client. If you are using MSG instructions to trigger transactions, then you must ensure that the value is different in each MSG instruction. Additionally, you can use the DDE control connector to forward all values to your application.
RSView32
The RSView32 control connector service can be used to interface with tags provided by RSView32 applications. The FactoryTalk Transaction Manager RSView32 control connector must be on the same computer on which the RSView32 project is running. The FactoryTalk Transaction Manager user interface can browse for RSView32 project tags on remote computers, but when the transactions are running, the RSView32 control connector must be on the same computer as the RSView project.
The RSView32 control connector can be used to collect data from either memory tags or device tags. Device tags are updated every 300 milliseconds.
65
FactoryTalk Transaction Manager User Guide
If you need updated tags at a faster rate, use the FactoryTalk Live Data, RSLinx
Classic OPC, or Generic OPC control connectors to retrieve data from the devices directly. To interface with tags provided by FactoryTalk View SE, use the FactoryTalk Live Data control connector.
Generic OPC
The Generic OPC control connector service can be used to interface with items provided by any OPC server that conforms to the OPC custom interface specifications. The Generic OPC connector is an OPC client that supports OnDataChange subscription callback using either:
IAdviseSink– for OPC 1.0A-compliant servers. IConnectionPoints– for OPC 2.0-compliant servers.
The Generic OPC connector service tries to establish the IAdviseSink method, and then tries the IConnectionPoints method. Data writes to OPC items are performed using Asynchronous Writes. FactoryTalk Transaction Manager also supports Asynchronous Reads from Device as an option for OPC servers that support this method.
Enterprise Database Connectors
The enterprise database connector services (Microsoft OLE DB, ODBC, or Oracle OCI) manage FactoryTalk Transaction Manager's interaction between a database and the Transaction Control Manager service or FactoryTalk Transaction Manager service. Each enterprise database connector service can manage connections with multiple databases on multiple computers.
For transactions that update existing records, the data values that are used to look up a record in the database may update zero or more records in the database. If one or more records is selected, the transaction updates all of the selected records. If no records area selected, the transaction converts from Update to Insert mode, and the transaction is inserted into the database. This is not an error condition.
66
4 Understanding FactoryTalk Transaction Manager Services
ODBC
The ODBC enterprise database connector allows you to interface with virtually any ODBC-compliant database including Microsoft Access, Microsoft SQL Server 2000 or later, IBM DB2, and Sybase.
The ODBC enterprise connector requires a system data source name (DSN) to connect to an ODBC data source. When you create an ODBC database connection, you must enter a valid system DSN for the ODBC server. A system DSN is available to all users and Microsoft Windows 2003/XP/Vista/2008 R2 services.
Oracle OCI
The Oracle Call Interface (OCI) enterprise database connector allows you to connect to database objects from an Oracle server. If you are using Oracle OCI in FactoryTalk Transaction Manager, you need to install SQL*NET
2.3x or later, Net8, or Oracle Net services (all from Oracle) locally. You can then connect to an Oracle database versions 9i through 11g.
Microsoft OLE DB
The Microsoft OLE DB enterprise database connector should be used only for interfacing with Microsoft SQL Server 2008 R2, Microsoft SQL Server 2005 Standard (Service Pack 3) or Microsoft SQL Server 2000 (Service Pack 4). The Microsoft OLE DB connector allows you to browse a Microsoft SQL Server 2008 R2, 2005 or 2000 database without a DSN.
Enterprise Application Connectors
The enterprise application connector services (Microsoft COM+, Time-series Data Compression, or FactoryTalk Metrics) manage FactoryTalk Transaction Manager's interaction with the enterprise application connectors (Microsoft COM+, Time-series Data Compression, or FactoryTalk Metrics), and the Transaction Control Manager service or FactoryTalk Transaction Manager service.
67
FactoryTalk Transaction Manager User Guide
Microsoft COM+
The Microsoft COM+ enterprise application connector allows you to interface with Microsoft COM+ application components; these components must be integrated into a Microsoft Windows 2003/XP/Vista/2008 R2 COM+ environment.
Time-series Data Compression FactoryTalk Metrics
The FactoryTalk Metrics enterprise application connector is only used with FactoryTalk Metrics and stores data into the Service Console. The FactoryTalk Metrics enterprise application connector can only be configured through the Service Console. For more information, see the Administration Guide.
Enterprise Connector Options
FactoryTalk Transaction Manager allows you to set additional options for enterprise connectors on the Enterprise Connector Options dialog. From the Configuration Checklist, click Step 2. On the Connector Definition dialog box, click Options to display the Enterprise Connector Options dialog box.
Another way to access this dialog box is to select a configuration from the Configuration tree, right-click and select Configuration Properties from the menu. On the Configuration Properties dialog box, select the Connectors tab. Double-click the appropriate enterprise connector; on the Connector Definition dialog box, click Options to display the Enterprise Connector Options dialog box.
You can set the following options:
Number of real-time threads: Specifies the number of real-time
68
threads used by this connector. Increasing this value permits multiple real-time transactions to execute simultaneously in the enterprise connection with each thread having its own database connection. Do not increase this value unless the real-time transactions are not
4 Understanding FactoryTalk Transaction Manager Services
executing to the database fast enough. To make a transaction use real-time threads, select Use Real Time Thread on the Transaction Definition dialog box.
SQL buffer size: Specifies the size of the SQL buffer in kilobytes. The
SQL buffer specifies the number of bytes necessary to build the command that will be executed. The default value only needs to be modified if database errors occur and the SQL file shows only a partial command.
Maximum transactions per file: Indicates that a file is sent to the
enterprise connector for processing when Maximum Transactions Per File or Maximum Time Between Files value is reached, whichever comes first. Setting this value to a field greater than 1 allows the enterprise connector to use array inserts on databases that support them. Array inserts increase database performance by allowing multiple inserts/updates in a single database command.
Maximum time between files: Indicates that a file is sent to the
enterprise connector for processing when the Maximum Time Between Files or Maximum Transactions Per File is reached, whichever comes first.
FactoryTalk Transaction Manager Service
The FactoryTalk Transaction Manager service performs the following tasks:
Controls the execution of all FactoryTalk Transaction Manager
transactions.
Collects and sends data to and from all of the connector services. Controls the scheduling and execution of the transactions. Controls data manipulation, if required.
69
FactoryTalk Transaction Manager User Guide
Transaction Control Manager Service
The Transaction Control Manager is a service that controls and executes FactoryTalk Transaction Manager transactions contained in a configuration, but with the additional functionality of the FactoryTalk Live Data control connector embedded in it. In an edit enabled configuration, the Transaction Control Manager replaces the separate FactoryTalk Transaction Manager and control connector services.
Configuration Server
The Configuration Server is a Microsoft Windows 2003/XP/Vista/2008 R2 service that runs continuously to provide a single interface to the configuration (.dat) files that make up the FactoryTalk Transaction Manager configuration. The Configuration Server simplifies access to configuration files by filtering all changes to the files and interfacing with other FactoryTalk Transaction Manager services. A collection of all changes that affect a configuration are recorded in an audit trail (via either FactoryTalk Diagnostics or the Configuration Server *.log file).
Since the service is always running, functions such as configuration diagnostics and remote file browsing are easier. One benefit of the Configuration Server is consolidated file access. The Configuration Server is the focal point for all interaction with, and manipulation of, the configuration files.
70
4 Understanding FactoryTalk Transaction Manager Services
71
Chapter 5
Defining Data Points
Introducing Data Points
Data points are specific data locations or registers in the control system that are made available to FactoryTalk Transaction Manager transactions. The software can read from, and write to, data points through the embedded FactoryTalk Live Data control connector (Transaction Control Manager service) or a control connector (FactoryTalk Transaction Manager service). The control connector then communicates with a data server (based on OPC, DDE, or FactoryTalk) that communicates with the control system devices. Once defined, a data point can be used by multiple transactions.
Using FactoryTalk Transaction Manager, you can assign the following attributes to a data point:
Item string or address. Data point name. Data type. Number of elements. Mode and Scan rate. Retrieval timeout. Substitution options.
These attributes are assigned by defining data points on the Data Point Definition dialog boxes (click Step 3 on the Configuration Checklist). These dialog boxes allow you to browse for data locations serviced by a data
73
FactoryTalk Transaction Manager User Guide
server, add data points to your configuration, edit existing data points, and delete unwanted data points. The following figure shows an example FactoryTalk Data Point dialog box.
Notice the following fields on the status bar at the bottom of the FactoryTalk Data Point dialog box:
Configuration status- The status of the current configuration. Rows- The number of rows selected before you saved, assembled, or
74
Figure 10: FactoryTalk Data Point dialog box
canceled pending edits.
5 Defining Data Points
Points- The number of data points that specific row represents. For
example, two rows may be two different data points or they may be the current definition and the pending definition of the same data point.
Passed- The number of successful operations. Disregarded- The number of rows that FactoryTalk Transaction
Manager does not allow the action to be performed. For example, selecting a row that does not have a pending edit and clicking Cancel Edits.
Failed- Operations that did not take place because of an internal error.
For more information on online edits, see Chapter 8, Understanding Online Edits (page 111).
FactoryTalk Live Data Data Points
FactoryTalk Transaction Manager uses FactoryTalk Live Data to communicate with the FactoryTalk Live Data servers. With access to the FactoryTalk Directory, the FactoryTalk Transaction Manager service can browse available data items directly. This is the only method that can be used to transfer data to and from FactoryTalk View SE or RSLinx Enterprise, and is the recommended method to transfer data to and from RSLinx Classic or RSView32.
In a configuration that uses online edits, you can use only FactoryTalk data points. For further details about using FactoryTalk data points in a configuration that uses online edits, see Chapter 8, Understanding Online Edits (page 111).
Rockwell Software recommends using the FactoryTalk Live Data control connector for most user applications. The majority of this chapter will focus on information related to FactoryTalk Live Data data points. For information on all of the other data point types, see OPC Data Points (page
82) in this chapter.
75
FactoryTalk Transaction Manager User Guide
Selecting a Collection Mode
For FactoryTalk data points, you can select the collection mode type. This section provides more detail about the following types of data point collection for FactoryTalk control connectors:
Scheduled Device Scheduled Unscheduled
SCHEDULED: MAINTAIN THE CURRENT SUBSCRIBED VALUE
During scheduled collection mode, each data point is continuously on scan at a configurable rate. The data server sends any change in value or quality to the control connector. The control connector retains the current value in a buffer and provides it to the FactoryTalk Transaction Manager service when it is requested. The Transaction Control Manager service also buffers this data internally and uses it as needed.
The data server reads the value of the data point at the Subscription Scan Rate that is set on the FactoryTalk Data Point dialog box; if a new value is found, it is sent to the data client. If the value has not changed in the data server, no data is transferred. Thus network bandwidth is not used to transmit the same value between the data server and the control connector.
Typically, this type of collection mode is used to support a transaction that logs data constantly and rapidly (for example, logging a data point every second while an assembly line is running).
DEVICE SCHEDULED: REQUEST THE CURRENT VALUE FROM THE DEVICE
During device scheduled collection mode, each data point is not on scan and data is not buffered in the control connector or data server. The data server reads directly from the device. Each value is read from the controller only when the Transaction Control Manager service or FactoryTalk Transaction Manager service requests it from the control connector. The value is then retrieved from the controller and passed to the control connector.
76
5 Defining Data Points
Typically, this mode of collection is used to support a transaction that logs data infrequently.
UNSCHEDULED: SEND SUBSCRIBED VALUE WHENEVER IT CHANGES
This collection mode is driven by the data server and each data point is continuously on scan at the prescribed rate. When the server detects a change to a data point value or quality, it sends the value to the control connector, which passes it to the Transaction Control Manager service or the FactoryTalk Transaction Manager service. This collection mode is event-based, not time-based.
Keep in mind that any unsolicited message sent by the controller that does not
include a change in value or quality will never be sent to FactoryTalk Transaction Manager.
The Subscription Scan Rate sets the limit on how fast new data can arrive. For example, if the Subscription Scan Rate is 150 milliseconds, the data server cannot send changes faster. If the underlying data value is changing faster, the control connector only sees the current value every 150 milliseconds.
Typically, this mode of collection is used for a transaction trigger that executes at a high or low transition, or exceeds a valid range.
Consecutive Data Point and Data Block Support
You can quickly add multiple consecutive data points in your application. For example, if you want to add multiple consecutive data points N7:0 through N7:6, select them from the Contents of window on the FactoryTalk Transaction Manager FactoryTalk Data Point dialog box, and then click Add Selected Tags to add them to the FactoryTalk data point grid.
You can create a single data point with blocked data, such as a data point that has multiple consecutive elements. For example, if you want to create a data point with 10 elements, type N7:0,L10. This feature applies to pure data table files and not to structures (for example, T3:0.ACC,L8 is not supported). The maximum size of a data block passed to the connector from
77
FactoryTalk Transaction Manager User Guide
a data point is 512 bytes for transactions without online edits, and 4096 bytes for transactions with online edits. If you defined a contiguous set of ASCII registers from a PLC processor, this data point contains a complete string (when used in a transaction). On the other hand, if you defined multiple consecutive elements with numeric data types in the contiguous registers of the PLC processor, you have an array. You can use the Parse() expression to extract each element from the block data.
This feature also applies to the RSLinx Classic OPC, Generic OPC, and DDE control
connectors.
Selecting Timeout Properties
Keep the following sections in mind when selecting timeout properties.
DATA VALID
Regardless of the trigger mechanism, once a transaction is started, the Transaction Control Manager service or FactoryTalk Transaction Manager service checks each required data point to determine if the value in its local cache is still valid.
A data point value is not valid when either the data valid time has passed or the data valid time is set to zero. The following calculation demonstrates the requirements for validity.
Data is valid = Time Received + Data Valid value < Current Time
Once the data point value is no longer valid, the Transaction Control Manager service or FactoryTalk Transaction Manager service requests the data point from a data server and starts a timer for the retrieval of that data point. If the data point is not returned by the time specified in the data retrieval parameter, the rules of substitution are applied.
When a data point is unscheduled, it is never requested and the transaction fails if the data valid time has expired. Unscheduled data points do not have substitution values. If a data point will be used as a transaction trigger and in other transactions, set the data valid parameter to a value that is large enough
78
5 Defining Data Points
so that the value will remain fresh. Or create another data point using the same address and make it a scheduled data point so that the Transaction Control Manager service or FactoryTalk Transaction Manager service can then request it as needed.
The unscheduled trigger is considered to be fresh when it starts a transaction.
If the Transaction Control Manager service or FactoryTalk Transaction Manager service starts a transaction and determines it has already requested a data point but not yet received a reply, it will not request the data point again. Rather, it uses the same value for both transactions when the value is received.
DATA RETRIEVAL TIMEOUT
The data retrieval timeout is measured from the start of the transaction until the data point arrives. If there is any latency in the communications between any of the following, the data point timeout may be affected:
Transaction Control Manager service and the data server. FactoryTalk Transaction Manager service and the control connector,
and the control connector and the data server.
An example of this type of latency is using a device-scheduled data point in FactoryTalk. In this case, the Transaction Control Manager service or FactoryTalk Transaction Manager service requests the data point from the control connector. The control connector then sends notification to the FactoryTalk Live Data server. The FactoryTalk Live Data server sends a read request to the controller, which in turn returns the data value. The FactoryTalk Live Data server sends the value to the control connector, which sends it to the Transaction Control Manager service or FactoryTalk Transaction Manager service. If the data point is not returned by the time specified in the data retrieval parameter, the rules of substitution are applied.
79
FactoryTalk Transaction Manager User Guide
Selecting a Substitution Option
All data points must have valid values for a transaction to complete successfully. If a data point is not retrieved and ―times out,‖ the Transaction Control Manager service or FactoryTalk Transaction Manager service uses a substitution value. Unscheduled data points do not have substitution policies. If unscheduled data points are invalid, the transaction will fail.
From the Data Point Definition dialog box, select one of the listed data points, right-click the mouse, and select Edit Selected Collection Parameters. Choose one of the following substitution options for scheduled data points:
No Substitution- Specifies that the transaction fails if valid data is not
available for this data point. This occurs when the Transaction Control Manager service or FactoryTalk Transaction Manager service times out waiting for data or when you have bad quality data.
Substitute Previous Value- Instructs the FactoryTalk Transaction
Manager service to use the last good value for this data point.
Substitute Value- Allows you to specify the substitution value to use.
A substitution value of Null (default) causes the enterprise database connector to leave the value for that column empty. A data point that has a Null substitution policy causes a transaction to fail if the data point is used in an expression. A Null value is not a null string or a zero; it is a value that does not exist and, therefore, the expression evaluator cannot use it to calculate a result.
Preventing Stale and Mismatched Data
Stale data is data that no longer matches the value in the control system. Mismatched data refers to a set of data in which individual data values from different times were collected and are not synchronized. Several strategies exist to eliminate stale and mismatched data depending on the type of transaction. For scheduled transactions, data may be read while values are changing. For most applications, this should not be a concern (except in the
80
5 Defining Data Points
case of high-speed data changes). If the data is changing at a high rate, then switch the transactions to unscheduled.
Unscheduled transactions offer better protection against stale and mismatched data via the use of ladder logic. The controller dictates when the data is read and it can lock values into its registers prior to triggering the transaction. This helps prevent stale data from being read as long as the data valid time is set to zero for a non-trigger data point.
The best way to prevent stale or mismatched data is to use unscheduled data point blocks. All data is handled as a single unit, managed by the controller, and parsed into separate units using the Parse function from the Transaction Definition dialog box (double-click a transaction in the right pane of the FactoryTalk Transaction Manager workspace). This method may also reduce traffic on the controller network because the data is not scanned at a constant rate.
Specifying Quality
For the FactoryTalk Live Data connectors, choose one of the bad quality options if you want the Transaction Control Manager service or FactoryTalk Transaction Manager service to use bad quality values. Otherwise, select Use Substitution Option for Bad Quality on the Edit Collection Parameters dialog box. If you do not select a bad quality value, the Transaction Control Manager service or FactoryTalk Transaction Manager service uses one of the substitution policies listed earlier in this chapter when it receives a bad quality value for this data point.
If you choose to allow bad quality values, then use the QualityOf() expression from the Expression Editor dialog box to bind the quality value to a column in your database. In addition, the bad quality status is saved to
the Transaction Control Manager service log file or the control connector’s
log file (when using the FactoryTalk Transaction Manager service) at an error level. The QualityOf() expression provides the following quality values:
81
FactoryTalk Transaction Manager User Guide
Server Returns:
QualityOf() Returns:
Bad (0)
1
Uncertain (1)
2
N/A (2)
3
Good (3)
0
This function only applies to FactoryTalk Live Data and OPC data servers. If you are
using a DDE data server, a Good value is always returned.
OPC Data Points
OPC data points are used by the RSLinx Classic OPC, Generic OPC, and RSView32 connectors, but can also be used by FactoryTalk Live Data connectors.
―The OPC Specification is a non-proprietary technical specification that
defines a set of standard interfaces based upon Microsoft’s OLE/COM
technology. The application of the OPC standard interface makes possible interoperability between automation/control applications, field systems/devices and business/office applications.‖ For further information, visit the OPC Foundation’s web site at www.opcfoundation.org.
RSLinx Classic OPC Data Points
RSLinx Classic must run as a service (not as an application) on the computer that is running the RSLinx Classic OPC control connector. When FactoryTalk Transaction Manager uses OPC to communicate with RSLinx Classic, RSLinx Classic 2.52.00 is recommended.
On the RSLinx Classic OPC Data Point dialog box, data points are sorted by the associated connector, server, and host server. If you select a different OPC server, only the data points with that server display; this also applies when you select a new server or connector. You should not create a new RSLinx Classic OPC control connector to collect data from data points in
82
5 Defining Data Points
different OPC servers. Instead, select the new server and add the data points you want to include.
Generic OPC Data Points
The Generic OPC control connector service is an OPC client and communicates with an OPC server according to the OPC standards. The OPC Data Points dialog box allows you to browse a list of the servers supported by the Generic OPC control connector. If the OPC server supports tag browsing, then you can browse for the desired OPC items to create data points. The Generic OPC control connector has full DCOM support, which allows an OPC server to reside on a remote PC if the DCOM security is set correctly.
RSView32 Data Points
RSView32 6.10.16 or higher supports transmitting data via OPC. In RSView32 6.10.16 through 6.3x.xx, an OPC browse was not enabled. Therefore, if you are using those versions of RSView32, you must use the FactoryTalk Transaction Manager RSView32 connector to provide the browsing capability. If you are using RSView32 6.40.00 or later, you can use the FactoryTalk Live Data connector (recommended), RSView32 connector, or the Generic OPC connector.
To connect to data points from a RSView32 connector when the project is not on the FactoryTalk Transaction Manager user interface computer, RSView32 needs to be installed locally to provide the correct registry keys to allow remote browsing. (The same is true if using RSView32 6.40.00 or later and using the OPC connector). In the RSView32 project, use the RTDataServerOn command to turn on the data server and allow FactoryTalk Transaction Manager to read RSView32 tags. To provide write access to RSView32 tags, you must issue the RTDataWriteEnable command.
83
FactoryTalk Transaction Manager User Guide
FactoryTalk View SE users must use the FactoryTalk Live Data connector in
FactoryTalk Transaction Manager. When using RSView32 data points and the FactoryTalk Live Data connector, use the
FTDataServerOn and FTDataWriteEnable commands in the RSView32 project.
DDE Data Points
To create a DDE data point, enter an Item String or import a tag or symbolic name from a tag file. RSLogix 5/500, AI5 project files, or CSV and TSV files are supported.
On the DDE Data Point dialog box, data points are sorted by the associated connector, server, and topic. If you select a different topic, only the data points with that topic are displayed. Likewise, for selecting a new server or connector. If you select a new tag file after data points have been created for a connector/server/topic combination, the tag file is cascaded to all data points for that connector/server/topic. You do not have to create a new DDE control connector to collect data from data points in different topics. Instead, select the new topic and add the data points you want to include.
84
5 Defining Data Points
85
Chapter 6
Defining Data Objects
Introducing Data Objects
A FactoryTalk Transaction Manager data object references a specific object in an enterprise system. For enterprise database connectors, this object can be a database table, view, or stored procedure. For enterprise application connectors, objects can be a FactoryTalk Metrics function or a Microsoft COM+ method. These objects can be used in transactions. A data object may contain many columns or parameters that are used as a unit. Enterprise database objects can also include an action (for example, inserting or updating a record).
Using FactoryTalk Transaction Manager, you can assign the following attributes to a data object:
Data object name. Enterprise system connection. Mode (Insert or Update), if required for tables or views only. Database tables, views, or stored procedures. Database columns or parameters.
87
FactoryTalk Transaction Manager User Guide
The following figure shows an example Data Object Definition dialog box (click Step 4 on the Configuration Checklist).
Figure 11: Data Object Definition dialog box
The target database tables, views, and stored procedures must already exist in the database to be used in data objects. You can also create new stored procedures using the Stored Procedure Wizard (for Microsoft SQL Server
7.0 or later and Oracle only).
If you modify target database tables, views, or stored procedures in the database
after you create a data object within FactoryTalk Transaction Manager, you must click Apply on the Data Object Definition dialog box so that data object recognizes the database modifications.
Enterprise database connectors (ODBC, Oracle OCI, or Microsoft OLE DB) can communicate with databases located on other computers. Multiple data
88
6 Defining Data Objects
objects can reference the same database using a connection to the database system.
Enterprise Database Objects
The following sections describe how to connect to database objects for the enterprise database connectors.
Oracle Call Interface (OCI) Data Objects
The Oracle Call Interface (OCI) allows you to connect to database objects from an Oracle server. The OCI Data Object Definition dialog box allows you to create, modify, or delete FactoryTalk Transaction Manager data objects. When you create a data object, you must enter a valid connection for the Oracle OCI server.
FactoryTalk Transaction Manager can communicate with a local or remote Oracle database via the Oracle network of client tools such as SQL*NET, Net8, or Oracle Net Services.
You can install SQL*NET/Net8 on the same computer that contains the enterprise
connector and communicate with remote Oracle databases running on any operating system supported by Oracle.
Microsoft SQL Server Data Objects
The Microsoft OLE DB connector service allows you to connect to database objects from Microsoft SQL Server 2000, Microsoft SQL Server 2005, and Microsoft SQL Server 2008 R2. You can browse a Microsoft SQL Server 2000, SQL Server 2005, or SQL Server 2008 R2 database without entering a DSN.
ODBC Data Objects
The ODBC connector service allows you to connect to database objects using any ODBC 2.0 or later-compliant server. You must use a valid system
89
FactoryTalk Transaction Manager User Guide
DSN, which is available to all Microsoft Windows 2003/XP/Vista/2008 R2 services.
If the FactoryTalk Transaction Manager user interface resides on a computer that is remote from the computer(s) containing the enterprise connector, the system DSN list comes from the computer where the enterprise connector resides.
Rockwell Software does not recommend using ODBC data objects if you have an
Oracle database. Instead, use Oracle OCI data objects.
Enterprise Application Objects
The following sections describe how to connect to database objects for the enterprise application connectors.
Microsoft COM+ Data Objects
FactoryTalk Transaction Manager communicates to COM+ components through the COM+ enterprise connector service. You can code COM+ components using standard program development tools such as Microsoft Visual Basic or Microsoft Visual C++ (6.00). These COM+ components provide reusable functionality for large enterprise systems. COM+ components reside on local or remote servers running Microsoft Windows 2003/XP/Vista/2008 R2.
Data is passed between the client applications and the remote server components in arguments that can accept many different types of data. FactoryTalk Transaction Manager restricts the arguments that it can utilize to scalar variables (variables that contain a single value). The data types that can be used are String, Integer, Long Integer, Single Float, Double Float, Byte, Date, and Boolean (True/False) data.
You can create a data object by selecting a COM+ method from the COM+ Connection Definition dialog box.
90
6 Defining Data Objects
FactoryTalk Metrics Data Objects
You can only connect to FactoryTalk Metrics data objects from the FactoryTalk Metrics Server. This connector is different from the other connectors because it preprocesses the data before sending it to the database. For more information, see the FactoryTalk Metrics User Guide.
Enterprise Connector Error Handling
This section describes the most likely FactoryTalk Transaction Manager error conditions that can affect the enterprise connector.
Lost connection with enterprise connector- The Transaction Control
Manager service or FactoryTalk Transaction Manager service cannot communicate with the enterprise connector. This may occur because the enterprise connector service has stopped running, or the enterprise connector is located on another computer and communication has been interrupted. The Transaction Control Manager service or FactoryTalk Transaction Manager service will create cache transaction files for transactions that use historical logging (when the Use Cached Transaction Files checkbox is selected on the Transaction Definition dialog box). Therefore, you should store configuration cache files on the same computer as the Transaction Control Manager service or FactoryTalk Transaction Manager service.
Lost connection with enterprise database- The enterprise connector
cannot communicate with the database. This may occur because the database service has stopped running, or the database is located on another computer and communication between the computers has been interrupted. The enterprise database connector stores the data to be reapplied when the database connection returns.
91
FactoryTalk Transaction Manager User Guide
If you select the Use Cached Transaction Files checkbox on the Transaction
Definition dialog box, a *.sql file is generated that you must manually apply to the database and the software generates *.rsl files until the connection is returned. FactoryTalk Transaction Manager does not process any further *.rsl files until the connection is returned.
Lost connection with Microsoft COM+- The enterprise application
connector cannot communicate with Microsoft COM+. This may occur because the FactoryTalk Transaction Manager COM+ service has stopped running, or the Microsoft COM+ component stopped working. Microsoft COM+ may respond by creating a *.txt file, which displays the insert method.
The Transaction Monitor (select View > Transaction Monitor when a configuration is running) displays diagnostic information about the currently running configuration.
Figure 12: Transaction Monitor
Two columns in the Transaction Monitor dialog box display failed transactions:
The Failed column contains transactions that were not successfully
The Database Failed column contains transactions that were processed
For more information on error conditions that can affect enterprise connectors, as well as how FactoryTalk Transaction Manager handles transaction types and storage methods, see chapter Creating Transactions (page 95).
92
processed.
correctly, but could not be applied to the database due to a database error.
6 Defining Data Objects
Inserting and Updating Data Table Records
When logging data to a table, you can use FactoryTalk Transaction Manager to directly insert data, which creates new records in the table, or update existing data in the table. The default setting is Insert, but you can change it by selecting the option for the given data object. When the Update option is selected, some of the data points may be used as criteria for selecting rows to be updated, while other data points are used to update the values in the selected columns. If no rows match the given criteria, the data will be inserted into a new row.
Stored Procedures
A stored procedure is a user-defined function or program that is executed inside of the database; it can consist of any of the components of a structured language that enable you to define data behavior. A stored procedure can be simple like a single select command or complicated like validating all data before it is inserted into a table.
A stored procedure works like a function that is stored in a database. Most databases provide a comprehensive stored procedure language that combines the data query capabilities of SQL and some kind of procedural
control (for example, an If…Then statement). As with most kinds of
function calls, a stored procedure can have both inputs and outputs. In a transaction that is connected to a stored procedure, the values bound to inputs are collected from the control system and the outputs are returned to the control system.
When you create a data object and select the Stored Procedure radio button on the Data Object Definition dialog box, FactoryTalk Transaction Manager queries the database for all stored procedures accessible by the chosen database user account and lists them in the stored procedure list box. When you select a stored procedure, the input and output parameters display in the lower pane. Since all parameters for a stored procedure are required, the
93
FactoryTalk Transaction Manager User Guide
software automatically adds them to the data object pane on the right when they are selected.
To simplify the creation of simple stored procedures, FactoryTalk Transaction Manager provides a Stored Procedure Wizard for SQL Server and Oracle databases (on the Data Object Definition dialog box, click the Stored Procedure radio button and then click Wizard). For complicated stored procedures and/or debugging of stored procedures, use database-specific tools.
94
Chapter 7
Creating Transactions
Introducing Transactions
FactoryTalk Transaction Manager transactions move data between the control system and the enterprise system. Binding is the process of mapping:
A column in a database table to a data point in a control system,
expression, or a literal string.
A parameter in a stored procedure to a data point, expression, a literal
string, or a null value.
A configuration can contain any number of transactions, each running independently based on a trigger event. Although the number of transactions in a configuration is unlimited, you cannot exceed the tag count for which you are licensed (see Activation Options (page 33)). In a configuration that uses online edits, you can edit existing or create new transactions while the configuration is running. For more information, see chapter Understanding Online Edits (page 111).
You can assign the following attributes to a transaction on the Transaction Definition dialog box (click Step 5 on the Configuration Checklist):
Transaction name. Transaction time out. Data object name. Bindings of data object elements to data points/expressions. Trigger event.
95
FactoryTalk Transaction Manager User Guide
Transaction (cached or real-time) and storage options.
The following figure shows an example Transaction Definition dialog box.
Transaction Types
FactoryTalk Transaction Manager supports the following types of transactions regardless of the trigger mechanism:
Unidirectional transactions. Bidirectional transactions.
Additionally, for either transaction type, you can optionally specify that a transaction result is bound back to a control system.
96
Figure 13: Transaction Definition dialog box
7 Creating Transactions
Unidirectional Transactions
Unidirectional transactions in FactoryTalk Transaction Manager use information from the control system to add records to a database table, update the contents of existing records, or call stored procedures that do not contain output parameters.
Unidirectional transactions are commonly used to log production data to a database, including:
Performance monitoring. Quality analysis sampling. Real-time production information collecting. Material consumption tracking. Product tracking. End of job/batch/shift reporting.
Unidirectional transactions are the simplest transaction type. They can be used to perform database Insert or Update commands. They can also be used to perform simple stored procedures, provided no output parameters or return codes exist. In most applications, unidirectional transactions account for the majority of transaction volume. Data may be collected frequently from a large number of data points.
Bidirectional Transactions
Bidirectional transactions in FactoryTalk Transaction Manager take data from the control system and call a stored procedure that exercises some logic, and then provides the software with output values that can be written back to the control system. You can also set up bidirectional transactions so that data is not sent to a database, but only downloaded from a database to a control system.
This transaction type is the most powerful because it allows transactions to interact with a database stored procedure or Microsoft COM+ method. This capability makes it possible for FactoryTalk Transaction Manager to
97
FactoryTalk Transaction Manager User Guide
perform functions that were previously possible only through custom application development. Applications that are possible with this type of transaction include:
Product parameter downloading. Dynamic routing. Dynamic production scheduling. Controller centralizing. Production floor interacting. Automated storage and retrieval warehousing.
A bidirectional transaction with input/output bindings implements a data transfer from the enterprise system and sends it to the control system, binding database stored procedure input and output parameters. The control system data serves as input to a stored procedure. The results of a stored procedure can be written back to data points in the control system (enabling the creation of sophisticated transactions that allow a high degree of interaction between a database system and the factory floor).
Transactions with output bindings must use the Real Time Thread Storage option on the Transaction Definition dialog box because the procedure or method must complete before data can be returned to the Transaction Control Manager service or FactoryTalk Transaction Manager service. FactoryTalk Transaction Manager allows you to specify the number of database threads used by a connector to improve performance.
When creating a transaction using input/output bindings, parameters are bound in the same manner as columns in a table. The input data points are collected, any expressions are evaluated, and the procedure is called. If the procedure succeeds, any output parameters are written to the control system.
Transactions with input/output bindings use the following types of parameters:
Input parameters. In a stored procedure, these parameters must have a
98
binding (a data point, expression, or a null). Select a data object
7 Creating Transactions
parameter, right-click and select either Bind Data Point or Bind Null Value from the menu. A transaction must have all input parameters bound to it before it can be enabled. Binding a null value to an input eliminates the need to gather a value from the database.
Output parameters. These parameters do not require a binding. The
results of the bound value display under the Bound Value column. If an output parameter is not bound or is bound to a null, the value is ignored and this column is empty. A procedure must succeed before output parameters can be returned to the control system. Normally, you bind outputs to a data point in the control system; upon the successful completion of a transaction, a value is written from the stored procedure to the data point.
Input/output parameters. These parameters are handled as a single
binding unless they are separated using the Separate Input/output option. This option permits separate data points to be bound to the same procedure parameter. This implies that the address from which the input parameter is derived is different from the address to which the output parameter is written. This also implies that if an input/output parameter is used only for output, then the input portion can be bound to a null value. Leaving an input/output parameter bound to a single data point causes the value to be read prior to executing the procedure and the output value to be written upon completion of the transaction.
The Microsoft SQL Server RETURN_CODE contains data that can be bound as an output to a stored procedure. This value is only available if the procedure executes successfully. A successful return code does not guarantee a successful transaction as the transaction is not yet complete.
Bidirectional or Unidirectional Transactions With Transaction Bindings
A bidirectional or unidirectional transaction with a transaction result binding implements a data value that is written back to the control system; that data value allows you to determine if the transaction completed successfully. The control system can then take appropriate action based on the success or
99
FactoryTalk Transaction Manager User Guide
failure of the transaction. For example, consider a high liability manufacturing environment where a verifiable quality record is a requirement for each product produced. At various steps in the manufacturing process, a transaction may send a test result to be stored in a central database. If that test result is not recorded successfully, the part on the production line may become worthless.
The Transaction Result, which notifies the control system that the transaction was successful, is sent variably based on the type of transaction. In a real-time transaction (where data flows straight to the database), the Transaction Result is sent upon data being successfully logged into the database. However in a cached transaction, where a cache is used to ensure data integrity, the Transaction Result is sent once data has been logged into the cache, and not necessarily into the database. The Transaction Result is used to confirm that the test result was recorded. If the Transaction Result indicates the test result was not recorded, the control system can respond appropriately by alerting an operator, changing the part's routing, or retrying the transaction. Some examples may include:
Validated data logging. Closed-loop quality tracking.
The Transaction Result Binding option allows a transaction to return a Transaction Result code to the control system. To enable the Transaction Result Binding option, select the Bind Transaction Result check box on the Transaction Definition dialog box, then select a data point to accept the Transaction Result code. The control system should take appropriate action depending upon the result of the transaction.
The Transaction Result code is a 16-bit integer. Bit 0 is the least significant, Bit 15 is the most significant. The Transaction Result code consists of:
Bit 0: the Done Bit- A 1 indicates the transaction has completed, a 0
100
indicates that it has not completed. No information is given as to whether the transaction was successful or unsuccessful.
Loading...