-
Notifications
You must be signed in to change notification settings - Fork 20
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
Don't modify register addresses #16
Comments
Real register and bit addresses start in Modbus protocol from 0. But unfortunately device manufactures use very different address schemes. The real address is stored internally in params->sad. There is a short description about that in the man page . |
Sure. But I think it is a bit confusing. Might be a better idea to add a command line option like |
What about introducing different addressing schemes as additional parameter: "start from 0", "start from 1", "address space and register number together"? By default, address will be interpreted as before: "start from 1". |
In the file command_line.c you decrease the given register address by 1.
Is there any reason to modify the register address instead of using the given value? The start address of the devices I use is 1. That's why I have to set the address to 2 on the commandline. This might be very confusing for people comparing the device documentation with my check configuration.
The text was updated successfully, but these errors were encountered: