The CygNet Collector

Overview of the CygNet Collector

The CygNet collector collects data from a CygNet server and stores it in the Historian server.

Topology: The CygNet collector supports a distributed model, where the CygNet server, the collector, and the Historian server are installed on different machines. Typically, however, the collector is installed on the same computer as the CygNet server and sends data to a remote Historian server.

Features:
  • You can browse the source for tags and their attributes on a CygNet server that supports browsing.
  • Both the polled as well as unsolicited data collection are supported. During unsolicited data collection, when changes to the CygNet tags are detected, they are forwarded to the Historian server. The collector duplicates raw samples from the CygNet server into the Historian data archive.
  • The supported timestamp resolution is 100ms.
  • Floating point, integer, and string data are supported.
Components:
  • System API
  • Collector Toolkit
How it works:
  1. When you browse for tags, the CygNet collector connects with CygNet using the CxScript64.dll API.
  2. The collector queries the CygNet faculty service and point service associated with the Current Value service (CVS).
  3. The CygNet point value is mapped to the Historian server as a collector tag.
  4. The collector stores the Value Historian service (VHS) and points Uniform Data Codes as the tag source address.
  5. Once all the CygNet points associated with the selected CVS/VHS have been mapped with the Historian tags, the collector begins querying from VHS to collect data from CygNet.

Supported data types:

The CygNet collector collects analog, digital, and string types of data. The following table provides the data types recommended for use with Historian.
CygNet Data Types Recommended Data Type in Historian
Analog Float
Enumeration Integer
Digital Boolean
String Variable String
Supported tag attributes:
  • Tagname
  • Source Address
  • Engineering Unit Description
  • Data Type
  • Hi Engineering Units and Lo Engineering Units (applicable only to analog and discrete data types)
Note: Although you can browse and query some of these attributes, they are not displayed in the browse interface. These attributes are used when you add a tag, but are not visible to you, regardless of attributes available from the server.

Configure the CygNet Collector

Procedure

  1. Access Historian Administrator.
  2. Select Collectors, and then select the CygNet collector instance that you want to configure.
  3. Select Configuration.
    The Configuration section appears.

  4. Enter values as specified in the following table.
    Field Description
    Recovery Time The maximum time, in hours, for which the collector will attempt to recover data after the collector is started or when connection between the collector and the CygNet server is re-established. This time is calculated as the duration between the current time and the last known write time.

    Continuous data collection is resumed only after the previous data has been recovered.

    By default, this value is set to 0, which means data recovery is not attempted. The maximum value you can provide is 168 hours (that is, 7 days).

    Thread Count The maximum number of threads that you want to collector to use to query data from the CygNet server.
    CygNet Debug Mode The debug mode for the collector. You can enter a value between 0 and 255, where 0 turns off debugging and 255 enables detailed debugging (with query transactions).
    Note: Do not turn on debugging for a long period. If you do so, very large log files are created, which can consume a great deal of disk space.We recommend a maximum of 10 minutes.
    General Optimized Indicates whether you want to apply optimization on the tag data reads.
    ServiceSite Identifies the CygNet site or data source from which the CygNet collector collects data. A value is required.
    For a list of the general parameters, refer to General Parameters of a Collector.
    Note: You can also modify these parameters in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\GE Digital\iHistorian\Services\CygNetCollector. The following table provides the mapping between the parameters in the Registry and the UI.
    Registry Parameters Parameters in the UI
    General2 Recovery Time
    General3 Thread Count
    General4 CygNet Debug Mode
    General5 General Optimized
  5. Select Update.
  6. Restart the collector.
    The collector is configured.

Specify the Tags for Data Collection

Before you begin

Install the CygNet ODBC driver on the collector machine, which is required for the CygNet collector to connect to the server. Note that the CygNet ODBC driver is not available with Historian.

About this task

If your CygNet server supports hierarchical organization of tags in a tree structure, you can use the hierarchy to browse for tags and add them to the collector for data collection.

Procedure

  1. Access Historian Administrator.
  2. Select Collectors, and then select the CygNet collector instance to which you want to add tags.
  3. Select Configuration.
    The Configuration section appears.

  4. Select Add Tags.
    The Add Multiple Tags from Collector window appears.

  5. In the Collector field, select the CygNet collector to which you want to add tags.
    A hierarchical tree of tags appears in the Browse Results section.
  6. If you want to view only the tags for which data is not collected, in the Show Only field, select Source Tags Not Collected. You can search for a tag by entering search criteria in the Source Tag Name or Description field.
  7. Navigate to the node in the tree that you want to browse, and then select Browse.
    Tip:
    • To browse automatically, select the Auto Browse check box. The available tags appear in the Browse Results window whenever a node is selected in the tree.
    • To show all child elements within a hierarchy, select the Show All Children check box. All tags at or below the hierarchical level of the selected node in the tree appear in the Browse Results window.
    The tags within the selected portion of the CygNet server tag hierarchy appear.
  8. Select the tags for which you want to collect data, and then select Add Selected Tags.
    The tags are added to the collector. They appear in black text in the list of tags.

Manual Recalculation and Bad Offline Values

CygNet collector supports Manual recalculation of tags. The CygNet collector by default will add a bad offline value when the collector is started. To disable this feature, add the following registry key to HKEY_LOCAL_MACHINE\SOFTWARE\Intellution, Inc.\iHistorian\Services\CygNetCollector\<entry>
  • WriteBadOfflineAtStartup (DWORD) – set this to ‘0’ to disable adding the bad offline at startup.
  • DeleteBeforeRecalc (DWORD) – By default, before performing a recalculation on an interval, the collector will delete any previously stored values in Proficy Historian. To disable this feature, set this key to ‘0’

The CygNet collector also inserts a bad offline while a tag is modified. It may stay as the current value until new values are read from cygnet the by collector.

Troubleshooting the CygNet Collector

The CygNet collector generates logs during initialization, configuration, and general operation. You can find them at C:\Proficy Historian Data\LogFiles.

Troubleshooting Tips

Troubleshoot the collector using one or more of the following:

  • Examining the log files for information.
  • Examining the Windows Event Viewer for error/warnings.
  • Be sure to run the CygNet Server before the CygNet Data Collector starts up.
  • Be sure CygNet ODBC Client Tools are installed.

Additional log information can be gathered by using the CygNet Debug Mode described above for debugging the CygNet to Collector interface.

To turn on debug mode for the Collector:

  • From the Start menu, select Run and enter Regedit.
  • Open the following key folder: HKEY_LOCAL_MACHINE\SOFTWARE\GE Digital\iHistorian\Services\CygNetCollector\<entry>
  • Double-click DebugMode DWORD .
  • Set Base as Decimal.
  • In the Value data field, type 255.
  • Select OK.
  • Restart the CygNet collector service for the Historian debug mode to take effect.
  • Close the Registry Editor and open the Proficy OPC Classic HDA server trace log file.
    Note: Do not turn on both CygNet Debug Mode and DebugMode at the same time!

The following error is reported by the collector if the CygNet 64 Bit APIs are not installed:

Error Setting CygNet GlobalFunctions object: 'Class not registered' Follow the step below to manually install the CxScript64.dll required by CygNet collector: regsvr32 "C:\...\8.1.2 Install\CygNet 812\Support64\CxScript64.dll"
Note: Do not turn on CygNet Debug Mode or the DebugMode key for an extended period, 10 minutes should be more than sufficient. Leaving it on will create very large log files and that could use up a great deal of disk space.