r/MODBUS•
R0b0tg

Modbus Daisy Chain not working!

I have 25 slave devices in daisy chain on RS485 physical layer. I am using Arduino as my slave device and TTL to RS485 converter connected to it. At the master end I have a Raspberry Pi and RS485 to USB converter connected to it. Now I am able to receive data from 10-11 devices properly and continuously. But 9 devices are giving checksum error or Too short response error. And remaining others are giving No communication. I have proper shielding throughout the slave devices and it's connected to Raspberry Pi's ground. But the other end is not connected anywhere. Also I have termination resistor of 120ohms at the last connected slave, but not on Pi's side. When I soldered 120ohms resistor to RS485-USB converter of Pi, I am getting less devices on communication line.

TTL to RS485 converter - https://robu.in/product/max485-ttl-rs485/

RS485 to USB converter - https://robu.in/product/usb-rs485-converter-adapter-support-win7-xp-vista-linux-mac-os/

​

The Arduino library - https://github.com/yaacov/ArduinoModbusSlave

Raspberry Pi Library - https://minimalmodbus.readthedocs.io/en/stable/

​

Any help would be appreciated!

Posted Mar 13, 2021, 5:50 PM UTC

54
CuleKameleon•

Check whether any issues on the slave-device/cable on the 10th(or the first device you are not getting good response).

1
DenverTeck•

Has this problem been solved ?

What did you find ??

1
R0b0tgOP•

So my finding were -

  1. Common Grounding in slaves is important.
  2. Terminal resistance not necessary in daisy chain.
  3. Proper cable for Rs485 modbus rtu is important. With impedance of 120 ohms.
  4. Shielding is important. These are the main points. Are you trying to implement modbus in your project as well?
1
DenverTeck•

Yes, just starting.

A Raspi running a NodeRed client with 5 Arduino server devices on an RS-485 buss.

I may need something more math intensive, so a STM32 based SBC.

1