- 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.
- 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.
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.
ekostadinov1 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.