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.

  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. The list of Tags to read will refresh every few seconds with the latest values, so you may see these numbers change.

  1. When finished, click Close.

More information