Lack of IllegalAddress error while reading from not existing holding registers #2687
-
I am trying to create simple SerialModbusServer using pymodbus library and then I want to read some not exisiting registers. I expect getting a modbus "Illegal Data Address" error but as I understand it correctly I'm getting "Slave Device Failue": Can anyone explain what am I doing wrong? I was also trying to use ModbusSequentialDataBlock but with similat results. PS I was really trying to show my code in a proper code block using editor but I always ended up like this: Server code:
` Client code:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Not sure I understand what you want, a server do not read data. You do not write which version of the library you use, so I assume it is the newest. If you refer to the client, then the reason is probably that you did not define slave 1 in the server. Did you try to to read valid data first ? Normally you would get illegal address if the slave is correct. |
Beta Was this translation helpful? Give feedback.
Seems like a bug, pull requests are welcome.