Menu

Home

Julie Haugh

Welcome to j2mod, a Modbus library implemented in Java.

j2mod is based on jamod, version 1.2.1rc1 with bug fixes and additional messages based on the Modbus 1.1b protocol. Many of the unit test cases, located in the com.ghgande.j2mod.modbus.cmd package, are suitable for stand-alone testing of Modbus slaves or for use as programming examples.

New to j2mod is the inclusion of Arduino sketches which can be programmed into Arduino-compatible products for use as Modbus slaves.

j2Mod is currently in the "production" stage and is used in greenHouse Gas and Electric's primary SCADA product. Development and maintenance is ongoing, with plans to implement additional messages and exceptions to complete the package.

A JavaDoc tar ball has been uploaded and can be used to plan a migration from jamod to j2mod, or to plan new products.

Project Admins:


Discussion

  • Jeremy Wilson

    Jeremy Wilson - 2012-09-14

    Is it possible to read real values from the slave with setting a parameter to swap bits or not?

     
  • Jeremy Wilson

    Jeremy Wilson - 2012-10-01

    I have a modbus slave that requires the Unit ID to be set in the requests since it is a bridge to multiple serial slaves. Is there a way to set the request unit ID in a modbusTCP request?

     

Log in to post a comment.