使用搜索功能查看 Kepware 的信息库,其中包含 500 多篇知识库文章。缩小搜索结果范围,或在下面的搜索字段中输入您的查询。

或者,如果您无法找到解决方案,我们还有另一个资源:我们的 PTC eSupport Portal。 如果系统提示您登录 eSupport Portal,您可以使用“我的 Kepware”凭据。需要一个“我的 Kepware”帐户吗?在此处创建

搜索解决方案结果:
View All Solutions

Kepware Knowledge Base: Solution


How do I Use OPC Diagnostics?


Last Update: 2018/11/7

OPC Diagnostics provide a real-time and historical view of the OPC events occurring between a client and the server. OPC Diagnostics log an event represented as an OPC method call that a client makes to the server or a callback that the server makes to a client. OPC Diagnostics enable Kepware's Technical Support team to see how customers' client applications gather data from the server, which is important when Kepware cannot reproduce technical issues seen on-site. For information on using OPC Diagnostics, refer to the instructions below.

Note: To capture OPC Diagnostics, an OPC client must be connected to the server. Make a simple connection to the server with the OPC Quick Client if another client is not connected. When enabled, OPC Diagnostics will capture every OPC event that has not been filtered out until it captures the specified maximum number of events.

  1. To start, open the server configuration window and click File | Project Properties.
  2. In the OPC DA Settings tab, check "Enable diagnostics capture". Then click Apply | OK.
  3. Next, open the OPC Diagnostics view by clicking View | OPC Diagnostics. The window will open in logging mode by default. To stop capturing diagnostics, press pause.
  4. To preserve OPC Diagnostics to hard disk, right-click on the Administration menu located in the System Tray and select Settings | Event Log. Then, specify the Persistence Mode and click Apply | OK.
  5. To limit the OPC diagnostics capture to specific events, right-click anywhere in the OPC Diagnostics window and select Filter.
  6. To send the OPC diagnostics to Kepware for troubleshooting purposes, click File | Save As. Then, specify whether to save the capture in the default binary file format (which may be large in size, but can be reopened in the view at a later date) or as a text file (which is much smaller, and can be printed if needed).

    Note: When OPC Diagnostics are saved as a text file, it cannot be reopened in the OPC Diagnostics view.

Sample OPC Diagnostics Text File
IConnectionPointContainer::FindConnectionPoint (Server)0000000016: Event started0000000016: InterfacePointer = 0x053054F00000000016: [in] REFIID = IID_IOPCShutdown0000000016: Function succeeded. Result = 0x000000000000000016: [out] ConnectionPoint = IID_IOPCShutdown0000000016: Event complete3/19/2004 17:40:46 IConnectionPoint::Advise (Server)0000000000: Event started0000000000: InterfacePointer = 0x053026880000000000: Establishing client callback.0000000000: Function succeeded. Result = 0x000000000000000000: [out] Cookie = 0x053026880000000000: Event complete3/19/2004 17:41:49 IOPCServer::AddGroup ()0000000016: Event started0000000016: InterfacePointer = 0x05304F200000000016: [in] Name = OPC_Diag_Test

Tags
Events

Related Products
KEPServerEX