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!

Using MBP_MSTR block's function code 15 (Send Modbus Request), to read 3xxxx register via Modbus TCP on M580

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
  • Using MBP_MSTR block's function code 15 (Send Modbus Request), to read 3xxxx register via Modbus TCP on M580
Options
  • 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
ciupol
Lieutenant ciupol
9
MatthewM
Lt. Commander MatthewM
8
RoozeeR
Lt. Commander RoozeeR Lt. Commander
7
Trinxs1
Lt. Commander Trinxs1 Lt. Commander
6
View All
Related Products
product field
Schneider Electric
Modicon M580

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to Modicon PAC Forum
Solved
Cadian
Crewman Cadian
Crewman

Posted: ‎2022-03-16 12:03 AM

1 Like
8
4993
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-03-16 12:03 AM

Using MBP_MSTR block's function code 15 (Send Modbus Request), to read 3xxxx register via Modbus TCP on M580

Hello,

 

I've read that the MBP_MSTR block's function code 15 is only usable with a NOE module on a Quantum drop. But I'd like to use it on a M580 drop with either a BME P58 6040 CPU module or BME NOC 0301.3 communications module. 

 

Trying to read 3xxxx registers via Modbus TCP from a flowmeter using an old DFB which uses the MBP_MSTR block.

 

Could someone tell me if this is possible and if so, point me to any examples?

 

Thanks in advance,

Brendan

  • Tags:
  • 3x
  • english
  • m580
  • MBP_MSTR
  • modbus
  • modbus tcp
  • register
Reply
Contact Support

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

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2022-03-16 03:05 PM

In response to Cadian
0 Likes
5
4946
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-03-16 03:05 PM

It shows up in the help under the M580, so it will likely work.  And if not, you could chase up with Schneider Tech Support around issues (since it's documented in the help for the M580).

 

2022-03-17 08_58_01-Control Expert v15.0 - VMware Workstation.png

 

But it's probably not the best option if you can avoid it, and you're not likely to get sample code for using the M580 in this fashion because as mentioned by the other poster, there are more preferred ways of doing this in the M580, with the READ_VAR etc blocks.

 

The help for the block under the M580 section looks like it hasn't been updated/reviewed for M580 specifically.. so may be hit/miss on quality/accuracy.  But it seems relatively 'standard'.. you would need to tell it which slot the NOC is in, and I suspect the least significant byte should just be 0.

 

2022-03-17 09_01_39-Control Expert v15.0 - VMware Workstation.png


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..

See Answer In Context

  • Tags:
  • english
Reply
Contact Support

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

BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2022-03-16 09:18 PM

In response to Cadian
0 Likes
3
4904
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-03-16 09:18 PM

I don't think it would be NOC specific here, if it doesn't work on the NOC, I wouldn't expect it to work on the CPU module.

 

The NOC certainly supports the ModbusTCP Explicit Function Code for FC15.

2022-03-17 15_11_55-Modicon M580 - BMENOC0301_0311 Ethernet Communications Module - Installation and.png

 

Whether the implementation of the MBP_MSTR instruction on the M580 does the right thing is a different story.  And this is where I'm not saying it does or doesn't.  But that it's not often the way it's done, so you'd be going into poorly chartered (and hence potentially buggy) waters.. you should anticipate encountering challenges.

 

Recommendation would be to setup a test bench, with the M580 PLC and something like Wireshark, and see if the NOC does indeed spit out the FC15 packet when requested.  If it does, case closed, the previous engineer was wrong, all worked fine.  If it doesn't, then you should report to Schneider for them to investigate and fix in the future (but you should also find a work around that gets your project across the line because Schneider will be very unlikely to investigate/fix that within a reasonable timeframe... I would generally expect 1-2 years for such a low impact item).


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..

See Answer In Context

  • Tags:
  • english
Reply
Contact Support

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

Replies 8
Farzad_Samimi
Ensign Farzad_Samimi Ensign
Ensign

Posted: ‎2022-03-16 06:39 AM

0 Likes
7
4969
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-03-16 06:39 AM

Hi,

In M580 platform we have a function called Read_Var, that can read the 3x. please see the attachment for the sample code. please read the comments carefully.

Regards,

Farzad

Read 3X in M580 platform.jpg

  • Tags:
  • english
Reply
Contact Support

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

Cadian
Crewman Cadian
Crewman

Posted: ‎2022-03-16 06:53 AM

In response to Farzad_Samimi
0 Likes
6
4965
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-03-16 06:53 AM

Hi Farzad,

 

Thanks for the response and sample code.

 

However, I'm looking to find out whether the MBP_MSTR block can be used to read 3x registers on a M580 drop using the BME P58 6040 CPU module or BME NOC 0301.3 communications module. 

 

I'm trying to leverage a DFB developed on an older project which uses said block.

 

Could you please confirm if the MBP_MSTR block will work with either the BME P58 6040 CPU module or BME NOC 0301.3 communications module and provide an example?

 

Thanks a lot,

Brendan

Reply
Contact Support

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

BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2022-03-16 03:05 PM

In response to Cadian
0 Likes
5
4947
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-03-16 03:05 PM

It shows up in the help under the M580, so it will likely work.  And if not, you could chase up with Schneider Tech Support around issues (since it's documented in the help for the M580).

 

2022-03-17 08_58_01-Control Expert v15.0 - VMware Workstation.png

 

But it's probably not the best option if you can avoid it, and you're not likely to get sample code for using the M580 in this fashion because as mentioned by the other poster, there are more preferred ways of doing this in the M580, with the READ_VAR etc blocks.

 

The help for the block under the M580 section looks like it hasn't been updated/reviewed for M580 specifically.. so may be hit/miss on quality/accuracy.  But it seems relatively 'standard'.. you would need to tell it which slot the NOC is in, and I suspect the least significant byte should just be 0.

 

2022-03-17 09_01_39-Control Expert v15.0 - VMware Workstation.png


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
  • Tags:
  • english
Reply
Contact Support

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

Cadian
Crewman Cadian
Crewman

Posted: ‎2022-03-16 05:41 PM

In response to BevanWeiss
0 Likes
4
4927
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-03-16 05:41 PM

Hi Bevan,

 

Just a quick one, you mentioned:

The help for the block under the M580 section looks like it hasn't been updated/reviewed for M580 specifically.. so may be hit/miss on quality/accuracy.  But it seems relatively 'standard'.. you would need to tell it which slot the NOC is in, and I suspect the least significant byte should just be 0.

 

Do you mean that it would work with NOC modules too? The documentation left by the previous engineer mentioned that the NOC Ethernet modules weren't compatible with function code 15 of the MBP_MSTR block, but nor I or any of the other current engineers have found any documentation to support this statement.

 

To account for the potential limitation with NOC modules, I was planning to send the Modbus request via the M580 CPU module.

 

Thanks in advance,

Brendan

  • Tags:
  • english
Reply
Contact Support

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

BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2022-03-16 09:18 PM

In response to Cadian
0 Likes
3
4905
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-03-16 09:18 PM

I don't think it would be NOC specific here, if it doesn't work on the NOC, I wouldn't expect it to work on the CPU module.

 

The NOC certainly supports the ModbusTCP Explicit Function Code for FC15.

2022-03-17 15_11_55-Modicon M580 - BMENOC0301_0311 Ethernet Communications Module - Installation and.png

 

Whether the implementation of the MBP_MSTR instruction on the M580 does the right thing is a different story.  And this is where I'm not saying it does or doesn't.  But that it's not often the way it's done, so you'd be going into poorly chartered (and hence potentially buggy) waters.. you should anticipate encountering challenges.

 

Recommendation would be to setup a test bench, with the M580 PLC and something like Wireshark, and see if the NOC does indeed spit out the FC15 packet when requested.  If it does, case closed, the previous engineer was wrong, all worked fine.  If it doesn't, then you should report to Schneider for them to investigate and fix in the future (but you should also find a work around that gets your project across the line because Schneider will be very unlikely to investigate/fix that within a reasonable timeframe... I would generally expect 1-2 years for such a low impact item).


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
  • Tags:
  • english
Reply
Contact Support

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

Cadian
Crewman Cadian
Crewman

Posted: ‎2022-03-16 09:29 PM

In response to BevanWeiss
0 Likes
0
4900
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-03-16 09:29 PM

Sounds like we'll need to do some testing!

 

Thanks for all your help Bevan, greatly appreciated. 

Brendan

  • Tags:
  • english
Reply
Contact Support

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

AlastairF
AlastairF Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2022-03-16 10:13 PM

In response to BevanWeiss
0 Likes
1
4884
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-03-16 10:13 PM

The M580 will support the following ModBus Functions via the MBP_MSTR function block

Supported operation codes: 1 = Write data, 2 = Read data, 14 = CIP Explicit Message, 15 = Send Modbus Request, 23 = Read / Write data

The DATA_EXCH block is as complicated as the MBP_MSTR block to set up correctly but the addressing is easier in the former.
Bevan is correc, Wireshark will be your friend. If you use ModSim2 application you can set this as a ModBus TCP Server and create data to read.
 
  • Tags:
  • english
Reply
Contact Support

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

Cadian
Crewman Cadian
Crewman

Posted: ‎2022-03-16 10:15 PM

In response to AlastairF
0 Likes
0
4882
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-03-16 10:15 PM

Thanks for the confirmation Alastair!

 

Will check out ModSim2 for testing.

  • Tags:
  • english
Reply
Contact Support

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