Sign In Help
Schneider Electric
HelpSign In
Schneider Electric Exchange
  • Home
  • Collaborate
  • Develop
  • Shop
Home Collaborate Develop Shop Log in or Register Help

Invite a Co-worker

Send a co-worker an invite to the Exchange 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
  • Home
  • Collaborate
  • Exchange Community
  • :
  • SCADA & Telemetry Solutions
  • :
  • Geo SCADA Expert Forum
  • :
  • [Imported] how to get a list of the all the dnp events brought back from an outstation for the last hour
Community Menu
  • Forums
    • By Topic
        • EcoStruxure IT
          • EcoStruxure IT forum
        • Industrial Automation
          • Industry Automation and Control Forum
          • Alliance System Integrators Forum
          • Machine Solutions in the Digital Transformation
          • EcoStruxure Automation Expert / IEC 61499 Forum
          • Industrial Edge Computing Forum
          • Level and Pressure Instrumentation Forum
          • Modicon User Group
          • PLC Club Indonesia
          • SEE Automation Club Forum
          • Fabrika ve Makina Otomasyonu Çözümleri
          • Форум по промышленной автоматизации СНГ
        • SCADA & Telemetry Solutions
          • Geo SCADA Expert Forum
          • SCADA and Telemetry Devices Forum
        • Power Distribution IEC
          • Power Distribution and Digital
          • Power Standards & Regulations
          • Paneelbouw & Energie Distributie
        • Power Distribution Softwares
          • EcoStruxure Power Design Forum
          • SEE Electrical Building+ Forum
          • LayoutFAST User Group Forum
        • Solutions for your Business
          • Solutions for Food & Beverage Forum
          • Solutions for Healthcare Forum
    • By Segment
        • Food & Beverage
          • Solutions for Food & Beverage Forum
        • Healthcare
          • Solutions for Healthcare Forum
      • EcoStruxure IT
        • EcoStruxure IT forum
      • Industrial Automation
        • Industry Automation and Control Forum
        • Alliance System Integrators Forum
        • Machine Solutions in the Digital Transformation
        • EcoStruxure Automation Expert / IEC 61499 Forum
        • Industrial Edge Computing Forum
        • Level and Pressure Instrumentation Forum
        • Modicon User Group
        • PLC Club Indonesia
        • SEE Automation Club Forum
        • Fabrika ve Makina Otomasyonu Çözümleri
        • Форум по промышленной автоматизации СНГ
      • SCADA & Telemetry Solutions
        • Geo SCADA Expert Forum
        • SCADA and Telemetry Devices Forum
      • Power Distribution IEC
        • Power Distribution and Digital
        • Power Standards & Regulations
        • Paneelbouw & Energie Distributie
      • Power Distribution Softwares
        • EcoStruxure Power Design Forum
        • SEE Electrical Building+ Forum
        • LayoutFAST User Group Forum
      • Solutions for your Business
        • Solutions for Food & Beverage Forum
        • Solutions for Healthcare Forum
      • Food & Beverage
        • Solutions for Food & Beverage Forum
      • Healthcare
        • Solutions for Healthcare Forum
  • Blogs
    • By Topic
        • Industrial Automation
          • Industrial Edge Computing Blog
          • Industry 4.0 Blog
          • Industrie du Futur France
        • SCADA & Telemetry Solutions
          • SCADA and Telemetry Blog
        • Power Distribution IEC
          • Power Events & Webinars
          • Power Foundations Blog
        • Power Distribution NEMA
          • NEMA Power Foundations Blog
        • Power Distribution Softwares
          • EcoStruxure Power Design Blog
          • SEE Electrical Building+ Blog
        • Solutions for your Business
          • Solutions for Food & Beverage Blog
          • Solutions for Healthcare Blog
          • Solutions for Retail Blog
        • Community experts & publishers
          • Publishers Community
    • By Segment
        • Food & Beverage
          • Solutions for Food & Beverage Blog
        • Healthcare
          • Solutions for Healthcare Blog
        • Retail
          • Solutions for Retail Blog
      • Industrial Automation
        • Industrial Edge Computing Blog
        • Industry 4.0 Blog
        • Industrie du Futur France
      • SCADA & Telemetry Solutions
        • SCADA and Telemetry Blog
      • Power Distribution IEC
        • Power Events & Webinars
        • Power Foundations Blog
      • Power Distribution NEMA
        • NEMA Power Foundations Blog
      • Power Distribution Softwares
        • EcoStruxure Power Design Blog
        • SEE Electrical Building+ Blog
      • Solutions for your Business
        • Solutions for Food & Beverage Blog
        • Solutions for Healthcare Blog
        • Solutions for Retail Blog
      • Community experts & publishers
        • Publishers Community
      • Food & Beverage
        • Solutions for Food & Beverage Blog
      • Healthcare
        • Solutions for Healthcare Blog
      • Retail
        • Solutions for Retail Blog
  • Ideas
        • Industrial Automation
          • Modicon Ideas & new features
        • SCADA & Telemetry Solutions
          • Geo SCADA Expert Ideas
          • SCADA and Telemetry Devices Ideas
  • Knowledge Center
    • Building Automation Knowledge Base
    • Industrial Automation How-to videos
    • Ask Exchange
    • Digital E-books
    • Success Stories Corner
    • Power Talks
  • Events & Webinars
  • Support
    • User Guide
    • Leaderboard
    • Releases Notes
How can we help?
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: 
49474members
Join Now
242779posts
Join Now

[Imported] how to get a list of the all the dnp events brought back from an outstation for the last hour

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
Solved Go to Solution
Back to Geo SCADA Expert Forum
Solved
sbeadle
Sisko sbeadle Sisko
Sisko
‎2019-11-06 03:07 AM
0 Likes
1
256
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-11-06 03:07 AM

[Imported] how to get a list of the all the dnp events brought back from an outstation for the last hour

>>Message imported from previous forum - Category:ClearSCADA Software<<
User: Roughneck42, originally posted: 2018-12-07 19:40:36 Id:335
hi, new CS user here. A customer has a number of outstations that are creating an unknown number of events per hour. I am looking for a way to get the last hours historic data per point into Excel so that we can see how many events per outstation and per point there are. Any suggestions? FYI there are 22 outstations and about 2000 points in total being logged

Solved! Go to Solution.

Labels
  • SCADA
Share
Reply

Accepted Solutions
sbeadle
Sisko sbeadle Sisko
Sisko
‎2019-11-06 03:08 AM
0 Likes
0
255
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-11-06 03:08 AM

Re: [Imported] how to get a list of the all the dnp events brought back from an outstation for the last hour

>>Responses imported from previous forum


Reply From User: dmercer, posted: 2018-12-09 21:22:37
To get data into excel use can use SQL with either a SQL Export object in the database or by using Querypad.

There are data fields in ClearSCADA 2017R2 for all objects for EventCountCurrentHour and EventCountPreviousHour. I'm not sure in which version this was introduced.

eg.
SELECT FullName, EventCountPreviousHour
FROM CDBObject
WHERE EventCountPreviousHour 0
ORDER BY EventCountPreviousHour DESC

If those aren't there or aren't the right data for what you need, you could add metadata fields to the points, and run logic every hour to take the difference between the process count now and the previous process count and the move the current process count into the metadata field for previous process count.


Reply From User: adamwoodland, posted: 2018-12-09 22:21:36
You can also get the data using CDBHistoricFile, but this works at a weekly level. So what you would need to do is query the latest granule from CDBHistoricFile, and then X minutes later query again and calculate the difference.


Reply From User: sbeadle, posted: 2018-12-10 08:10:54
Some more info to add clarity.
1. Events are event messages. File duration (granule) is 1 hour per file per stream. The comment from [at]dmercer has a query for event counts which applies to such event messages.
2. Historic data are value/time/quality sets for a point. There is 1 file per week per point. (There are outstation fields which count how many values have been written, and also a count on the Historic aggregate, but these are not reset each week).


Reply From User: Roughneck42, posted: 2018-12-11 22:32:35
thank you, I need to clarify that the events I am referring to are DNP3 class events per point. So basically we would like to be able to view a list of the Historic values of each point per outstation with date time stamp going back 5 hours. So query CDBHISTORIC for point name, outstation name, time, value, reasondesc, status, ...


Reply From User: geoffpatton, posted: 2018-12-12 20:34:41
You have to use the point's ID there is no name in CDBHistoric. You can lookup the ID from the CDBPoint table and filter on name or fullname. Should be able to do a join on the ID and RecordID to get the name and values displayed together.

I forgot that you wanted the Outstation CDBPoint won't have that. You will have to use the specific point type tables such as CDNP3ANALOGIN.

I use SQL just enough to forget half of what I did so hopefully I am not confusing you.


Reply From User: BevanWeiss, posted: 2019-01-03 21:30:14
[at]Roughneck42 said:
thank you, I need to clarify that the events I am referring to are DNP3 class events per point. So basically we would like to be able to view a list of the Historic values of each point per outstation with date time stamp going back 5 hours. So query CDBHISTORIC for point name, outstation name, time, value, reasondesc, status, ...

DNP3 Class Events are a bit more hidden by the overall ClearSCADA system. Querying CDBHistoric for just a count of entries over time wouldn't do it, you'd need to filter for only Value Change type entries, otherwise you'll get your Class 0 poll entries (Current Data) also. Which are technically not 'class events'.

What we've done before for a rough figure is to have a calculation point executed periodically and taking the CDNP3OS property values for the various DNP3 polls etc.. then calling Reset Poll Statistics and Reset Point Statistics every midnight.

See Answer In Context

Share
Reply
  • All forum topics
  • Previous Topic
  • Next Topic
1 Reply 1
sbeadle
Sisko sbeadle Sisko
Sisko
‎2019-11-06 03:08 AM
0 Likes
0
256
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-11-06 03:08 AM

Re: [Imported] how to get a list of the all the dnp events brought back from an outstation for the last hour

>>Responses imported from previous forum


Reply From User: dmercer, posted: 2018-12-09 21:22:37
To get data into excel use can use SQL with either a SQL Export object in the database or by using Querypad.

There are data fields in ClearSCADA 2017R2 for all objects for EventCountCurrentHour and EventCountPreviousHour. I'm not sure in which version this was introduced.

eg.
SELECT FullName, EventCountPreviousHour
FROM CDBObject
WHERE EventCountPreviousHour 0
ORDER BY EventCountPreviousHour DESC

If those aren't there or aren't the right data for what you need, you could add metadata fields to the points, and run logic every hour to take the difference between the process count now and the previous process count and the move the current process count into the metadata field for previous process count.


Reply From User: adamwoodland, posted: 2018-12-09 22:21:36
You can also get the data using CDBHistoricFile, but this works at a weekly level. So what you would need to do is query the latest granule from CDBHistoricFile, and then X minutes later query again and calculate the difference.


Reply From User: sbeadle, posted: 2018-12-10 08:10:54
Some more info to add clarity.
1. Events are event messages. File duration (granule) is 1 hour per file per stream. The comment from [at]dmercer has a query for event counts which applies to such event messages.
2. Historic data are value/time/quality sets for a point. There is 1 file per week per point. (There are outstation fields which count how many values have been written, and also a count on the Historic aggregate, but these are not reset each week).


Reply From User: Roughneck42, posted: 2018-12-11 22:32:35
thank you, I need to clarify that the events I am referring to are DNP3 class events per point. So basically we would like to be able to view a list of the Historic values of each point per outstation with date time stamp going back 5 hours. So query CDBHISTORIC for point name, outstation name, time, value, reasondesc, status, ...


Reply From User: geoffpatton, posted: 2018-12-12 20:34:41
You have to use the point's ID there is no name in CDBHistoric. You can lookup the ID from the CDBPoint table and filter on name or fullname. Should be able to do a join on the ID and RecordID to get the name and values displayed together.

I forgot that you wanted the Outstation CDBPoint won't have that. You will have to use the specific point type tables such as CDNP3ANALOGIN.

I use SQL just enough to forget half of what I did so hopefully I am not confusing you.


Reply From User: BevanWeiss, posted: 2019-01-03 21:30:14
[at]Roughneck42 said:
thank you, I need to clarify that the events I am referring to are DNP3 class events per point. So basically we would like to be able to view a list of the Historic values of each point per outstation with date time stamp going back 5 hours. So query CDBHISTORIC for point name, outstation name, time, value, reasondesc, status, ...

DNP3 Class Events are a bit more hidden by the overall ClearSCADA system. Querying CDBHistoric for just a count of entries over time wouldn't do it, you'd need to filter for only Value Change type entries, otherwise you'll get your Class 0 poll entries (Current Data) also. Which are technically not 'class events'.

What we've done before for a rough figure is to have a calculation point executed periodically and taking the CDNP3OS property values for the various DNP3 polls etc.. then calling Reset Poll Statistics and Reset Point Statistics every midnight.

See Answer In Context

Share
Reply
Related Products
Schneider Electric
EcoStruxure™ Geo SCADA Expert
Top Experts
User Count
sbeadle
Sisko sbeadle Sisko
1
BevanWeiss
Admiral BevanWeiss
1
See More Top Experts
Find a Service Provider
Find a certified partner to help you address your integration, installation, maintenance and project needs.
View all Providers
Support

Have a question? Please contact us with details, and we will respond.

Contact Us
FAQ

Look through existing questions to find popular answers.

Learn More
About

Want to know more about Exchange and its possibilities?

Learn More

Full access is just steps away!

Join Exchange for FREE and get unlimited access to our global community of experts.

Connect with Peers & Experts

Discuss challenges in energy and automation with 30,000+ experts and peers.

Get Support in Our Knowledge Base

Find answers in 10,000+ support articles to help solve your product and business challenges.

Ask Questions. Give Solutions

Find peer based solutions to your questions. Provide answers for fellow community members!

Register today for FREE

Register Now

Already have an account?Log in

About Us FAQ Terms & Conditions Privacy Notice Change your cookie settings
©2020, Schneider Electric