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

Communication Freeze in M340 PLC with Modbus Device Using READ_VAR Block

Industry Automation and Control Forum

This forum is addressing industrial automation design & engineering, operations, asset performance, cyber security and digital transformation for Plants & Machines.

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
  • Industry Automation and Control Forum
  • Communication Freeze in M340 PLC with Modbus Device Using READ_VAR Block
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
Bastian_Schmitz
Admiral Bastian_Schmitz Admiral
32
LeTomas
Lt. Commander LeTomas Lt. Commander
11
RoozeeR
Lt. Commander RoozeeR Lt. Commander
6
JerryBartlemay
Lieutenant JG JerryBartlemay Lieutenant JG
6
View All
Related Products
product field
Schneider Electric
Modicon M340

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to Industry Automation and Control Forum
loborichardson
loborichardson
Cadet

Posted: ‎2024-11-12 05:08 AM

0 Likes
3
1244
  • 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: ‎2024-11-12 05:08 AM

Communication Freeze in M340 PLC with Modbus Device Using READ_VAR Block

Hi everyone ,

I'm new to Schneider PLC and am working on setting up communication between an M340 PLC and a third-party Modbus device using the READ_VAR block. The block is triggered by the system clock bit %S6. The configuration generally works well, and I can read data under normal conditions. However, when there’s a break in communication—such as if the PLC or Modbus device is powered off or the communication cable is disconnected—the communication freezes and won’t automatically restart. To re-establish communication, I either have to set the PLC to STOP and then RUN mode or redownload the program. Upon checking the diagnostic values, I noticed that the transaction ID remains unchanged, and all other parameters are set to 0. Any insights or advice from experts would be greatly appreciated

Labels
  • Labels:
  • Process Automation Talks
  • 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 3
Michael_Chan
Commander Michael_Chan Commander
Commander

Posted: ‎2024-11-13 08:44 PM

2 Likes
1
1217
  • 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: ‎2024-11-13 08:44 PM

Hi,

It sounds like you're encountering a common issue with the READ_VAR block in the M340 PLC when communication with the Modbus device is interrupted. Some insights and potential solutions to help you troubleshoot and resolve the freezing issue:

1) Timeout Settings: Ensure that you have set a proper timeout value in the GEST structure of the READ_VAR block. If the timeout is set to zero, the block will never timeout, which can lead to the communication freezing when a disconnection occurs. A typical timeout value is around 100-500 ms.

2) Resetting the GEST Variable: When communication freezes, some users have found success by manually resetting the GEST variable associated with the READ_VAR block. This can sometimes reinitialize the communication without needing to stop and restart the PLC.

3) Check Connection Limits: The M340 PLC has a limit on the number of simultaneous connections (usually 16). If this limit is reached, it may cause issues with new connections. You can monitor the number of open connections through the NOE card debug window.

 

There are others who are experiencing the same problem as you.

For more details about this, you can click this link:

  • https://www.se.com/in/en/faqs/FA327186/
  • https://community.se.com/t5/Modicon-PAC-Forum/READ-VAR-blocks-freeze/td-p/450985
  • https://community.se.com/t5/Industry-Automation-and-Control/M340-READ-VAR-block-freeze/td-p/472967
Michael Chan Kum Yuen
Reply

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

loborichardson
loborichardson
Cadet

Posted: ‎2024-11-14 03:05 AM

In response to Michael_Chan
0 Likes
0
1191
  • 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: ‎2024-11-14 03:05 AM

Dear Michael ,

 

Thank you for the quick response and helpful guidance. I hope the suggested solutions will resolve the issues.

Reply

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

TheLegendTMX
Crewman TheLegendTMX
Crewman

Posted: ‎2025-01-20 02:22 AM

1 Like
0
854
  • 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-01-20 02:22 AM

Hello,

Make sure you update the CPU firmware to SV3.6 or later.

Reference:
PEP1111452R: Fix an issue seen from SV3.51 concerning the Modbus explicit communication activity bit frozen when a slave is not available

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