Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Modbus-TCP to USB/COM Port?

Status
Not open for further replies.

Vizier87

Active Member
Hi folksies.

A potential client asked me on reading data from an energy management via the ethernet port of this product: https://www.acrel-electric.com/product/adf400l

I'm still mulling on the most efficient protocol I should be using. It says that the product's communication uses RS485 and also an ethernet port (which was described as a Modbus-TCP port).

On managing whatever the data which comes from the device, I'm quite confident I can parse the data well, God willing. I'm more comfortable handling data from the serial COM Port but I guess if I have to get out of my comfort zone then.. I guess I should.

But I'm not sure what are the best ways to start interfacing the communication. Should I use an RS485-to-USB? Or should I read it directly from the ethernet port? Those are the things I'm not well informed about yet, so I hope can someone point me in the right direction?

Thanks!
Vizier87
 
Ok, so you need two things (I think, not a modbus expert)
  • Modbus RTU (must transate from RS485/Modbus) to some IP based protocol.
  • Complete signal list (the paper I found on the web site only stated that "product support modbus communication" and nothing more).
But you may run into this problem - : The manufacturer may not reveal any signal list as the intension of the modbus protocol may be allowing two or more devices to run as one (i.e. several measuring devices connected together where a master device can display total consume for all devices), and also I've seen devices where the only possible way of reading data would be to buy a web server from the manufacturer (never has any hope of retrive any usable documentation/signal list for the device) - I have seen this trend for some industrial battery chargers.
 
Ok, so you need two things (I think, not a modbus expert)
  • Modbus RTU (must transate from RS485/Modbus) to some IP based protocol.
  • Complete signal list (the paper I found on the web site only stated that "product support modbus communication" and nothing more).
But you may run into this problem - : The manufacturer may not reveal any signal list as the intension of the modbus protocol may be allowing two or more devices to run as one (i.e. several measuring devices connected together where a master device can display total consume for all devices), and also I've seen devices where the only possible way of reading data would be to buy a web server from the manufacturer (never has any hope of retrive any usable documentation/signal list for the device) - I have seen this trend for some industrial battery chargers.
Thanks for the heads up.

I do have a kinda grubby little manual which comes with it. It lists all the addresses for different parameters, if you like. I don't know if sharing the manual here is legal though.

But you're right, one of the way I knew it works if via a web based app.

How do I know I can access it via a simple script?

For now it seems to have a discernible IP when I hook it up to my ethernet port by using just a simple ipconfig command. But I haven't been able to link it yet to retrieve the data

Thanks a lot for your time on this.

Vizier87
 
How do I know I can access it via a simple script?
No, it's not quite that easy, the RS485 also describe a physical/electrical interface that is not compatible with neither RS232 nor TCP/IP.
Maybe you can use a rasberry phi or similar with a modbus interface.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top