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

Write_var between M580 and M340

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
  • Write_var between M580 and M340
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
Related Products
product field
Schneider Electric
Modicon M340
product field
Schneider Electric
Modicon M580

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to Modicon PAC Forum
ibrahim.rebouh
Ensign ibrahim.rebouh
Ensign

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

1 Like
9
6396
  • 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: ‎2022-10-25 09:59 AM

Write_var between M580 and M340

HI,

I'm trying to write two INT from a BMEH582040 CPU to a BMXP342020 CPU Connected via Ethernet using write_var function block in the H58 program  (as in the code attached). The GEST from the write_var shows no error how ever the values of the destination %MW don't change (it's always 0).

I can't find the problem if anybody can help or has an idea i would be very grateful.

thanks in advance.

Attachments
  • Tags:
  • english
  • french
  • m340
  • m580
  • network and Communication
  • Unity pro XL
Reply

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

  • All forum topics
  • Previous Topic
  • Next Topic
Replies 9
dnordenberg1
Lieutenant dnordenberg1
Lieutenant

Posted: ‎2022-10-27 04:48 AM . Last Modified: ‎2022-10-27 04:54 AM

0 Likes
8
6347
  • 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: ‎2022-10-27 04:48 AM . Last Modified: ‎2022-10-27 04:54 AM

Hi!

Looks fine except your ADDM string after IP and the bracket should end with TCP.MBS

Also did you set a timeout inside the GEST on the third word? (in number of 100ms periods, that is a value of 10=1s). Without a timeout the communication can "lockup".

Also does the first GEST word change? If communication is running fine it should show a new value each transmission, in your case every second. Without a timeout set it may not change if it is already in a locked up state.

 

  • Tags:
  • english
Reply

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

ibrahim.rebouh
Ensign ibrahim.rebouh
Ensign

Posted: ‎2022-10-30 12:45 AM

In response to dnordenberg1
0 Likes
7
6283
  • 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: ‎2022-10-30 12:45 AM

First of all thank you for your reply.

I implemented the changes that you gave me but still the destination array values are 0.

I Still can't find the error.

Attachments
  • Tags:
  • english
Reply

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

ProfHameedi
Ensign ProfHameedi Ensign
Ensign

Posted: ‎2022-10-30 01:27 AM . Last Modified: ‎2022-10-30 05:14 AM

In response to ibrahim.rebouh
0 Likes
0
6278
  • 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: ‎2022-10-30 01:27 AM . Last Modified: ‎2022-10-30 05:14 AM

Hi Ibrahim,

 

I see you are using ADDMX function to identify the slave device.

I recommend you use the following: ADDM('0.0.3{192.168.1.11}255') OR ADDM('0.0.3{192.168.1.11}1')

M340 CPU IP Address is 192.168.1.11

Other parameters look fine.

  • Tags:
  • english
Reply

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

dnordenberg1
Lieutenant dnordenberg1
Lieutenant

Posted: ‎2022-10-31 12:29 AM

In response to ibrahim.rebouh
0 Likes
0
6249
  • 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: ‎2022-10-31 12:29 AM

Is the first value of GEST updating with new values every sec? Making sure it is running...

I would also try ADDM instead of ADDMX as @ProfHameedi said but ...TCP.MBS should work fine as that is what I always use myself.

I never used ADDMX myself and I really can't see the difference between them.. (maybe ADDMX has more address syntax options?)

  • Tags:
  • english
Reply

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

dnordenberg1
Lieutenant dnordenberg1
Lieutenant

Posted: ‎2022-11-01 12:17 AM

In response to ibrahim.rebouh
0 Likes
4
6221
  • 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: ‎2022-11-01 12:17 AM

Btw, where did you read channel should be .3? Documentation about this does not seem very easy to come by but I think it should be .10 for ethernet on the CPU.

  • Tags:
  • english
Reply

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

KJBER
Ensign KJBER
Ensign

Posted: ‎2022-11-01 01:25 AM

In response to dnordenberg1
1 Like
3
6215
  • 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: ‎2022-11-01 01:25 AM

 thought 0.0.3 was related to rack slot channel

M580 channel 1 is service port, channel 2/3 device net, see picture. 0.0.3 seems to be the way to go and it works 🙂

 

 

Attachments
  • Tags:
  • english
Reply

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

dnordenberg1
Lieutenant dnordenberg1
Lieutenant

Posted: ‎2022-11-01 01:35 AM . Last Modified: ‎2022-11-01 01:37 AM

In response to KJBER
0 Likes
2
6211
  • 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: ‎2022-11-01 01:35 AM . Last Modified: ‎2022-11-01 01:37 AM

Oki, I saw some documentation using .10 but that was not an exact modbus tcp example, it was about setting IP or something I think. I'm not very experienced with M580 either when it comes to FBD communications as I try to use the DTM browser/IO scanning as my first choice for modbus TCP 🙂

 

Btw, do you know where the documentation for this is or did you find this out by yourself? 🙂

  • Tags:
  • english
Reply

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

KJBER
Ensign KJBER
Ensign

Posted: ‎2022-11-01 04:02 AM

In response to dnordenberg1
1 Like
1
6201
  • 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: ‎2022-11-01 04:02 AM

EcoStruxure™ Control Expert - Communication Block Library https://www.se.com/ww/en/download/document/33002527K01000/

seem to be the go to documentation about this, not that easy to read tho.

 

On page 74 it says M580: "NOTE: For Modicon M580 CPU, to configure a communication through the CPU
Ethernet port, r=0, m=0 and c=3."

 

I believe ADDMX is used with M580 PLS if you have a module on an EIO drop, otherwise we should use ADDM. EIO Drop is shown on page 83-84

  • Tags:
  • english
Reply

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

dnordenberg1
Lieutenant dnordenberg1
Lieutenant

Posted: ‎2022-11-01 08:16 AM

In response to KJBER
0 Likes
0
6191
  • 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: ‎2022-11-01 08:16 AM

Nice, didn't find that document before.

On page 62 it say that for *_MX functions the channel is not .3 but .10 for main CPU ethernet so that must be what I was reading about before...

  • 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