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

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

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

Kepware Knowledge Base: Solution


Does an OPC Client Know When a Server Disconnects?


Last Update: 2018/11/7

It is the OPC Client that establishes a connection to the server, not the server that connects to the OPC Client. Therefore, when the server shuts down normally (such as through an exit command), it will send a message to the OPC Client letting it know that the server is shutting down. It is up to the OPC Client to clean up its connections to the server. No message will be sent when the server shuts down abnormally.

Note: The OPC Client application can check the server's status. If it receives no response, then it has the option of closing or removing all objects that have been created for the server. If all else fails, the OPC Client will receive a message from DCOM after several minutes, letting it know that the connection to the server is stale. At this point, the OPC Client may close or remove objects.

Related Products
KEPServerEX

Related Protocols
OPC Data Access (DA)