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

30 MODBUS SLAVE DEVICE - M580 - CONTROL EXPERT.

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.

kishore1march
Lieutenant JG
Lieutenant JG
0 Likes
5
1498

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
1487

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
1460

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
1417

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
1310

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
412

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)