Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

Clear historic data from all points in a group - ClearSCADA 2010 R2

EcoStruxure Geo SCADA Expert Forum

Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • Remote Operations
  • EcoStruxure Geo SCADA Expert Forum
  • Clear historic data from all points in a group - ClearSCADA 2010 R2
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
sbeadle
Kirk sbeadle Kirk
307
AndrewScott
Admiral AndrewScott
95
BevanWeiss
Spock BevanWeiss
89
AdamWoodlandToo
Lt. Commander AdamWoodlandToo
36
View All
Related Products
product field
Schneider Electric
EcoStruxure™ Geo SCADA Expert

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to EcoStruxure Geo SCADA Expert Forum
ash_aqx
Lieutenant JG ash_aqx
Lieutenant JG

Posted: ‎2022-03-31 07:01 PM . Last Modified: ‎2023-05-02 11:57 PM

0 Likes
7
2509
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-03-31 07:01 PM . Last Modified: ‎2023-05-02 11:57 PM

Clear historic data from all points in a group - ClearSCADA 2010 R2

Hi All,

 

I'm hoping to get some guidance in writing an ST Program to clear the historic data from all points in a group and sub-groups.

The Group is a DNP3 outstation. Currently our operators go through the process of:

- Point: Disable In Service

- Historic: Disable Historic

- Historic: Enable Historic

- Point: Enable In Service

 

There's got to be a better way!

I've looked into using SQL in my ST Program, but I'm a little lost when it comes to selecting the Id for every point then running DELETE on every row. Seems like a pretty dangerous operation if the SELECT get's an incorrect point Id.

 

I'm hoping that I can end up with a boolean point that when enabled would clear historic for every point within the group it's located in.

 

This particular project is using ClearSCADA 2010 R2.. don't ask.

Labels
  • Labels:
  • Logic
  • Scripting
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic
Replies 7
sbeadle
Kirk sbeadle Kirk
Kirk

Posted: ‎2022-04-01 02:06 AM

0 Likes
4
2490
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-04-01 02:06 AM

Hi Ash,

 

Better way? Why do this at all! And on an unsupported release...

 

You /can/ do this by disabling historic data - but you must wait several seconds for the disable/delete to sync on any standbys, then re-enable.

 

Selecting samples and deleting them with the delete method is going to be inefficient.

 

"...with a boolean point that when enabled would clear historic for every point within the group it's located in."

This sounds like the most risky thing to do with historic data!

 

 

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

JChamberlain1
Lieutenant JG JChamberlain1
Lieutenant JG

Posted: ‎2022-04-05 09:38 PM

0 Likes
1
2410
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-04-05 09:38 PM

You can't run SQL DELETE on historic tables.

 

What you will want to do is disable and re-enable the historic aggregate programmatically in logic, then you can put buttons to execute that logic on a mimic for your operators to use.

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

ash_aqx
Lieutenant JG ash_aqx
Lieutenant JG

Posted: ‎2022-04-06 03:23 AM

In response to sbeadle
0 Likes
3
2404
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-04-06 03:23 AM

Thanks for the reply,

 

As for the why, it's a bit of an outlier. The system is portable, everytime it's moved we need to reset all the historic readings as part of the contract requirements. This consumes a fair bit of man hours.

 

If there's a better way of doing this that doesn't involve recreating and remapping a site with around 100 dnp3 points then I'm all for better solutions.

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

ash_aqx
Lieutenant JG ash_aqx
Lieutenant JG

Posted: ‎2022-04-06 03:26 AM

In response to JChamberlain1
0 Likes
0
2403
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-04-06 03:26 AM

Thanks for the reply,

 

That's exactly what I was hoping to achieve. Some bit of logic that moves through each point in the group and disable / re-enables the historic.

 

Do you have any pointers / sources on how this might be achieved?

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

geoffpatton
Captain geoffpatton
Captain

Posted: ‎2022-04-07 12:23 PM

In response to ash_aqx
0 Likes
2
2371
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-04-07 12:23 PM

Are you saying the whole system is moved from one site to another and all the history in ClearSCADA has to be reset? If so then just delete the History folder while the database is shutdown.

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

ash_aqx
Lieutenant JG ash_aqx
Lieutenant JG

Posted: ‎2022-04-07 01:05 PM

In response to geoffpatton
0 Likes
1
2368
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-04-07 01:05 PM

Just the remote outstation is moved, not the scada instance.

 

The outstation is connected via DNP3 over a 4G connection.

 

So everytime the outstation is relocated we need to wipe it's data. All the other sites in GeoSCADA need to retain their historic. Can't shutdown the database as that would affect all the other connected sites.

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2022-04-07 04:20 PM

In response to ash_aqx
0 Likes
0
2363
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-04-07 04:20 PM

Are you sure that you really wouldn't want to keep the historic data associated with the sampled location?

 

We have a couple of customers that have a very similar situation.

They have portable level transmitters / floats that get deployed beneath manhole covers to determine where a restriction in a sewage network is.  When the blockage location is detected and removed, then the sensor can be redeployed elsewhere.

 

But for this, we like to keep around the historical data for the manhole, so that if it has had sensors installed on it three times across different times we still have a record of what the levels were in each installation period (i.e. we can see that the profile on this installation matches the profile on the previous installation).

We also care about the long term values of the sensor itself however, to identify if it's had anomalous readings.

We use logic that 'copies' the historic records from the raw instrument points into Internal Points which are associated with the locations themselves.

 

For your deleting, then I think you'd essentially want to also use logic.  If you had it turn off the historic aggregate for each point you wanted to purge the history for, and then ran an OptimiseHistoric on it, that should flush everything out.  Then you could re-enable the historic aggregate once you wanted to start collecting historic entries again.

I looked into the schema, and unfortunately the Historic Aggregate is defined quite low in the point hierarchy, so unless you only have one specific point type (i.e. DNP3 Point / ICMP Point / Simple Point etc) then you would need to use multiple queries to disable all the historic aggregates.  The Logic could do it more easily in a loop, you'd just need to use a second logic routine called by the first with an Input parameter to access the Indirect reference for the Historic Aggregate disable/enable


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

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.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of