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

M340/M580 reading Input Registers / Coils / Contacts (1, 10001, 30001 etc) using DTM Browser configuration

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
  • M340/M580 reading Input Registers / Coils / Contacts (1, 10001, 30001 etc) using DTM Browser configuration
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
Solved Go to Solution
Back to Modicon PAC Forum
Solved
BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2019-12-09 09:22 PM

1 Like
13
19463
  • 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: ‎2019-12-09 09:22 PM

M340/M580 reading Input Registers / Coils / Contacts (1, 10001, 30001 etc) using DTM Browser configuration

Hi all,

 

We've recently tried to use the DTM Browser to communicate with a ModbusTCP device which has data available for reading on register 30001 upward, and data for writing to at 40001 and upward.  I would have expected this to be a common situation, where the DTM Browser Generic ModbusTCP Device would be suitable, however on investigation, the ModbusTCP DTM Browser Generic Device is only able to access 40001 Holding Registers.

 

Has anyone come across the same issue?

Was there a workaround found (which didn't involve the use of DATA_EXCH / READ_VAR)?

 

Regards,

Bevan


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..
Labels
  • Labels:
  • Smart Design & Engineering
  • Tags:
  • DTM browser
  • m340
  • m580
  • modbustcp
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
RoozeeR
Lt. Commander RoozeeR Lt. Commander
Lt. Commander

Posted: ‎2019-12-16 07:31 AM

3 Likes
8
19414
  • 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: ‎2019-12-16 07:31 AM

As far as I know IO-scanning (DTM browser) only allows for reading/writing 4XXXX (%MWxxx) registers, meaning only the Modbus function codes 3, 16 and 23 are supported.

Other Modbus function codes, reading/writing 0xxxx, 1xxxx and 3xxxx are supported by function blocks only.

R.Roozee
Sr Solution Architect (SAE Master)

See Answer In Context

Reply

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-01-17 12:46 PM

In response to aamjad52114
2 Likes
0
16435
  • 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-01-17 12:46 PM

M340 supports the READ_VAR and SEND_REQ commands that can be used to read 3X/ %IW values from remote ModBus devices.

M580 supports those commands and also MBP_MSTR command. To read 3X/ %IW you would need to use the Send ModBus Request

 

I'd suggest stay with READ_VAR as this can work with both with minor changes to the address field if required.

Look at the ADDM function to understand the addressing required.

The OBJ field defines the data type to be read.

Type of objects to read for Modicon M340 and M580 CPU:
  • ’%M’: internal bits
  • ’%MW’: internal words
  • ’%I’: input bits
  • ’%IW’: input words

See Answer In Context

  • Tags:
  • english
Reply

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

Replies 13
RoozeeR
Lt. Commander RoozeeR Lt. Commander
Lt. Commander

Posted: ‎2019-12-16 07:31 AM

3 Likes
8
19415
  • 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: ‎2019-12-16 07:31 AM

As far as I know IO-scanning (DTM browser) only allows for reading/writing 4XXXX (%MWxxx) registers, meaning only the Modbus function codes 3, 16 and 23 are supported.

Other Modbus function codes, reading/writing 0xxxx, 1xxxx and 3xxxx are supported by function blocks only.

R.Roozee
Sr Solution Architect (SAE Master)
Reply

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

Anonymous user
Not applicable

Posted: ‎2020-10-06 08:19 AM

1 Like
0
18447
  • 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: ‎2020-10-06 08:19 AM

https://www.se.com/ww/en/faqs/FA246092/

 

MBP_MSTR function code 15 allows to read 1x, 3x registers and can be used with M580 High End CPUs

  • Tags:
  • english
Reply

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

aamjad52114
Crewman aamjad52114
Crewman

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

In response to RoozeeR
0 Likes
7
16464
  • 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-01-17 11:40 AM

Could M340/M580 read input registers (3x) from third party modbus as well or is it just for schnedier products?

  • Tags:
  • english
Reply

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

Siddiqui
Ensign Siddiqui Ensign
Ensign

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

In response to aamjad52114
0 Likes
6
16460
  • 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-01-17 11:52 AM

Hi Amjad,

 

Yes M340 and M580 could read the input register (3x) from the third-party Modbus device as well.

In fact, any devices that support Modbus Serial or Modbus TCP protocol should be supported by the M340 as well as M580.

 

I hope it will provide help.

 

Best Regards,

Wasif

 

 

  • Tags:
  • english
Reply

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

aamjad52114
Crewman aamjad52114
Crewman

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

In response to Siddiqui
0 Likes
5
16457
  • 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-01-17 11:58 AM

Hi Wasif,

Thanks for the response. Is there documentation how to setup unity pro for reading 3x registers from 3rd party devices? 

  • Tags:
  • english
Reply

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

Siddiqui
Ensign Siddiqui Ensign
Ensign

Posted: ‎2022-01-17 12:12 PM

In response to aamjad52114
0 Likes
3
16452
  • 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-01-17 12:12 PM

Hi Amjad,

 

There are many exchanges, it would be good if you mentioned using which CPU M340 or M580 or Quantum? You would like to read the 3x data from a third-party device? Easy for me to direct you in that way. 

 

Best Regards,

Wasif

  • Tags:
  • english
Reply

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

aamjad52114
Crewman aamjad52114
Crewman

Posted: ‎2022-01-17 12:23 PM

In response to Siddiqui
0 Likes
2
16446
  • 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-01-17 12:23 PM

Hi Wasif,

 I am trying to read from input register 3x of skf analyst software using Quantum PLC ( 140 CPU 652 60 & 140 NOE 771 10). Please specify whether to use CPU or NOE ethernet

  • Tags:
  • english
Reply

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-01-17 12:46 PM

In response to aamjad52114
2 Likes
0
16436
  • 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-01-17 12:46 PM

M340 supports the READ_VAR and SEND_REQ commands that can be used to read 3X/ %IW values from remote ModBus devices.

M580 supports those commands and also MBP_MSTR command. To read 3X/ %IW you would need to use the Send ModBus Request

 

I'd suggest stay with READ_VAR as this can work with both with minor changes to the address field if required.

Look at the ADDM function to understand the addressing required.

The OBJ field defines the data type to be read.

Type of objects to read for Modicon M340 and M580 CPU:
  • ’%M’: internal bits
  • ’%MW’: internal words
  • ’%I’: input bits
  • ’%IW’: input words
  • Tags:
  • english
Reply

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

Siddiqui
Ensign Siddiqui Ensign
Ensign

Posted: ‎2022-01-17 01:53 PM

In response to aamjad52114
0 Likes
0
16427
  • 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-01-17 01:53 PM

Hi Amjad,

 

You already had an answer for the M340 and M580. For the Modicon Quantum CPU you can MBP_MSTR.

Check the attached link for the FAQ from there you can get the sample program for reference purposes only.

https://www.se.com/ww/en/faqs/FA246092/

 

This is the same link as mentioned by Patrick Vaz.

 

I hope this will also provide help.

 

Best Regards,

Wasif

Attachments
CE_help_file_MBP_MSTR.zip
  • Tags:
  • english
Reply

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

FrancisBreysach
Ensign FrancisBreysach Ensign
Ensign

Posted: ‎2022-01-18 12:47 AM . Last Modified: ‎2022-01-18 12:49 AM

In response to aamjad52114
1 Like
0
16417
  • 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-01-18 12:47 AM . Last Modified: ‎2022-01-18 12:49 AM

Hello

 

I have made a developpement for Mars PetFood, in 2014 about this subject.

I join a little Guide, in French, but with a lot of screenshots who I explain how to generate several MBTCP Function code.

You have to use 140 NOE 77101 module with last version of FW. No Idea about 140NOE77111.

Using of MBP_MSTR() and Function code 15, implemented in NO77101 since FW V6.1.

 

Francis

 

Attachments
  • Tags:
  • english
Reply

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

Leonardofb.Ferreira
Leonardofb.Ferreira
Cadet

Posted: ‎2025-03-09 01:24 PM

0 Likes
1
1421
  • 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-09 01:24 PM

Hello everyone.

I recently made a Modbus communication using a PLC M340 with a third-party PLC using a read and write var block. With that, in the OBJ block I used %IW - Input Register. However, when converting integer to word and word to real, it didn't give me the right result. I'm trying to figure out what it could be. Does anyone know anything? Since I'm using %IW I don't know if I have to use another type of addressing.

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-10 09:33 PM

In response to Leonardofb.Ferreira
0 Likes
0
1378
  • 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-10 09:33 PM

Why are you converting INT to WORD to REAL?  You can just use INT_TO_REAL.

 

You may need a 1 word offset as some devices use IEC 0 based Modbus addressing, and others use Modicon 1 based addressing.  READ_VAR uses IEC 0 based so %IW0 is equivalent to 300001.

 

What data type is your source data?  If your source data is type REAL, then you will need to read two words and use WORD_AS_REAL to convert them into a REAL.  You may have to play with the high/low word order.

Reply

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

ciupol
Lieutenant ciupol
Lieutenant

Posted: ‎2025-03-11 05:00 AM

0 Likes
0
1330
  • 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-11 05:00 AM

Like MatthewM said do not convert INT to WORD to REAL. Conversion WORD to REAL messes things up. Here is an extract from Control Expert help for WORD_TO_*** function:

When converting the WORD data type to the DWORD, DINT, UDINT, REAL or TIME data type, the bit pattern of the input is transferred to the least significant bits of the output. The most significant bits of the output are set to zero.
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