Skip to content

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

Open

Description

@maks-davletchin

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?

Activity

  1. atakankan commented on Feb 15, 2022

    @atakankan

    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?

  2. maks-davletchin commented on Feb 16, 2022

    @maks-davletchin
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions