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
  • :
  • How to set quality to bad when Modbus is down?
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
    • 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
      • 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: 
49224members
Join Now
242436posts
Join Now

How to set quality to bad when Modbus is down?

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
akhadeev
Crewman akhadeev
Crewman
‎2019-12-11 05:51 AM
0 Likes
14
2649
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-12-11 05:51 AM

How to set quality to bad when Modbus is down?

Hello everyone.

 

I've noticed that my ClearSCADA (80.6914) don't write to archive value with bad qulity for modbus points when connection to modbus server is lost. 

 

Here I shut down modbus server and point has quality  "Last Known Value".

2019-12-11_15-34-03.png

 

And here it started again.

2019-12-11_15-42-25.png

 

But in Historic List there are only Good values.

2019-12-11_15-44-09.png

 

It's a problem. I need to see bad quality values in archive when connection was lost.

As a solution I can make for every modbus point a couple Internal point and a logic that will copy values with quality. This Logic will link quality in internal Point to Modbus Scaner Status. But maybe there is more easy way?

 

Also I've found interesting option in Advanced Modbus - Direct Outstation - Log Historic Value On Communication Failure. It sounds as that I need. I just can't make this advanced thing work.

Solved! Go to Solution.

Labels
  • drivers
Share
Reply

Accepted Solutions
AndrewScott
Lieutenant AndrewScott
Lieutenant
‎2019-12-12 02:17 AM
0 Likes
6
2596
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-12-12 02:17 AM

Re: How to set quality to bad when Modbus is down?

The channel is out of service in "am.sde", unlike the screenshot above.

Once I put the channel into service this configuration works for me.

 

Given that the channel state is showing "Disconnected" it looks like the Advanced Modbus driver isn't actually running. You can check if the driver is running from the "General \ Modules" page of the Server Status tool on the main server, as well as starting and stopping the driver.


Andrew Scott, Lead Engineer, AVEVA

See Answer In Context

Share
Reply
  • All forum topics
  • Previous Topic
  • Next Topic
14 Replies 14
sbeadle
Sisko sbeadle Sisko
Sisko
‎2019-12-11 06:33 AM
0 Likes
13
2643
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-12-11 06:33 AM

Re: How to set quality to bad when Modbus is down?

The general principles of Remote SCADA (unwritten!) are that historic data should only be logged if it came from the device (and the quality reflects what the device's opinion of the signal was - e.g. if it was from a connected instrument and the instrument failed).

 

However, the Advanced drivers support adding single historic values when devices fail. I do recommend you use Advanced drivers when available for the protocol you want for all sorts of reasons. 

Share
Reply
akhadeev
Crewman akhadeev
Crewman
‎2019-12-11 07:16 AM
0 Likes
12
2640
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-12-11 07:16 AM

Re: How to set quality to bad when Modbus is down?

Oh, then I just need some help with Advanced.

 

I have a simple modbus slave simulator that runs on my local computer just for test. 

 

2019-12-11_17-54-37.png

 

With simple modbus driver i see it without any troubles. So I need to connect to it with advanced. As help says it means link Dircet Channel - Direct Outstation Set - Direct Outstation - Point.

 

1. My Direct Channel settings

2019-12-11_17-52-37.png

 

2019-12-11_17-53-46.png

2019-12-11_17-56-33.png

 

2019-12-11_17-57-38.png

 

2. My Direct Outstation Set settings

2019-12-11_17-58-55.png

 

2019-12-11_17-59-20.png

 

3. My Generic Direct Outstation settings

2019-12-11_18-00-39.png2019-12-11_18-01-34.png

 

Direct and PSTN - all checkboxes are off.

2019-12-11_18-03-31.png

 

4. And finally Generic Analog Input Point

 

2019-12-11_18-08-24.png

 

 So that I have now.

 

2019-12-11_18-06-16.png

2019-12-11_18-09-23.png

 

2019-12-11_18-10-09.png

 

2019-12-11_18-11-11.png

 

I just can't understand what's wrong. For example here is config for Simple Modbus that works (when InService is on).

 

1. Scaner

2019-12-11_18-13-10.png

 

2019-12-11_18-14-33.png

 

2. Analog Point

2019-12-11_18-15-32.png

 

Share
Reply
Hardin4019
Lieutenant Hardin4019
Lieutenant
‎2019-12-11 10:02 AM
0 Likes
0
2631
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-12-11 10:02 AM

Re: How to set quality to bad when Modbus is down?

Your original issue, your historic list doesn't show any values recorded during the outage, so you will never see the "Last Known Value". The trend only updates connecting the last value, before the outage and the first value after the outage due to a setting. In the trend, you can change the point's "Trace Style" to Line, or Step Last. Step last will show the same flat line trace that you were seeing during the outage.

 

 

Unrelated. It is possible to pass the quality of a Modbus point to an internal point by connecting ModbusPointName.CurrentQuality to InternalPointName.PresetQuality via some logic. I do this regularly when I need to total together several flow rates or volumes but need to maintain the ability of the internal point to show the quality of the Modbus points to indicate when an outstation is out of communications where my Internal Total is displayed. 

 

 

Share
Reply
geoffpatton
Lieutenant geoffpatton
Lieutenant
‎2019-12-11 02:19 PM
0 Likes
10
2624
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-12-11 02:19 PM

Re: How to set quality to bad when Modbus is down?

That all looks correct.

I even tried it on mine with a Modbus simulator.

You could try 127.0.0.1 instead of localhost

 

Make sure the Simple Modbus scanner is not in service at the same time. Maybe your simulator only supports one connection.

 

You can enable Comms Logging on the Channel and see if there is anything in the log to give you an answer to what the problem is.

 

Your Modbus simulator may also have logging. Mine does and I could see connection requests but then it closed the port. On the Channel, I forgot to set Modbus to TCP, it was still on RTU.

Share
Reply
akhadeev
Crewman akhadeev
Crewman
‎2019-12-11 11:05 PM
0 Likes
9
2613
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-12-11 11:05 PM

Re: How to set quality to bad when Modbus is down?

Of course I switched off InService for Simple Modbus Scanner when tried Advanced. Modbus slave don't even see it's requests int it's log. I just don't understand why this thing doesn't work.

I keep in mind this model with AP (.CurrentQuality) -> IP (.PresetQuality) and it's the only way I see as solution. But my DB will double in size and there are more redundant work to do .

Share
Reply
sbeadle
Sisko sbeadle Sisko
Sisko
‎2019-12-12 12:46 AM
0 Likes
8
2610
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-12-12 12:46 AM

Re: How to set quality to bad when Modbus is down?

Would you mind posting an sde export of the config?

Have you contacted support?

Share
Reply
akhadeev
Crewman akhadeev
Crewman
‎2019-12-12 01:08 AM
0 Likes
7
2607
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-12-12 01:08 AM

Re: How to set quality to bad when Modbus is down?

No problem, these my two groups. am - Advanced Modbus, sm - Simple Modbus.

I though that problem is because my lack of understanding in reading help so didn't ask support still.

 

 

 

Share
Reply
AndrewScott
Lieutenant AndrewScott
Lieutenant
‎2019-12-12 02:17 AM
0 Likes
6
2597
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-12-12 02:17 AM

Re: How to set quality to bad when Modbus is down?

The channel is out of service in "am.sde", unlike the screenshot above.

Once I put the channel into service this configuration works for me.

 

Given that the channel state is showing "Disconnected" it looks like the Advanced Modbus driver isn't actually running. You can check if the driver is running from the "General \ Modules" page of the Server Status tool on the main server, as well as starting and stopping the driver.


Andrew Scott, Lead Engineer, AVEVA

See Answer In Context

Share
Reply
sbeadle
Sisko sbeadle Sisko
Sisko
‎2019-12-12 02:36 AM
0 Likes
5
2586
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-12-12 02:36 AM

Re: How to set quality to bad when Modbus is down?

Thanks Andrew - you beat me to it!

Note that the analogue point had a Retrieval Interval of 'Continuous' so the driver will be kept busy polling - choose a suitable interval to match what you need.

You also do not have a Scan Group (Confidence Interval), which may be as required. This interval 'guarantees' update of value/time/quality at this interval. Be very careful to set this at the slowest rate needed, as on larger systems you can impair performance.

Share
Reply
sbeadle
Sisko sbeadle Sisko
Sisko
‎2019-12-12 02:44 AM
0 Likes
0
2580
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-12-12 02:44 AM

Re: How to set quality to bad when Modbus is down?

Example master and slave attached to this posting.

Attachments
Modbus Master Adv and Slave.zip
Share
Reply
akhadeev
Crewman akhadeev
Crewman
‎2019-12-12 02:48 AM
0 Likes
3
2579
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-12-12 02:48 AM

Re: How to set quality to bad when Modbus is down?

Yap, I switched InService On/Off in advanced and simple, so it could happens in the export I gave. 

But I have found. It's just....License....

As I understand, I need SCADAPackModbus License, that I don't have. 

Configuration above will work with appropriate license very well.

 

Thank you very much for help guys. I'm really appreciate it. 

 

Share
Reply
AndrewScott
Lieutenant AndrewScott
Lieutenant
‎2019-12-12 03:21 AM
0 Likes
2
2572
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-12-12 03:21 AM

Re: How to set quality to bad when Modbus is down?

If you're only using generic Modbus then you can just uninstall the unlicensed SCADAPack Modbus extension driver rather than obtaining a licence for it.


Andrew Scott, Lead Engineer, AVEVA
Share
Reply
Hardin4019
Lieutenant Hardin4019
Lieutenant
‎2019-12-12 05:30 AM
0 Likes
1
2566
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-12-12 05:30 AM

Re: How to set quality to bad when Modbus is down?

I can confirm from my own system that even using Advanced Modbus, Generic Analog point with Scan Group (Confidence Interval) turned on, that no values are recorded in the Historic List while the Outstation is out of comms.

Share
Reply
akhadeev
Crewman akhadeev
Crewman
‎2019-12-12 09:46 PM
0 Likes
0
2515
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-12-12 09:46 PM

Re: How to set quality to bad when Modbus is down?

Here is that I saw when cut off Modbus Slave and after enabled it.

 

изображение_viber_2019-12-12_13-42-40.jpg

 

Ih HL there are my national chracters but we see that one bad value is colored by violet.

 изображение_viber_2019-12-12_13-43-03.jpg

 

In Generic Direct Outstation enabled Log Historic Value on Communication Failure.

Share
Reply
Related Products
Schneider Electric
EcoStruxure™ Geo SCADA Expert
Top Experts
User Count
BevanWeiss
Admiral BevanWeiss
2
sbeadle
Sisko sbeadle Sisko
1
geoffpatton
Lieutenant geoffpatton
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