Welcome to the new Schneider Electric Community

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

Close
Important Announcement: WELCOME to the new Schneider Electric Community! Community is now no longer part of Exchange, and is now rebranded under se.com. If you have any bookmarks and links saved, we request you to update them to ensure that you continue accessing our community from this new location. For any issues that you might encounter as part of this change, please reach out to SchneiderCommunity.Support@se.com, and the team will help to get your issues resolved.
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
82133members
349658posts

30 MODBUS SLAVE DEVICE - M580 - CONTROL EXPERT.

Modicon PAC Forum

This forum is for all Modicon users to share knowledge and best practices, submit and discuss ideas for product evolutions and innovation, ask questions and provide answers on the scope of Modicon PAC offers and ecosystem along the whole lifecycle: Modicon M580, Modicon M340, EcoStruxure Control Expert (Unity Pro), EcoStruxure Process Expert, integration with Aveva Software.

kishore1march
Lieutenant JG
Lieutenant JG
0 Likes
5
1405

30 MODBUS SLAVE DEVICE - M580 - CONTROL EXPERT.

Hi,

 

I am trying to read data from 30 modbus slave devices (rs485) in M580, apart from Read Var and Write Var blocks, what would be the best efficient method of programming to get data quickly into PLC? 

 

Regards.. 


Tags (1)
5 Replies 5
Juan
Commander
Commander
0 Likes
3
1394

Re: 30 MODBUS SLAVE DEVICE - M580 - CONTROL EXPERT.

Hi,

 

As the connection used is serial, the performance is not achieved by means of one block or another, as it is RS485, until a request is finished, the next cannot be started, so to perform a reading of the 30 devices, at least you will need 90 program cycles (3 cycles per device) assuming the devices respond in less time than the M580 program cycle.

 

I would recommend that you use different communication rings, which will allow you to launch as many requests in the same program cycle as there are communication rings.

Another option is to use Modbus TCP / IP - Modbus gateways, these can process requests waiting, which will increase the performance of the channel (you can reduce 1 cycle per device).

 

In addition to the Read_Var and Write_Var blocks, you can also use Data_Exch.

 

Regards,

Juan

Tags (1)
AlastairF
Lieutenant Lieutenant
Lieutenant
0 Likes
0
1367

Re: 30 MODBUS SLAVE DEVICE - M580 - CONTROL EXPERT.

There are a few things to consider.

- you are reaching the limits on a RS485 network for number of connected devices (limit 31 before repeater is required). You would need to use a good RS485 master such as BMXNOM0200 or Link150 gateway. The M340 CPU RS485 port is not really up to this duty. Make sure that the wiring is of good standard with correct termination.

- what baud rate will the slave devices support?

- how much data are you trying to read?

- do any slave devices go offline?

 

If you are using a BMXNOM0200 then I'd suggest an indexed READ_VAR block and manage the timeouts so that the block runs as fast as possible. Biggest problem is a device that goes offline and you have to wait foe comms time out before moving onto the next device.

By indexed I mean that there is one READ_VAR block and you index the parameters and response from/ to arrays.

Start with one slave then go from there.

A good bench test tool is https://sourceforge.net/projects/modrssim2/

This allows you to set up your family of slave devices on your PC and read them using the PLC. You can enable/ disable individual devices.

Tags (1)
Ivan_O_Qubits
Lieutenant JG
Lieutenant JG
0 Likes
0
1324

Re: 30 MODBUS SLAVE DEVICE - M580 - CONTROL EXPERT.

Hello Juan, would you email me at Ivan.Ospina@QubitsENergy.com please?

Tags (1)
Claussen4
Cadet
0 Likes
1
1217

Re: 30 MODBUS SLAVE DEVICE - M580 - CONTROL EXPERT.


@Juan wrote:

Hi,

 

As the connection used is serial, the performance is not achieved by means of one block or another, as it is RS485, until a request is finished, the next cannot be started, so to perform a reading of the 30 devices, at least you will need 90 program cycles (3 cycles per device) assuming the devices respond in less time than the M580 program cycle.

 

I would recommend that you use different communication rings, which will allow you to launch as many requests in the same program cycle as there are communication rings.

Another option is to use Modbus TCP / IP - Modbus gateways, these can process requests waiting, which will increase the performance of the channel (you can reduce 1 cycle per device).

 

In addition to the Read_Var and Write_Var blocks, you can also use Data_Exch.

 

Regards,

Juan


 devices are used for applications with technical safety requirements, the relevant instructions Chapter 21 OUT_IN_MBUS: Modbus Communication Function. This documentation is valid for EcoStruxure Control Expert 14.1 or later. Block name. Block type. Premium. Quantum. M340. M580. Momentum. ADM.
 
Tags (1)
MarkAchra12
Cadet
0 Likes
0
319

Re: 30 MODBUS SLAVE DEVICE - M580 - CONTROL EXPERT.

I would recommend that you use different communication rings, which will allow you to launch as many requests in the same program cycle as there are communication rings.

Another option is to use Modbus TCP / IP - Modbus gateways, these can process requests waiting, which will increase the performance of the channel (you can reduce 1 cycle per device).

Tags (1)