The OPC DA Action can generate a basic script to read tag values from most OPC Classic and OPC DA servers.
The OPC UA Action can generate a basic script to read tag values from most OPC UA servers.
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] |
The Action Editor - OPC DA dialog or the Action Editor - OPC UA dialog displays.
Enter the Host Name (computer name or IP address of the OPC server).
For OPC DA Setup, Browse or type the ProgID or CLSID for the type of OPC system you are connecting to.
For OPC UA Setup, choose whether to Use Namespace Index or Use Namespace URI to designate namespaces in the resulting Python script.
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.
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.
When finished, click Close.