Welcome to the new Schneider Electric Community

It's your place to connect with experts and peers, get continuous support, and share knowledge.

  • Explore the new navigation for even easier access to your community.
  • Bookmark and use our new, easy-to-remember address (community.se.com).
  • Get ready for more content and an improved experience.

Contact SchneiderCommunity.Support@se.com if you have any questions.

Close
Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
84384members
353573posts

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.

Solved
BevanWeiss
Spock
Spock
10
5020

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..

Accepted Solutions
RoozeeR
Lt. Commander Lt. Commander
Lt. Commander

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

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

AlastairF
Lieutenant Lieutenant
Lieutenant
0
2000

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

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 (1)
10 Replies 10
RoozeeR
Lt. Commander Lt. Commander
Lt. Commander

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

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)
PatrickV
Crewman Crewman
Crewman
0 Likes
0
4012

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

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

Patrick Vaz
Tags (1)
aamjad52114
Crewman
Crewman
0 Likes
7
2029

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

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

Tags (1)
Siddiqui
Ensign Ensign
Ensign
0 Likes
6
2025

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

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 (1)
aamjad52114
Crewman
Crewman
0 Likes
5
2022

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

Hi Wasif,

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

Tags (1)
Siddiqui
Ensign Ensign
Ensign
0 Likes
3
2017

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

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 (1)
aamjad52114
Crewman
Crewman
0 Likes
2
2011

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

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 (1)
AlastairF
Lieutenant Lieutenant
Lieutenant
0
2001

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

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 (1)
Siddiqui
Ensign Ensign
Ensign
0 Likes
0
1992

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

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
Tags (1)
FrancisBreysach
Crewman Crewman
Crewman
0 Likes
0
1982

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

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 (1)