Help
  • Get started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Brand Logo
Help
  • Get started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
close
  • Community Home
  • Forums
    • By Topic
    • By Topic
      EcoStruxure Building
      • Field Devices Forum
      • SmartConnector Forum
      EcoStruxure Power & Grid
      • Gateways and Energy Servers
      • Metering & Power Quality
      • Protection & Control
      APC UPS, Critical Power, Cooling and Racks
      • APC UPS Data Center & Enterprise Solutions Forum
      • APC UPS for Home and Office Forum
      EcoStruxure IT
      • EcoStruxure IT forum
      • EcoStruxure IT™ Advisor CFD
      Remote Operations
      • EcoStruxure Geo SCADA Expert Forum
      • Remote Operations Forum
      Industrial Automation
      • Alliance System Integrators Forum
      • AVEVA Plant SCADA Forum
      • CPG Expert Forum DACH
      • EcoStruxure Automation Expert / IEC 61499 Forum
      • Fabrika ve Makina Otomasyonu Çözümleri
      • Harmony Control Customization Forum
      • Industrial Edge Computing Forum
      • Industry Automation and Control Forum
      • Korea Industrial Automation Forum
      • Machine Automation Forum
      • Modicon PAC Forum
      • PLC Club Indonesia
      Schneider Electric Wiser
      • Schneider Electric Wiser Forum
      Power Distribution IEC
      • Eldistribution & Fastighetsautomation
      • Elektrik Tasarım Dağıtım ve Uygulama Çözümleri
      • Paneelbouw & Energie Distributie
      • Power Distribution and Digital
      • Solutions for Motor Management
      • Specifiers Club ZA Forum
      • Електропроектанти България
      Power Distribution NEMA
      • Power Monitoring and Energy Automation NAM
      Power Distribution Software
      • EcoStruxure Power Design Forum
      • LayoutFAST User Group Forum
      Energy & Sustainability Services
      • Green Building Scoring and Certification Forum
      Light and Room Control
      • SpaceLogic C-Bus Forum
      Solutions for your Business
      • Solutions for your Business Forum
      Support
      • Ask the Community
  • Knowledge Center
    • Building Automation Knowledge Base
    • Remote Operations Devices Knowledge Base
    • Geo SCADA Knowledge Base
    • Industrial Automation How-to videos
    • Digital E-books
    • Success Stories Corner
    • EcoStruxure IT Help Center
  • Events & Webinars
    • All Events
    • Innovation Talks
    • Innovation Summit
    • Let's Exchange Series
    • Partner Success
    • Process Automation Talks
    • Technology Partners
  • Ideas
    • EcoStruxure Building
      • EcoStruxure Building Advisor Ideas
      Remote Operations
      • EcoStruxure Geo SCADA Expert Ideas
      • Remote Operations Devices Ideas
      Industrial Automation
      • Modicon Ideas & new features
  • Blogs
    • By Topic
    • By Topic
      EcoStruxure Power & Grid
      • Backstage Access Resources
      EcoStruxure IT
      • EcoStruxure IT™ Advisor CFD
      Remote Operations
      • Remote Operations Blog
      Industrial Automation
      • Industrie du Futur France
      • Industry 4.0 Blog
      Power Distribution NEMA
      • NEMA Power Foundations Blog
      Energy & Sustainability Services
      • Active Energy Management Blog
      Light and Room Control
      • KNX Blog
      Knowledge Center
      • Digital E-books
      • Geo SCADA Knowledge Base
      • Industrial Automation How-to videos
      • Remote Operations Devices Knowledge Base
      • Success Stories Corner
  • companyImpact

Important Announcement: Community Back to Full Functionality

Dear Members, we are thrilled to announce that our Community is back to full functionality and that posts publication is now enabled again! We appreciate your patience during the last weeks. Learn more about our Community Guidelines. Thank you, Schneider Electric Community Team.

EGX100MG stops communicating with ModbusRTU devices when even 1 of them is powered off

Metering & Power Quality

Schneider Electric support forum about Power Meters (ION, PowerTag, PowerLogic) and Power Quality from design, implementation to troubleshooting and more.

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
  • Communities
  • EcoStruxure Power & Grid
  • Metering & Power Quality
  • EGX100MG stops communicating with ModbusRTU devices when even 1 of them is powered off
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
Charles_Murison
Picard Charles_Murison Picard
299
Ramasamy_N
Commander Ramasamy_N Commander
75
DanL
Captain DanL Captain
72
Robert_Lee
Captain Robert_Lee Captain
67
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to Metering & Power Quality
Solved
Aafaq_SAH
Ensign Aafaq_SAH
Ensign

Posted: ‎2022-10-20 11:18 PM . Last Modified: ‎2022-10-20 11:20 PM

1 Like
8
853
  • 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.

‎2022-10-20 11:18 PM

EGX100MG stops communicating with ModbusRTU devices when even 1 of them is powered off

Hi,

 

I'm using an EGX100MG to communicate data from ModbusRTU based power meters (ION6200) onto a PLC. The PLC is the modbus master and uses ModbusTCP to connect to the gateway whereas the power meters are modbus slaves and I have daisychained them onto the RS485 port of the EGX. The way the PLC establishes connections with the slave devices is by opening separate ModbusTCP connections through the gateway which is why the statistics page of the EGX shows 17 active connections as I have 17 slave devices.

 

Everything works perfectly but as soon as I power off even 1 of the power meters, communication with the rest of the slave devices terminates as well. The active connections start showing 32 (which is the maximum number of connections the EGX can open) and no data is retrieved by any slave device. As soon as I turn the power meter back on, everything starts working again. 

 

I'm new to this kind of work but I'm pretty sure that this shouldn't happen; if one of the slave devices gets disconnected, the rest should still communicate. Could the issue be from the PLC side? Or have I missed some configuration setting in the EGX? Any help would be appreciated.

 

Kind Regards,

Aafaq Shahzad.

Tags (8)
  • Tags:
  • egx100
  • EGX100MG
  • english
  • ion6200
  • modbus
  • ModbusRTU
  • modbustcp
  • plc
Reply
  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
Charles_Murison
Picard Charles_Murison Picard
Picard

Posted: ‎2022-10-25 09:15 AM

0 Likes
1
721
  • 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.

‎2022-10-25 09:15 AM

Hello @Aafaq_SAH ,

 

Want to have EGX timeout as low as possible to keep communications up and PLC with timeout as high as possible. PLC timeout has to be greater than EGX timeout.

 

Regards,

Charles

L4 Prime for Advanced metering and Utilities

See Answer In Context

Tags (1)
  • Tags:
  • english
Reply
Replies 8
Charles_Murison
Picard Charles_Murison Picard
Picard

Posted: ‎2022-10-23 10:15 PM

0 Likes
7
783
  • 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.

‎2022-10-23 10:15 PM

Hello @Aafaq_SAH ,

 

The only way to know for sure what is happening would be to put a serial monitor on the RS-485 loop as well as having switch port mirror traffic to a computer running packet capture software like Wireshark. This is not always possible, timely or cost effective. 

 

What may be happening is timeouts. Will give an example of 3 devices but this can extend to multiple. Static condition is modbus TCP request comes in, EGX converts this to serial request and transmits on the serial loop. Meter A gets request and responds. Same for meter B and meter C. Because each unit ID has a separate connection, it is possible multiple requests come in at the same time or at least before meter A has had a chance to respond. The EGX will store this request in a buffer to send out after Meter A has responded.

 

Now Imagen that Meter A is offline, However request for Meter A still comes in. EGX sends request and waits for the response. The timeout is a setting on the EGX and I believe 3 seconds is default. So 3 seconds have gone by before EGX has sent the no response from downstream modbus Exception. During this time, any and all requests for meter B and C are in the buffer waiting to be sent. Depending on the PLC programming, it is possible that the original requests have timed out before the EGX has even sent the response and PLC will try again.

 

What the PLC does next I can't say, one possibility is PLC thinks connection is broken so starts a new session with a new request, this also times out, etc., etc. Repeat until all connections are used up.

 

Since there is only 1 serial line, having multiple TCP connections does not improve performance much, yes you may see a small benefit this is still quite small and could lead to other troubles. If only 1 connection is used, likely PLC will know not to try talking to other devices until Mete A responds.

 

Again I have not see serial traffic or packet captures so this is only a guess. Having 1 device on serial loop down can take 90%+ of the bandwidth just waiting for device to time out.

 

Regards,

Charles

L4 Prime for Advanced metering and Utilities
Tags (1)
  • Tags:
  • english
Reply
Aafaq_SAH
Ensign Aafaq_SAH
Ensign

Posted: ‎2022-10-23 10:48 PM

0 Likes
6
778
  • 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.

‎2022-10-23 10:48 PM

Thanks for the feedback @Charles_Murison.

 

You are right. The timeout on the EGX is set to 3 seconds which is the default. However, in the PLC program, each device has been given a timeout of 2 seconds. So I think the PLC times out the message request before the gateway can send a timout response to the PLC and therefore the PLC tries again and again continously which causes all other devices to keep on waiting. 

 

I think this might be the issue but am not fully sure. Should the timeout for each device in the PLC program be more or should it be less than the timeout set in the gateway?

 

Regards,

Aafaq Shahzad.

Tags (1)
  • Tags:
  • english
Reply
Charles_Murison
Picard Charles_Murison Picard
Picard

Posted: ‎2022-10-23 10:53 PM

0 Likes
5
776
  • 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.

‎2022-10-23 10:53 PM

Hello @Aafaq_SAH ,

 

Timeout in the PLC ideally would be gateway timeout * number of devices + small buffer. However this is not always possible, especially if there are a lot of devices. At a minimum the PLC timeout needs to be greater than gateway timeout. Just imagen if 16 of the 17 devices are timing out and 17th device is the last request in the queue. That is a long time required before you can confirm if device is talking or not.

 

Regards,

Charles

L4 Prime for Advanced metering and Utilities
Tags (1)
  • Tags:
  • english
Reply
Aafaq_SAH
Ensign Aafaq_SAH
Ensign

Posted: ‎2022-10-23 11:05 PM

0 Likes
4
772
  • 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.

‎2022-10-23 11:05 PM

Hi @Charles_Murison 

 

But I think that is true if the PLC was treating the devices as ModbusRTU. In my case, the PLC is treating the devices as ModbusTCP (as the PLC does not know that the devices are ModbusRTU over gateway). That is why the PLC establishes separate connections to each as ModbusTCP allows this functionality (which is also why the active connections in the statistics of the EGX show 17). So in my case, I think I should increase the timeout of each device from 2 seconds to 5 seconds in the PLC.

 

Any thoughts?

 

Best Regards,

Aafaq Shahzad.

 

 

Tags (1)
  • Tags:
  • english
Reply
Charles_Murison
Picard Charles_Murison Picard
Picard

Posted: ‎2022-10-24 08:51 AM

0 Likes
3
755
  • 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.

‎2022-10-24 08:51 AM

Hello @Aafaq_SAH ,

 

5 seconds would be a minimum. Imagen if 3 meters on the loop are down, the back to back timeouts would be 9 seconds at a minimum. 5 seconds would give you buffer for 1 device being down. 50+ seconds would give you 16 devices going down. Each setting has own pros and cons.

 

Higher timeout gives more reliability but much longer response time to confirm communications are down. Longer timeouts gives quicker response times however has risks if multiple devices are down comms may break.

 

I cannot give you an exact number. Depends on risks acceptable and performance requirements. All I can give you is timeout should be something between 5 and 50 seconds.

 

Regards,

Charles  

L4 Prime for Advanced metering and Utilities
Tags (1)
  • Tags:
  • english
Reply
Aafaq_SAH
Ensign Aafaq_SAH
Ensign

Posted: ‎2022-10-24 09:39 PM

0 Likes
2
737
  • 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.

‎2022-10-24 09:39 PM

Hi @Charles_Murison,

 

I see. But the maximum timeout I can set on the EGX is 10 seconds meaning that I can only tell if 3 devices are down at max. Also, I will have to change the timeout setting in the PLC program to more than 10 seconds for each device otherwise it will keep retrying. So what do I do in this case? I can't decrease the timeout time to less than 2 seconds in the PLC program otherwise the devices start timing out. It seems that I can only know if 3 devices are down at a time. Any more and the devices won't communicate.

 

Best Regards,

Aafaq Shahzad.

Tags (1)
  • Tags:
  • english
Reply
Charles_Murison
Picard Charles_Murison Picard
Picard

Posted: ‎2022-10-25 09:15 AM

0 Likes
1
722
  • 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.

‎2022-10-25 09:15 AM

Hello @Aafaq_SAH ,

 

Want to have EGX timeout as low as possible to keep communications up and PLC with timeout as high as possible. PLC timeout has to be greater than EGX timeout.

 

Regards,

Charles

L4 Prime for Advanced metering and Utilities
Tags (1)
  • Tags:
  • english
Reply
Aafaq_SAH
Ensign Aafaq_SAH
Ensign

Posted: ‎2022-10-25 09:24 PM

0 Likes
0
709
  • 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.

‎2022-10-25 09:24 PM

Hi @Charles_Murison,

 

I understand. I think I can decrease the timeout a little bit to make communication better. Nevertheless, I have a much better understanding of everything now.

 

Thanks a bunch for the help Charles. Have a great day!

 

Kind Regards,

Aafaq Shahzad.

Tags (1)
  • Tags:
  • english
Reply
Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

Additional options
You do not have permission to remove this product association.
 
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 forum after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the forum - 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 © 2023 Schneider Electric, Inc