Customize the OPC Action

OPC

The OPC Action can generate a basic script to read tag values from most OPC Classic and OPC DA servers. To connect to OPC UA servers, you must use the Python OPC commands.

Important: To interface with OPC servers via Python, you must install additional components that are not included in the GainSeeker installation.

Instructions for installing the OPC components can be found in an OPCSetup sub-folder of the GainSeeker program folder – typically C:\Program files (x86)\Hertzler Systems\GainSeeker.

 

 

Contents  [Hide]

 

Edit the action

  1. Click an action in the list of actions to select it. Then, click Edit.

In the following example, OPC is selected for edit.

The Action Editor - OPC dialog displays.

  1. Enter the Host Name (computer name or IP address of the OPC server), then Browse or type the ProgID or CLSID for the type of OPC system you are connecting to.

Depending on the speed of your connection to the OPC server, you can choose to submit a single request for all tag values at once (select the Read values to list (single read) check box) or to submit a separate request for each tag value (clear this check box).

Similarly, you can change the Timeout (seconds) that determines how long GainSeeker will wait for a response from the OPC server before giving up and displaying an error.

  1. Click Connect to establish communication and populate the list of tags that you can access on that OPC system.

Select each tag you wish to read and then click Add.

This window will retrieve the latest values for the list of Tags to read every five seconds, so you may see these numbers change. If you have a slow OPC connection, you may wish to increase this Refresh Rate. You can also click Refresh Now at any time to retrieve the latest values for these tags.

  1. When finished, click Close.

More information