KEPServerEX/ThingWorx Kepware Server Tag values that do not change are not logged
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
KEPServerEX/ThingWorx Kepware Server Tag values that do not change are not logged
Hello,
We are using MFA, and we've configured a connection to Kepserver with an asset and remotely bound properties to Kepserver tags.
The connection pushes values every seconds (in monitoring section we view that we receive it every second), and we need to log those values even haven't changed.
Remoted bound properties Data Change Type property is set to Always, but QueryPropertyHistory service does't show a value for every second, only the changes.
How can we get it?
Thanks in advance
- Labels:
-
Best Practices
-
KEPServerEX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Is kepserver actually sending the values?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Yes. Kepserver is sending values every seconds...but QueryNamedPropertyHistory shows this result:
In monitoring section we can see that we are receiving values every seconds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Can you show all the binding aspects please of the property and the binding itself.
It does look like if it is set to always, it should log each time, you can also try to set a subscription on the property and validate that it fires each update.
Worst comes to worse, if the subscription shows it firing properly, maybe use that to log the values.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
This is the property definition and binding.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey @aetxeberria,
Just change the configuration of the Property in the RemoteThing of Thingworx.
Change the PushType from Pushed based on the value change to Always pushed.
Before:
Change to:
Thanks,
Email: psp316r@outlook.com,
Mobile: +91 8099838001.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
The configuration of the properties is Always pushed, but QueryNamedPropertyHistory does't show all values.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
When you expand the 'Advanced' what is 'DataChange' set to? Value or Always?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
DataChange is set to Always.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Looks like all the settings are correct, I'm not sure as to why it isn't logging all values.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey @aetxeberria,
I can see in the Screenshot that a few signals have bad quality, anyways I faced the same issue a month ago. There are two reasons:
1. Due to more than 40,000 rows in dataTable, I queried it for every sec, that increased no.of Threads in the queue which stopped logging the data of properties.
You can Check the queues here:
Performed = Queued
2. For some reason or heavy load on the TWX, the no.of stream logging is not happening
again Performed should be equal to Queued.
If you find (Performed != Queued), please Restart the TWX; that would be a Temporary fix for the logging issue; Permanent would be you need to Trace what is taking longer time which is acting as a road block.
Thanks,
Email: psp316r@outlook.com,
Mobile: +91 8099838001.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
We've restarted TWX and checked the queues....after the restart, the number of streams performed and queued are not still equal...
- Performed => 1658
- Queued => 1692
Is the difference between performed and queued normal?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey @aetxeberria,
That may be an issue, some service, or something causing the execution delay; please check the other parts of the Subsystem.
Thanks,
Email: psp316r@outlook.com,
Mobile: +91 8099838001.