r/MODBUS

213 archived posts · Sep 2016 – Sep 2025

Random post

u/R0b0tg•

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 R

54

u/Trashme23•

I am relatively new to MODBUS protocol and I was tasked to implement a MODBUS TCP server program for one of my project needs. After using a standard library (i used qt modbus), my engineer told me that the MODBUS TCP client uses 32 bit addressing, not the conventional 16 bit addressing.

My question is:Can I simply change the modbus data unit size from 16 bit to 32 bit? Will the TCP stack know how to interpret these packets with double the data size? Or must I go down to the sending and unpacking to handle this larger transaction?

42


[deleted]•

I have a machine that uses modbus tcp ip just for third party interaction with the machine I Can specify the ip and I have a spare port on a2 for my plc . My first attempt is using the Aoi add on instruction to communicate. My logic socket compatibility should be good. How do I go about finding all the comm setting for this instruction in relation to my machine? All they gave me from the company is a list of registers and addresses and whether or not they are read only or read and write.

Admittedly this is over my head but I’m pretty stubborn when I set out to do something lol and help or reading material would be appreciated? Thank you

42

u/tscott8201•

Hi all. I’m new to MODBUS, but have a project here at work that requires it.

I’ve got a device in a substation that registers gas concentrations in oil. That device is capable of communicating via MODBUS over Ethernet. I need to poll the device, read data from its input registers and write those values to a database. So far I’ve acquired the device profile and configured a simple MODBUS tester installed on my local PC to read the input registers. So far so good.

What resources/software products are out there to create a master on my network server that will pull the needed data from the input registers and write it to a database on a set schedule?

Also, how does one covert the hex data

42


Hello everyone, I'm having trouble understanding how to read Modbus data. Please do let me know if this is not the right place and I will delete this post.

I have two devices; both are connected to a Raspberry Pi using a USB converter as Slave 1 and 2. I want to get some readings using Telegraf software https://github.com/influxdata/telegraf/tree/release-1.26/plugins/inputs/modbus (happy to try any other linux software), but I'm having trouble (I'm seriously confused to be honest) with byte_order, data_type, and input register addresses.

Could someone help me configure/understand modbus so that I can read t

311

u/brendondrew•

Hi,

Very new to modbus, so could be something simple.

Is there a way to "Probe" A modbus slave device to work out what registars exsist in a device?
I relise I wont nessaseraly have a friendly name against them.

​

Context: I have a MEBAY DC20D MKII Genset controller that suposedly supports modbus but cant seem to get it to work

34

u/DangerousJefe•

I'm implementing Modbus comms on an embedded platform, and I'm trying to figure out what the max response size is going to be.

The thing that's got me confused is this - When the master requests input registers from the slave, the message has 2 bytes for the number of registers requested, so potentially 65535 registers, right? But. The slave response only has one byte for the number of data bytes being sent, so a max of 255 bytes, or 127 registers? So it seems like it's possible to request 65525 registers, but it is only possible to actually receive 127 registers.

Am I missing something?

(NB. Wow. I can't believe there's a Modbus subreddit!)

36