Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem of reading and writing regs more then 255! #43

Open
max-davletchin opened this issue Apr 27, 2020 · 2 comments
Open

Problem of reading and writing regs more then 255! #43

max-davletchin opened this issue Apr 27, 2020 · 2 comments

Comments

@max-davletchin
Copy link

I have 350 regs in my project, but if I want to read regs from 255 and higher - arduino freezes, and doesn't recieve any anser messages (for example, with errors or other). But if I try to read reg higher 350, I get answer with error "ILLEGAL DATA ADDRESS". How can I solve this problem?

@atakankan
Copy link

I am also having the same problem. I'm trying to figure it out by looking at the source code. did you solve it?

I have 350 regs in my project, but if I want to read regs from 255 and higher - arduino freezes, and doesn't recieve any anser messages (for example, with errors or other). But if I try to read reg higher 350, I get answer with error "ILLEGAL DATA ADDRESS". How can I solve this problem?

@max-davletchin
Copy link
Author

File SimpleModbusSlave.cpp, line 119, change "unsigned char index;" to "unsigned int index;"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants