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] |
In the following example, OPC is selected for edit.
The Action Editor - OPC dialog displays.
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.