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.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2019-12-09 09:22 PM
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
Link copied. Please paste this link to share this article on your social media post.
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.
Link copied. Please paste this link to share this article on your social media post.
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:
|
Link copied. Please paste this link to share this article on your social media post.
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.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-10-06 08:19 AM
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
Link copied. Please paste this link to share this article on your social media post.
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?
Link copied. Please paste this link to share this article on your social media post.
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
Link copied. Please paste this link to share this article on your social media post.
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?
Link copied. Please paste this link to share this article on your social media post.
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
Link copied. Please paste this link to share this article on your social media post.
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
Link copied. Please paste this link to share this article on your social media post.
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:
|
Link copied. Please paste this link to share this article on your social media post.
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
Link copied. Please paste this link to share this article on your social media post.
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
Link copied. Please paste this link to share this article on your social media post.
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.