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

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

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

Kepware Knowledge Base: Solution


Why Is More Than One Record Inserted Into the Database When the Trigger Is Set to Log 'On Data Change'?


Last Update: 2018/11/7

Problem:
Multiple records are being logged for the log group, and each record contains partially changed data.

Possible Cause:
The Log Group is like an OPC group: all of the items selected to be logged are polled at the rate specified in the General Tab or Log Group. It is possible that the data may not be polled and updated at the same time because the items may not be on the same device or may be in different memory areas in the controller (which requires multiple read polls to acquire). Because the server updates DataLogger each time one of the device polls completes, multiple data changes are triggered for the device. As a result, multiple records are logged.

Solution:
1. Use a Static Poll Interval instead of data changes. Doing so will only log one record; however, the data may be partially stale because the update is taken from cache.
2. Use an Expression Trigger that will be enabled when a Boolean in the controller goes high. The data will only be logged when the device sets the trigger value high.

Related Products
DataLogger