OPC > OPC Utilities > OPC Check Utility

CygNet OPC Check Utility

The CygNet OPC Check utility (OpcCheck.exe) is used to troubleshoot CygNet OPCIS-to-OPC server communication. It tests the communication status of messages passed between the utility and the OPC server so that you know communication is successful before connecting an OPCIS to the OPC server.

The CygNet OPC Check utility file (OpcCheck.exe) is stored in the CygNet\Utilities directory on the host server. To start the utility, browse to the directory using Windows Explorer and double-click the program icon.

Once connected, the utility automatically attempts to update every active item once per second. The communication steps followed when a connection is attempted are displayed at the bottom of the dialog box in the Status messages field. In a successful connection, the utility connects to the OPC server, maps OPC tags from the utility to items in the OPC server, then retrieves values from the corresponding OPC server items.

CygNet OPC Check

Sample CygNet OPC Check Utility

For more information, see the following subsections:

See also OPC Sync Utility.

Using the CygNet OPC Check Utility

To begin using the CygNet OPC Check utility, first ascertain the name of the OPC server and the name of the computer on which it is installed.

To Run the Utility

  1. In the Machine Name field, type the name of the computer on which the OPC server resides. If it resides on the same computer as the CygNet OPC Check utility, you may leave this field blank.
  2. In the OPC Server field, type the name of the OPC server. The default is CygNet.OPCServer.
  3. Click Connect. If you cannot connect to the OPC server, the issue is likely DCOM related.
  4. Once connected, select the relevant I/O option. See OPC documentation for details about synchronous and asynchronous requests.
  5. Check Active to activate the group. For an item in a group to be active, both the group and the item in the group must be set to Active.
  6. For each item you want to check connection with, click Add. The Add New Item dialog box appears.
    1. Type the exact tag name in the OPC Tag field. This tag must correspond to an OPC item in your connected OPC server. The tag is case sensitive.
    2. Check Active to activate the item and click OK. For an item in a group to be active, both the group and the item in the group must be set to Active.
  7. Review connection details in the Status messages field at the bottom of the CygNet OPC Check utility.

Note: If you are having trouble connecting to the OPC server, refer to MatrikonOPC for more information on configuring DCOM for your operating system.

CygNet OPC Check Utility Properties

The following table lists and describes the properties of the CygNet OPC Check utility.

Property Description
Connection

Machine Name

The name of the computer on which the OPC server resides. If it resides on the same computer as the CygNet OPC Check utility, you may leave this field blank.

OPC Server

The name of the OPC server. The default is CygNet.OPCServer.

Check server CLSID

Click to retrieve the OPC server class ID from the local registry of the computer the OPC server resides on.

The OPC server .dll must be registered on the local computer in order for this to work. If the OPC class ID is not retrieved by the CygNet OPC Check utility, there is a registry configuration problem that must be resolved on the local computer.

(Dis)Connect

Click to connect to or disconnect from the OPC server. This is not required to establish a connection. Any connection task (add, query, or read) establishes a connection.

Disconnect to change servers.

Group Status

Name

The name of the CygNet OPC group. It is always set to CygNet_OpcCheck_Test and may not be altered by a user.

I/O

Specifies the kind of I/O for the group.

Options are as follows:

  • Synchronous I/O: Specifies that an item's request must be answered before the request's thread is closed.
  • Asynchronous I/O 2.0: Specifies that an item's request may remain unanswered until the OPC server is able to do so.

Active

Check to activate the group. For an item in a group to be active, both the group and the item in the group must be set to Active. You may activate a group but deactivate individual items in order to exclude only those items from data requests.

OPC items

OPC Tag

Displays the unique name of an OPC item. This is not an OPC item as such. It is merely used to map data from an OPC item on the OPC server back to the utility for connection testing.

Value

Displays the value corresponding to a specific OPC item.

Quality

Displays a value that describes the validity of the data in the Value field. See OPC documentation for a complete list of relevant codes.

Active

Displays the state of an OPC item.

Add

Click to add a new OPC tag. When the Add New Item dialog box appears, type the exact tag name in the OPC Tag field. The tag is case sensitive. Check Active to activate the item. Tags must be added one at a time. There is no way to add tags in bulk.

Remove

Highlight an OPC tag and click Remove to remove the tag from the OPC items field.

Query Properties

Click to display query details in the Status messages field. Query details consist of an extensive list of an item's properties.

Read cache

A user-initiated one-time read of an item's value data from the OPC server's cache. This data might not be the latest possible data.

Read device

A user-initiated one-time read of an item's value data from the relevant CygNet device. This is the latest possible data since it comes from the CygNet device's current value service.

Status messages

Clear

Click to clear all existing messages in the Status messages field.

Back to top

Let us know how we can improve this topic.

CygNet at weatherford.com

© 2020 Weatherford. All rights reserved.