Modbus Master Options
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 from the register to a useful decimal value in a table?
Thanks in advance, Tom
Posted Mar 5, 2021, 2:57 PM UTC
Hey,
Don't know whether the issue has been solved, but I will contribute what I know.
I would suggest to create your own MODBUS master with python using pymodbus, if its okay to use it in your work. You will have all the flexibility you want.
r = client.read_holding_register(address, no of regs, unit_id=slave_id) .
If you are planning to buy something, I don't think there will be a single product readily available which does both get-data from slave and update a database. Because there are tons of databases out there with different connection strings and writing algorithms and there won't be a single stop solution for all the requirements.
And if you do yourself via python, I think you may have to write around 25-35 lines of code for your requirement and that's it. Use Tkinter too for an okayish GUI.