Comments (5)
You're right. The Modbus Standard Page 5 defines a max packet size of 260bytes.
I got the number from the libmodbus implementation. But it is the max number of coils (bits) which can be written, not the packet size.
Thank you for the hint.
from modbus-rs.
I think that we can, at least, hardcode the MAX_WRITE according to the standard as 260 and limit the MAX size on the application level if needed (for some controllers MAX size is less than documented 260)
from modbus-rs.
For example my Schneider M258 accepts 129 and choking with anything above.
from modbus-rs.
Yes, it's an application level limit. modbus-rs should support the whole range.
Fixed in 4e640e2
from modbus-rs.
Cool thanks! By the way you've made a great lib!
from modbus-rs.
Related Issues (17)
- Implement coil/discrete input read functions HOT 2
- Error info is not detailed enough HOT 1
- Don't ignore errors in `scoped` drop functions
- error due to modbus-test-server
- Serial ASCII and RTU? HOT 1
- How specify the Unit ID to connect with? HOT 2
- Remove dependency on "diagslave" in tests HOT 3
- Server implementation? HOT 11
- Use libmodbus unittest server code
- Proposal: add support for modbus-RTU (and serial ports) HOT 3
- Clarification of `read_holding_registers` result HOT 2
- Best approach to read out multiple registers simultaneously HOT 2
- Transport implementing Clone HOT 4
- Proposal: Functions for dealing with multi-register values HOT 4
- byteorder big, wordorder little HOT 1
- disconnecting the client HOT 5
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 modbus-rs.