Comments (3)
There isn't anything wrong with what you're doing except the obvious issue that you have specified a register count of zero in the second example.
What type of transaction are you using? (serial, TCP, RTU over TCP)
When you say "there are delays between read" I don't understand what you mean. Are you saying that each subsequent request after the first is delayed before sending?
If you are using a serial transaction, are you setting a transaction delay with setTransDelayMS
from j2mod.
Sorry, I fixed the issue to the correct length:
registers = master.readMultipleRegisters(1,100, 1);
I'm using Serial RTU.
setTransDelayMS seems to be a good start. How do I set it? Can i configure it out side from the library?
Here is monitor output i use to see the problem:
Thanks!
from j2mod.
Update:
I changed (hard coded) TransDelayMS and now it working good!
from j2mod.
Related Issues (20)
- How to get response when I write a command using SerialConnection writeBytes() method HOT 3
- ModbusTCPMaster: equals & hashCode method HOT 2
- Cannot open specific virtual COM port configured 8N2 on Windows, which works on legacy javax.comm driver HOT 3
- Move parts of DEBUG logging to TRACE HOT 3
- Production use; Repository maintenance HOT 1
- Registry edit popup HOT 1
- Ctrl+C SIGINT does not shutdown JVM with open SerialConnection HOT 1
- Unexpected Connection Closed by peer HOT 2
- Misleading documentation for reconnect parameter in ModbusTCPMaster HOT 1
- My RS485 can only send, but not receive. HOT 1
- Add capability to bind the Socket to specific local interface. HOT 2
- Request for quick example update for logging HOT 2
- Misleading documentation for SerialParameters HOT 2
- Serial port is left hanging in OS if it gets physically disconnected HOT 1
- SerialConnection.writeBytes(SerialConnection.java:199) method did not exist HOT 1
- ModbusMasterFactory should be in test dir? HOT 1
- `jSerialComm 2.9.3` dependency blocks `jSerialComm` upgrade HOT 1
- Android Devices HOT 1
- ModbusSerialTransport.getInterFrameDelay returns wrong values if the baudrate is below 19200
- Failed to read response! CRC Error in received frame HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from j2mod.