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

We Value Your Feedback!
Could you please spare a few minutes to share your thoughts on Cloud Connected vs On-Premise Services. Your feedback can help us shape the future of services.
Learn more about the survey or Click here to Launch the survey
Schneider Electric Services Innovation Team!

M580, READ_VAR, time out after working for more than 8 hours

Modicon PAC Forum

A forum for topics related to the scope of Modicon PAC offers and ecosystem along the whole lifecycle: Modicon M580 and 340, EcoStruxure Control Expert, EcoStruxure Process Expert (Unity Pro) 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
  • Schneider Electric Community
  • Industrial Automation
  • Modicon PAC Forum
  • M580, READ_VAR, time out after working for more than 8 hours
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
MatthewM
Lt. Commander MatthewM
8
RoozeeR
Lt. Commander RoozeeR Lt. Commander
7
Trinxs1
Lt. Commander Trinxs1 Lt. Commander
6
ciupol
Lieutenant ciupol
6
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to Modicon PAC Forum
plcode
Crewman plcode
Crewman

Posted: ‎2025-03-03 06:35 AM

0 Likes
5
500
  • 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: ‎2025-03-03 06:35 AM

M580, READ_VAR, time out after working for more than 8 hours

Hello community,

 

Rack setup:

BMEP584040, firmware v03.20

BMENOC0301, firmware v2.22

 

Having a state machine polling two distinct holding registers from a modbus tcp slave using a single READ_VAR block by indexing request parameters. The block is edge triggered by state number and NOT activity bit. 

 

The block consistently fails with communication report 16#01 (exchange stop on timeout) after ~8 hours of successful communication. Activity bit works as expected, goes true for GEST timeout period, then falls with request timeout report. The only way to recover communication is to power cycle PLC or slave.

 

I have tried the same logic using PLC service port and all NOC ports, the behavior is the same. Modbus slave is responsive when the error kicks in, I have tested it with a master simulator every single time, slave is not the problem.

 

I think I'm not hitting the READ_VAR block limit since I'm using a single block, my guess is that somehow tcp sockets are being exhausted after several hours but I'm running out of ideas on how to troubleshoot this.

 

Please advise.

Thanks.

 

image.png

 

 

 

Labels
  • Labels:
  • 02. Modicon M580 ePAC
  • 05. Networking & Communication
  • 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
Replies 5
plcode
Crewman plcode
Crewman

Posted: ‎2025-03-03 09:17 PM

0 Likes
0
498
  • 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: ‎2025-03-03 09:17 PM

Managed to capture the exact moment when communication fails using wireshark. Request was retransmitted several times by the modbus master (READ_VAR) and received duplicated ACK's from slave, after that, every single request goes to timeout with communication report value of 16#01 even though the slave is correctly responding to the request.

 

Tried changing slave ip address hoping that the PLC would close the connection but for my surprise, the PLC keeps the connection alive by sending a TCP keep-alive every 30 seconds. 

 

Is there a DFB or EF that can be used to close the TCP connection?

 

Thanks.

wireshark dup ack.png

Reply

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

dnordenberg1
Lieutenant dnordenberg1
Lieutenant

Posted: ‎2025-03-04 12:03 AM

0 Likes
1
473
  • 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: ‎2025-03-04 12:03 AM

Tried the cancel bit in GEST? This definitely sounds like a bug as this should not be necessary.

Btw symptom sounds a bit similar to https://community.se.com/t5/Modicon-PAC-Forum/Modbus-Tcp-ip-configuration-for-Immr-relay/m-p/501809#...

 

Reply

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

plcode
Crewman plcode
Crewman

Posted: ‎2025-03-04 07:28 AM

In response to dnordenberg1
0 Likes
0
443
  • 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: ‎2025-03-04 07:28 AM

Yes tried cancel bit in GEST and also CANCEL function without success. Per the documentation, cancel bit just cancels an on-going transaction but do not close the underlying TCP connection, also confirmed using wireshark, that TCP connection is kept alive by the PLC by sending a TCP keep-alive packet every 30 seconds.

Reply

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

dnordenberg1
Lieutenant dnordenberg1
Lieutenant

Posted: ‎2025-03-04 10:48 PM

0 Likes
0
434
  • 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: ‎2025-03-04 10:48 PM

I would contact Schneider support so they can escalate this and maybe pass it on to the developers.

But I would try 4.30 firmware first, not that it fix something that comes to my mind but it would probably be a thing they want you to do so they don't need to dig in older code that might have been changed anyway. There was a big code change 3.x->4.x so it might even be fixed without being explicitly mentioned in release notes. Otherwise 4.x is mostly about security features and I would now consider 4.x very stable, early version shortcomings have been fixed.

Reply

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

MatthewM
Lt. Commander MatthewM
Lt. Commander

Posted: ‎2025-03-06 11:56 AM . Last Modified: ‎2025-03-06 12:03 PM

0 Likes
0
386
  • 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: ‎2025-03-06 11:56 AM . Last Modified: ‎2025-03-06 12:03 PM

Good job on the analysis.  I can't see your snips, but I can imagine a bit what your data looks.

 

This is quite unusual, and I am going to offer some information and thoughts that might help.

 

We do work on several large sites running similar if not the same FW versions of CPU and NOCs, using WRITE_VARs for peer to peer comms on combinations of both the CPU and NOC cards.  ECE v14 and v15.  These are solid and the comms does not fall over.

1.  If the PLC architecture, FW, and SW versions are the same, why does the WRITE_VAR never fail?  Perhaps the issues could be with the READ_VAR FB as opposed to the hardware or FW?  What version of the READ_VAR FB is in your project?

2.  Because of what you have caught with Wireshark, it suggests to me that it may be deeper than the READ_VAR FB and sit somewhere with the CPU or NOC management of the connection.  But that disagrees with point 1 above because the WRITE_VARs have never (to my knowledge) failed without just cause (like network outage).

 

We have also used READ_VARs extensively (on M340s and Premiums mainly, before the M580 was available), and had not known of any issues until recently where one site mentioned to me that they were having regular issues with READ_VARs on a M340 to a remote device (via fiber, serial and radio link!), and had to make use of the cancel bit.  I have not dug into that deeper but as far as I know it worked fine for many years, and I think it is more likely flakey radio comms that is the issue there.

 

Can you jump on the web page (you may have to enable it first) for the CPU/NOC and see the list of connections it has open?

 

And to confirm, is this a single CPU or part of a hot standby arrangement?  Some other forum discussions suggest issues with the READ_VAR in hot standby if the variables are not configured correctly for synchronization.

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