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

Accumulator points that reset at the start of the Month / Year

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
  • Accumulator points that reset at the start of the Month / Year
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
Solved Go to Solution
Back to EcoStruxure Geo SCADA Expert Forum
Solved
BevanWeiss
Spock BevanWeiss
Spock

Posted: β€Ž2020-06-20 09:03 PM . Last Modified: β€Ž2023-05-03 12:13 AM

0 Likes
2
2090
  • 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: β€Ž2020-06-20 09:03 PM . Last Modified: β€Ž2023-05-03 12:13 AM

Accumulator points that reset at the start of the Month / Year

Hi all,

 

I'm surprised that I've only encountered this problem recently in my ClearSCADA / GeoSCADA life... but I'm trying to use Delta Accumulators to perform totalisation for Runtime / Starts / Flows / Cats etc...

 

I have a daily totaliser within the RTU (plus for consistency checks a Yesterday total also).  My plan was to use Delta Accumulators to keep things like Weekly Totals, Monthly Totals, Yearly Totals, All Time totals.

 

I really wanted to keep these away from being actual Points, however whilst the weekly Delta Accumulator seems straight forward, there doesn't seem to be a way to have a Monthly or Yearly Accumulator (Delta or otherwise).  Since the Interval setting must be an OPC Time Interval, and that doesn't support changing values like Month / Years.

 

At the moment my 'solution' would be to have a little piece of logic that is alongside the accumulators and runs at the start of every day (Local Time with DST compensation) and if the month has rolled over reset the Monthly accumulators, and if the Year has rolled over to reset the Yearly accumulators.  But I'm surprised that this isn't just 'out of the box' functionality.

 

I'm also not that fond of pushing out this many ST Logic routine that would all need to execute at pretty much the same time (i.e. 00:00 each day), regardless of how little maths they needed to do (compare month to retained month.. if different reset Monthly and update retained month, compare year to retained year.. if different reset yearly and update retained year...).

I could do one ST SQL query (so that there's not lots of ST routines floating around with the same execution time), but I'm sure the performance impact of the ST SQL query and filters would outweigh the multiple smaller ST programs.

 

I'm open to ideas πŸ™‚  [unless it involves calling an external command line utility with the SYSTEM() command Adam πŸ˜‰ ]


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..
Labels
  • Labels:
  • Logic
  • Tags:
  • english
Reply

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

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
AdamWoodland
AdamWoodland Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: β€Ž2020-06-21 04:46 PM

0 Likes
1
2079
  • 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: β€Ž2020-06-21 04:46 PM

The issue with accumulators is that by default they expect ad-hoc reporting, i.e. periodic dial in from PSTN, backfill with DNP3, etc, so they handle reset based on receiving data after the reset period ends. Couple that with MO being a dynamic period (28, 29, 30, 31 days as necessary) it doesn't like that.

 

A few ways I can think of, each has their own advantage and disadvantage:

 

1. You do the accumulator daily and then at the end of each month do the maths. This doesn't work too well on things like mean, but min and max should be fine

 

2. Run some logic on the 1st (not necessarily at midnight to allow data collection?) to query the historic the past month and do the maths. Not very scaleable and depending on how much data you're storing may impact performance.

 

3. Enable the continuous box and this enables the Reset method. Then on a schedule (or any other preferred way) call that method at midnight on the reset. You lose any data being considered in the calc that comes in after the reset for the previous period (so not an issue with modbus... most other protocols will likely have a timing issue even if its just a couple of seconds)

 

4. Can also use third party programs like Crystal Reports to do the maths?

 

5. Run a SYSTEM() command to do something (I mean technically you could call some app that does the calcs, but not sure its the best way πŸ™‚ )

 

See Answer In Context

  • Tags:
  • english
Reply

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

Replies 2
AdamWoodland
AdamWoodland Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: β€Ž2020-06-21 04:46 PM

0 Likes
1
2080
  • 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: β€Ž2020-06-21 04:46 PM

The issue with accumulators is that by default they expect ad-hoc reporting, i.e. periodic dial in from PSTN, backfill with DNP3, etc, so they handle reset based on receiving data after the reset period ends. Couple that with MO being a dynamic period (28, 29, 30, 31 days as necessary) it doesn't like that.

 

A few ways I can think of, each has their own advantage and disadvantage:

 

1. You do the accumulator daily and then at the end of each month do the maths. This doesn't work too well on things like mean, but min and max should be fine

 

2. Run some logic on the 1st (not necessarily at midnight to allow data collection?) to query the historic the past month and do the maths. Not very scaleable and depending on how much data you're storing may impact performance.

 

3. Enable the continuous box and this enables the Reset method. Then on a schedule (or any other preferred way) call that method at midnight on the reset. You lose any data being considered in the calc that comes in after the reset for the previous period (so not an issue with modbus... most other protocols will likely have a timing issue even if its just a couple of seconds)

 

4. Can also use third party programs like Crystal Reports to do the maths?

 

5. Run a SYSTEM() command to do something (I mean technically you could call some app that does the calcs, but not sure its the best way πŸ™‚ )

 

  • Tags:
  • english
Reply

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

BevanWeiss
Spock BevanWeiss
Spock

Posted: β€Ž2020-06-22 04:29 PM

In response to AdamWoodland
0 Likes
0
2069
  • 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: β€Ž2020-06-22 04:29 PM

@AdamWoodland I would have thought that backfilling aspect wouldn't really be any trickier than backfilling stuff from yesterday in a daily totaliser... and there's no issue with that.

 

I don't want to use continuous, as it will be coupled to DNP3 points, so having it point update based seems like the nicest fit.

And the ad-hoc viewing is precisely why I wanted to use the accumulator object rather than just a report type of analysis...

 

I absolutely forgot that reset isn't available if continuous isn't set... that will be quite the problem for my monthly/yearly reset logic.

 

The RTU generated Daily Starts / Runtime is what I intended on using as the source for the accumulator.  I'm not sure how these resetting each midnight will impact on things like Crystal Reports.  Certainly a delta across a month would not be valid, nor would a max, nor an integration.

 

I really did like the idea of the accumulator tracking the reported changes to the Daily Runtime / Starts.  i.e. each time a Daily Start occurs, then the Monthly Starts accumulator should have incremented also (ditto for the Yearly).

 

Is there really any 'funky' logic in the accumulator that it couldn't just have a trigger to say 'Start new period'?

(i.e. all timestamp deltas before this new period timestamp, all the new ones go into the new period... and I'm thinking that it would just be a Method that could be called via a Schedule object.. that way all the monthly / yearly / weekly / every second Saturday requirements would be met).


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
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