Menu

Change Modbus Unit Address

2013-07-26
2013-07-27
  • Juan Solís Reche

    Greetings and salutations,
    Being very wet behind the ears in Java I'm getting my head around the Modbus protocol and stumbled across your library.
    Now I managed to read the settings from the device I've connected, but surely I must be able to change some settings?
    Reading http://inp-xray.googlecode.com/svn/trunk/lizard/LDRDTestingSoftware/src/net/wimpi/modbus/util/SerialParameters.java revealed some methods that I could use, but how do I change the Madbus address of any device?
    I've been scouring the web for some days now, but am uncertain on how to go about it.
    Some help or pointers would be greatly appreciated.
    Kind regards,
    Juan

     
    • Julie Haugh

      Julie Haugh - 2013-07-27

      Juan,

      Thanks for the kind greetings.

      Changing a Modbus device's address is device-dependent. Typically there would be jumpers or DIP switches, so that Modbus isn't required to make the change before Modbus is able to access the device. In other cases the device will have a default unit number that is then modified with a Modbus command.

      Please see your device manual for more details.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.