Fighting with computers

Computers are not always friendly.

Monday, March 23, 2009

Modbus/TCP


A recent project I'm working on needs to behave as a Modbus slave. Not that Modbus is a complex protocol, but it is always handy if you can save yourself the effort of doing your own implementation. After some trouble I've got FreeModbus library up and running.

While looking around I've also found some cool tools like modpoll that can allow you query a Modbus slave. And while I had some trouble with the Linux binary (libstdc++5 was missing), the Windows binary runs happily under wine too. Another great set of tools are these ones. You can even connect your Excel spreadsheet to values obtained from a remote slave!

It was fun to realize there is even a Modbus for Arduino implementation.

4 Comments:

  • At 12:48 am, Blogger abulmagd said…

    did you port freemodbus/tcp to arduino

     
  • At 8:36 am, Blogger Miguel Sánchez said…

    No, I was using a uClinux system for that.

     
  • At 12:21 am, Anonymous Anonymous said…

    There is also http://libmodbus.org project which offers an Open Source implementation of th Modbus protocol.

     
  • At 8:48 am, Blogger Miguel Sánchez said…

    Thanks a lot for the info!

    I'll have a look at this other library.

     

Post a Comment

<< Home