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

How to establish Modbus TCP communication between two PLCs?

Machine and Motion Control Forum

Support forum for Machine and Motion Control solutions, including Lexium MC12 and robotics, PacDrive, Modicon PLCs and I/Os, EcoStruxure Machine Expert Twin, … - from design, implementation to troubleshooting and more, by Schneider Electric

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
  • Machine and Motion Control Forum
  • How to establish Modbus TCP communication between two PLCs?
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
8
FernandoRodrigues
FernandoRodrigues Support
6
Francesco_Begnoni
Francesco_Begnoni Support
5
LeTomas
Lt. Commander LeTomas Lt. Commander
5
View All
Related Products
product field
Schneider Electric
Logic Controller - Modicon M221
product field
Schneider Electric
EcoStruxure™ Machine Expert

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to Machine and Motion Control Forum
Solved
jhonut
Ensign jhonut
Ensign

Posted: ‎2021-01-28 05:03 AM

1 Like
4
12439
  • 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: ‎2021-01-28 05:03 AM

How to establish Modbus TCP communication between two PLCs?

Hello, 

I have two PLCs: a TM251MESE (which is the master) and a TM221CE24R (which is the slave). On my slave I've set some values for three memory words (%MW100=13, %MW101=11 and %MW102=6). I want to see these values on my master PLC. I have followed this example.

My problem is that when PLC is RUN mode I don't get rid of that "The bus is nor running. The shown values are perhaps not actual." What I'm concerned of is the communication status. I have seen here that the red triangle (please see the attached photo) means the controller is unable to communicate with the device, but I really  don't know why. I've used a software which connects to Modbus slave and I could seethe MWs values.

What should I do to see these values, through Modbus TCP, on my master PLC? 

 

Modbus.png

Attachments
Labels
  • Labels:
  • Connectivity
  • Modicon M2xx
  • Tags:
  • english
  • m221
  • M251
  • modbus tcp
Reply

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

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
SimA
Ensign SimA Ensign
Ensign

Posted: ‎2021-01-28 06:15 AM . Last Modified: ‎2021-01-28 06:16 AM

In response to jhonut
1 Like
1
12389
  • 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: ‎2021-01-28 06:15 AM . Last Modified: ‎2021-01-28 06:16 AM

If you look at your capture for the M251, you have the configured settings on the left and the current settings on the right.   On the right, your IP address is at the default IP 10.10.xxx.xxx .  The controller typically revert to it's default address when there's an issue with the address.  A possible reason could be an IP address conflict (there's already another device with the same IP address on the network).  The other thing is you have to make sure that Ethernet 1 and Ethernet 2 on the M251 are on different subnet (both can't be at 192.168.44.xxx)

 

I didn't see your Slave configuration under the Industrial Ethernet Manager on the M251 but is it configured as Fixed IP address?  Because under your M251 Ethernet port 2, the DHCP server is active (checkbox in the config tab).  When this is active and you add a new generic slave, the slave is automatically added to receive an IP by DHCP instead of fixed address.  You can configure that under the Industrial Ethernet Manager in the Network Manager tab.

 

2021-01-28_09h12_32.png

 

 

See Answer In Context

  • Tags:
  • english
Reply

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

Replies 4
SimA
Ensign SimA Ensign
Ensign

Posted: ‎2021-01-28 05:38 AM . Last Modified: ‎2021-01-28 05:39 AM

0 Likes
3
12425
  • 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: ‎2021-01-28 05:38 AM . Last Modified: ‎2021-01-28 05:39 AM

Can you share a screen capture of your Ethernet 2 port configuration while Online?  Are you sure your IP and subnet mask is properly set?

 

Can you do the same with the M221?

  • Tags:
  • english
Reply

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

jhonut
Ensign jhonut
Ensign

Posted: ‎2021-01-28 05:58 AM

In response to SimA
0 Likes
2
12418
  • 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: ‎2021-01-28 05:58 AM

@SimA , I can ping successfully both master and slave. Bellow you can see the online screenshots.

 

M221 (slave) settings:

M221_ETH.PNGM221_ModbusTCP.PNG

 

M251 (master) settings:

 

M251_ETH.PNGM251_Generic_modbus.PNGM251_Generic_modbus_status.PNGM251_IndustrialEthManag.PNG

  • Tags:
  • english
Reply

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

SimA
Ensign SimA Ensign
Ensign

Posted: ‎2021-01-28 06:15 AM . Last Modified: ‎2021-01-28 06:16 AM

In response to jhonut
1 Like
1
12390
  • 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: ‎2021-01-28 06:15 AM . Last Modified: ‎2021-01-28 06:16 AM

If you look at your capture for the M251, you have the configured settings on the left and the current settings on the right.   On the right, your IP address is at the default IP 10.10.xxx.xxx .  The controller typically revert to it's default address when there's an issue with the address.  A possible reason could be an IP address conflict (there's already another device with the same IP address on the network).  The other thing is you have to make sure that Ethernet 1 and Ethernet 2 on the M251 are on different subnet (both can't be at 192.168.44.xxx)

 

I didn't see your Slave configuration under the Industrial Ethernet Manager on the M251 but is it configured as Fixed IP address?  Because under your M251 Ethernet port 2, the DHCP server is active (checkbox in the config tab).  When this is active and you add a new generic slave, the slave is automatically added to receive an IP by DHCP instead of fixed address.  You can configure that under the Industrial Ethernet Manager in the Network Manager tab.

 

2021-01-28_09h12_32.png

 

 
  • Tags:
  • english
Reply

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

jhonut
Ensign jhonut
Ensign

Posted: ‎2021-01-29 05:49 AM

In response to SimA
0 Likes
0
12376
  • 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: ‎2021-01-29 05:49 AM

@SimA , the IP addresses were kinda mixed up. I have done a reset origin of my master PLC and now everything is fine. Thank you very much for your help

  • Tags:
  • english
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