Library version 2.6.2. The FieldTalk ⢠Modbus Master ® Library, Java ⢠Edition provides connectivity to Modbus slave compatible devices and applications.
Active2 years, 2 months ago
I came across with a curious situation when using jamod to write to modbus. Following read code works perfectly:
But trying to write similar manner fails (Jamod tries 3 times, each times encounters SocketTimeoutException and finally throws ModbusException).
Yes, I know that I am using multi-register versions of the request-objects, but device I'm working with only supports function codes 3 and 16.
Watch yoshitsune drama online. I also wrote raw-socket tester to write registers, and as far as I can see it works correctly. But it would be nice to use jamod in both situations.
Does anyone have anyone experience using jamod and would that one be kind enough to tell what I'm doing wrong? This happens with both 1.1 and 1.2rc1 versions of jamod. Or is this possibly some vendor-specific situation?
AheAhe
1,76233 gold badges1616 silver badges2525 bronze badges
5 Answers
At the end I wrote my own modbus implementation. I only needed to support 2 different function codes, so implementation was simple.
Although I later found another open source modbus library for java. I someone else comes across the same problem using modbus4j might help.
AheAhe
1,76233 gold badges1616 silver badges2525 bronze badges
Modbus requests have unit id = 0 by default. So any other id must be set to request, e.g.:
Wasted a few hours trying to solve the same problem you described in the question.
DH28DH28
Modbus Serial Master Jamod Watkinsville Ga
My method which i wrote based on your question works!
DavidDavid
1,55422 gold badges2424 silver badges3939 bronze badges
I had a similar problem, I was trying to write a value in a register that was defined in the 'device job' as a coil register. Mp3 duplicate file remover. So I used:
and that solved the problem. Maybe this help. https://aonpsb.weebly.com/stagetools-moving-picture-keygen-download.html.
Bye!
jomazzjomazz
I have encountered this problem on Android.
Because this task can take some significant time as it waits for a response from an external device, the solution I found was to execute writing and reading in another thread.
Jon
5,38855 gold badges3333 silver badges5454 bronze badges
Nestor PalomequeNestor Palomeque
Not the answer you're looking for? Browse other questions tagged javamodbus or ask your own question.PermalinkModbus Serial To Modbus TcpJoin GitHub todayModbus Tcp Master
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Serial Master Key Chapter 10Sign up
Find file Copy path
Modbus Serial Driver
Cannot retrieve contributors at this time
Serial Master I Margarita Smotret Youtube
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |