Historian OPC HDA Server Configuration
About Historian OPC HDA Server Configuration
After installation, the Historian OPC HDA Server runs as an independent executable file. For more information about configuring Proficy Historian HDA Server, refer to Setting up the Historian HDA Server.
Historian OPC HDA Server License
A valid license is required for Historian OPC HDA Server. If you do not have a valid license, Historian OPC HDA Server cannot connect to the Historian.
Whenever Historian OPC HDA Server attempts to connect to the Proficy Historian, Historian Server verifies the Historian OPC HDA Server license.
If the Historian OPC HDA Server license is available, then the Historian OPC HDA Server can connect and read the raw data from the Historian. A message is logged into the Historian OPC HDA Server trace log file. By default, you can view the log file (that is, .html file) in C:\Proficy Historian Data\LogFiles. For example:
4/6/2009 4:32:05 PM HDA Client is connecting
4/6/2009 4:32:06 PM Connected to Historian server : [3.212.219.88]
4/6/2009 4:32:06 PM HDA Client Connected
4/6/2009 4:32:11 PM HDA Address Space Created
If the Historian OPC HDA Server license is not available, then the Historian OPC HDA Server cannot connect to Historian. A message is logged into the Historian OPC HDA Server trace log file. By default, you can view the log file (that is, .html file) in C:\Historian Data\LogFiles. For example:
4/6/2009 4:29:31 PM =========================================== Proficy.Historian.HDAServer.ApiConnectionInterfaceOPC
HDA Server not Licensed : Please make sure you have license for HDA server. Try re-starting Archiver and then connect
HDA clients again.at HistorianApiConnection.ApiConnection.ApiConnectClient(String nodeName, String userName, String
passWord) at HDAPlugin.AppPlugin..ctor(PluginUse mode)
==========================================================
4/6/2009 4:30:02 PM HDA Client Disconnected
Historian OPC HDA Server Supported Attributes
The following table lists the Historian OPC HDA Server supported attributes.
Historian Property Type | Historian OPC HDA Attribute | Data Type | Description |
---|---|---|---|
Data Type | OPCHDA_ DATA_TYPE | Int16 | Specifies the data type for the item. For more information, refer to the Historian OPC HAD Server supported data types section. |
TagDescription | OPCHDA_ DESCRIPTION | String | Describes the item. |
Engineering Units | OPCHDA_ ENG_UNITS | String | Specifies the label to use in displays to define the units for the item (For example, kg/sec). |
Archiving | OPCHDA_ ARCHIVING | Boolean | Indicates whether Historian is recording data for this item. (Zero means it is not recording data) |
ItemID | OPCHDA_ ITEMID | String | Specifies the Item id. This is used to allow filtering in the CreateBrowsemethod . |
Historian OPC HDA Server Supported Data Types
The following table lists the mapping of data types between Historian and the OPC HDA Server.
Proficy Historian Data Type |
OPC HDA Data Type |
---|---|
Single Integer |
VT_I2&endash; 16 bit signed integer |
Double Integer |
VT_I4- 32 bit signed integer |
Quad Integer |
VT_I8- 64 bit quad integer |
Unsigned Single Integer |
VT_UI2- 16 bit unsigned single integer |
Unsigned Double Integer |
VT_UI4- 32 bit unsigned single integer |
Unsigned Quad Integer |
VT_UI8- 62 bit quad integer |
Byte |
VT_I1 |
Boolean |
VT_BOOL |
SingleFloat |
VT_R4- 32 bit float |
Double Float |
VT_R8- 64 bit double float |
Variable String |
VT_BSTR |
Fixed String |
VT_BSTR |
Date |
VT_DATE |
Blob |
VT_BSTR |
Historian OPC HDA Server Supported Quality Values
The following table lists the mapping of quality values between Historian and the OPC HDA Server.
Proficy Historian Quality | OPC HDA Quality | Description |
---|---|---|
ihOPCGood | OPC_ QUALITY_ GOOD | Indicates there is no need for inspection. This quality is returned for the tags that have all the values archived properly. |
ihOPCBad | OPC_ QUALITY_ BAD | Indicates a need for attention. This quality is returned for the tags that had problems during the collection. |
ihOPCUncertain | OPC_ QUALITY_ UNCERTAIN | Indicates a need for inspection. This quality is returned when the data collection time is low and when there is no specific quality value. |
ihOPCNA | OPC_ QUALITY_ BAD | Indicates a need for attention. |
Setting Up Windows XP or Vista Firewall For Remote OPC Servers
Connect and Disconnect from the OPC HDA Server
Run Multiple Clients
The Historian OPC HDA Server supports multiple instances of OPC HDA clients without any additional configuration. For more information on performing communication and control operations, see OPC HDA Client documentation.
Tested OPC HDA Clients
- OPC Foundation HDA Sample client. You can download this client from www.opcfoundation.org
- Advosol HDA test client. You can download this client from http://www.advosol.com/t-free- tools.aspx
Filter Attributes Supported on Historian OPC HDA
- OPC_HDA_ITEM_ID
- OPC_HDA_DESCRIPTION
- OPC_HDA_DATA_TYPE
- OPC_HDA_ENGINEERING_UNITS
The following table provides the correspondence between OPC HDA attributes and Historian tag attributes, and shows the supported operators:
Historian OPC HDA Attribute | Supported Operators | Historian Property Type |
---|---|---|
OPCHDA_DATA_TYPE | OPC_HDA_EQUAL_TO | Data Type |
OPCHDA_DESCRIPTION | OPC_HDA_EQUAL_TO | Tag Description |
OPCHDA_ENG_UNITS | OPC_HDA_EQUAL_TO | Engineering Units |
OPCHDA_ITEMID | OPC_HDA_EQUAL_TO | Item ID |
- The wildcard character (*) will return all the tags.
- The wildcard (key*) will return tags which begins with key.
- The wildcard (key) returns an exact tag name.
Configure OPC HDA Server-Specific DOCM Settings
Historian OPC HDA Server supports DCOM (Distributed Component Object Model) to browse the Historian OPC HDA Server remotely. If you want to grant only certain users permission to launch or access the remote Historian OPC HDA Server, you can use the Windows utility, DCOMCNFG.EXE for configuring DCOM applications. DCOMCNFG.EXE is usually located in your operating systems \system32 folder.
When OPC Servers register, they set up initial custom DCOM security settings to enable users on the network to access and launch the Server. On large networks, it is recommended that you modify these settings to avoid confusion and inadvertent changes to a running OPC Server. If Firewall security is enabled on Windows XP or Vista, you must also modify or add items to the Exceptions list. See Setting Up the Windows XP or Vista Firewall for Use with Remote OPC Servers.
- It is recommended that all users that need to access remote OPC Servers be members of the Administrators group. To facilitate this, It is recommended creating a users group to contain individual users who need to access remote OPC servers.
- To make any OPC HDA Client / OPC HDA Server application work via DCOM, changes need to be made on both sides, especially if you intend to use Asynchronous I/O communications.
- OPCENUM must reside on the remote machine with the OPC server. While most OPC Server applications install and register this file, some do not. You can download this file from www.opcfoundation.org. Currently, it is contained within the OPC Core Components 2.00 Redistributable 2.30.msi file. After you download OPCENUM, run the .msi file.
- This section applies to OPC HDA servers that need to use DCOM communications, regardless of whether the OPC server uses Serial or Ethernet devices.
- If OPC communications is confined to a single machine (that is, using COM, but not DCOM), it continues to work properly without making changes to DCOM settings.
- If Historian OPC HDA Server and OPC HDA Client are on same machine, then you do not need to change your DCOM settings.
- If this is the first time you are connecting to (or allowing connections from) other machines on the network, you must run the Windows Network Wizard (from Start > Control Panel) to set up your computer to run on your network. This allows you to share resources on your computer with other computers on your network. It is recommended that you run the Network Setup Wizard before modifying the DCOM settings.
Configuring DCOM Settings
Updating System-wide COM/DCOM Limit Settings
OPC Server-specific DCOM Settings
Modifying Driver-Specific DCOM Settings on Windows 2003
Modifying DCOM Settings on Windows (XP, Vista, 07, Server 2008)
The following procedures detail the OPC HDA server-specific COM/DCOM settings on Windows 7, Windows XP, Windows Vista, and Windows Server 2008 operating systems.
Trace Logging OPC HDA Server Communications
The Trace Logging feature logs communications with the Historian OPC HDA Server into an html file. Advanced users can use this log file to trace a history of communication events dealt with by the Historian OPC HDA Server. The Trace Log file is a simple html file and is placed in the Logfiles folder. By default, this is C:\Proficy Historian Data\LogFiles.
- The date and time when the event occurred.
- Errors and Exceptions parameters passed by the clients.
- The status of the client.
Turning On Debug Mode to Access Trace Log Files
Example Trace Log File
The following messages illustrate the type of information that the trace log file provides.
- The Black color code indicates the status of the events.
- The Blue color code indicates the status of the clients.
- The Red color code indicates the Errors and Exceptions parameters passed by clients.
Browse Large Number of Tags
Historian OPC HDA Server supports Dual Address Space Model, Hierarchical address space, and Flat address space. Hierarchical address space allows you to browse data from large numbers of collectors and tags without affecting the HDA server browse performance.
Flat address space allows you to browse smaller number of tags. By default, the Flat address space is enabled. If you want to browse large number of collectors and tags, then you must enable Hierarchical address space. See Enabling Hierarchical Address Space for more information.
Enabling Hierarchical Address Space
Enabling Hierarchical address space allows you to browse large number of collectors and tags.