Error illegal data address
Hello all,
I'm using libmodbus in TCP/IP mode.
I'm trying to set some parameters in a device through preset_
When I try to set the device location (1) parmeter in location register 40026 I got the following message: "ERROR Illegal data addess (-2)".
Here is the data:
[00][01]
Waiting for a message (12 bytes)...
<00><01>
ERROR Illegal data address (-2)
The same error is happening in read operations. When I try to read the device status register (40003) through
read_holding_
Here is the data:
[00][06]
Waiting for a message (11 bytes)...
<00><06>
ERROR Illegal data address (-2)
Do you see any error in the data sent? Is there any other thing that could be causing this error?
Thanks is advance.
Best regards,
Nuno
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- libmodbus Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Marco
- Solved:
- Last query:
- Last reply: