How to use OPC Analyzer: Difference between revisions

From OPC Labs Knowledge Base
No edit summary
No edit summary
Line 1: Line 1:
[[Category:How to]] [[Category:OPC "Classic"]] [[Category:OPC DA]] [[Category:Troubleshooting]]
[[Category:How to]] [[Category:OPC "Classic"]] [[Category:OPC Analyzer]] [[Category:OPC DA]] [[Category:Troubleshooting]]
For troubleshooting issues related to OPC, it is sometimes necessary to collect and analyze details of the communication between the OPC Client and the OPC Server. A tool called “OPC Analyzer” (from OPC Foundation) provides means for this kind of troubleshooting.
For troubleshooting issues related to OPC, it is sometimes necessary to collect and analyze details of the communication between the OPC Client and the OPC Server. A tool called “OPC Analyzer” (from OPC Foundation) provides means for this kind of troubleshooting.



Revision as of 18:01, 10 October 2016

For troubleshooting issues related to OPC, it is sometimes necessary to collect and analyze details of the communication between the OPC Client and the OPC Server. A tool called “OPC Analyzer” (from OPC Foundation) provides means for this kind of troubleshooting.

The OPC Analyzer is intended for OPC Data Access 2.0 and 3.0 specifications only. It acts as a middle piece between your client application (written with QuickOPC), and the target OPC Server. The OPC Analyzer is both an OPC Client (that connects to the original server), and an OPC Server (to which you will connect instead of connecting to the original server). It provide a pass-through for the OPC communication, while allowing it be monitored, logged and analyzed.

OPC Labs will provide you with a link to download the OPC Analyzer.

After installing, run the OPC Analyzer, and enter any necessary information in the "Category Filter" and "Remote Machine Name" fields, and press the "Refresh" button. Then, select your target OPC server from the "Server" drop-down, and make sure the trace is started (if "TRACE STOPPED" is displayed, press the "start trace" button).

You then need to modify your application (or change the settings in the demo app) to connect to the OPC Analyzer instead of your real target OPC server; the OPC Analyzer acts as an intermediate logger. The ProgID of the OPC Analyzer is "OpcTestLab.OpcAnalyzer.1". You can then run your application, and you should see the trace being collected in the OPC analyzer. It might be helpful to make hand-notes of times of any relevant events, such as the time when you have started the application, when the PLC was power-cycled, and when the exception occurred. After you are finished, select File -> Save Trace in the OPC Analyzer, save the .TRA file, and send it to OPC Labs - ideally, attach it to your reply in the Online Forums (unless it contains something confidential).

Note2-icon.png

Note: Zip the file if it is big. For very large files, ask OPC Labs to provide you with alternative means of delivering the file for analysis.

The OPC Analyzer is supposed to be side-effect free, but there is no absolute guarantee. In addition, there are two things to consider with it:

  • Your application needs to be changed to connect to OPC Analyzer's ProgID (and the OPC Analyzer configured to connect to the actual target OPC Server).
  • When run for long time, it generates a large amount of data (beware of disk space).

The OPC Analyzer tool is available to OPC corporate members only (such as OPC Labs are), and you can only use it for the purpose of troubleshooting the particular problem for which it has been provided to you.