EcoStruxure Geo SCADA Expert Forum
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-03-28 08:25 PM . Last Modified: 2023-05-03 12:04 AM
Hi All,
I'm trying to get a Last Updated timestamp for a group of analog data points.
This is to try and determine the last time that a device was seen. There isn't currently a field available in the base MQTT driver that allows me to just check that the device, and analog points within have actually received data. The healthy flag is set as long as the topic subscription is successful.
I'm currently trying to use the Calculation Time Point. But this doesn't allow for a wild card selection (ie ".$.CurrentTime") for the expression.
Ideally this would update as soon as any data is received into an Analog point in the group containing the my MQTT data points.
Any suggestions?
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-03-29 08:12 PM
Simple Expressions do not support 'wildcards'. They must be entirely resolvable at "save-time".
You could use some ST logic to do this, with some SQL.
I'd probably use the Query Processor MAX() / MIN() aggregates to find the oldest / newest data timestamp as required.
For convenience at a latter time you could request some DataPointTimestamp property on Scanners / Outstations to hold such a value. I think it has been requested offline before, but not in the new Exchange Features section (worth a search of the Exchange for it anyway). If you create it, I'll upvote it.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-03-29 08:44 PM
I created an "Idea" here:
MQTT Driver: Add last seen / last updated timestamp tag to MQTT Device - Communities
This is specifically for the MQTT driver, but would probably be nice for any 'group' of points as well.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.