20.08.2019
Posted by 
  1. Modbus Serial Master Jamod Watkins Road
  2. Modbus Serial Master Jamod Watkins Jr
  3. Modbus Over Serial
  1. Plc (Programmable Logical Controller) using modbus rtu in C#.net program.I need a Sample Projects and example Codes to connect a plc uing modbus rtu.awaiting for ur reply Experts. Thanks in advance.
  2. Join GitHub today. GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.

Modbus Serial Master Jamod Watkins Road

QModBus is a free Qt-based implementation of a ModBus master application. A graphical user interface allows easy communication with ModBus slaves over serial line interface. QModBus also includes a bus monitor for examining all traffic on the bus.

Active4 years, 10 months ago

i am new to java serial port programming​, Hp c5683a usb driver.

I have trying to read data from the modbus slave device through modbus RTU over serial port from my java application.

I am using the Jamod java library to read modbus protocal.

In my case my application failed to receive entire modbus response from the device. please find my java coding and error log for your reference.

Modbus Serial Master Jamod Watkins Jr

Any one can suggest me what may be the reason for the error.

Modbusekostadinov
5,8513 gold badges21 silver badges43 bronze badges
BalaSubramaniamBalaSubramaniam

1 Answer

You should add a method like Thread.sleep(500) between request and response method in jamod library. Maybe this kind of error is usually caused by the length of response data.jamod library didn't consider the long size of response data. So, we need to request and wait until all data is received from the serial interface. Ff not, because all data is not received, CRC check will fail and cause an error.

Ram

Modbus Over Serial

2,6699 gold badges33 silver badges55 bronze badges
Modbus serial master jamod watkins brothers
youngsub limyoungsub lim
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Not the answer you're looking for? Browse other questions tagged javamodbus or ask your own question.