Hello everyone!
I implemented on an esp32 board a modbus slave device with some parameter managed as holding registers (0x03 read, 0x10 write). I could be able to do that modifying the esp-idf mb_slave example:
https://github.com/espressif/esp-idf/tr ... l/mb_slave
Getting into the API provided I can't find any method/interface to provide the data range for those holding registers in order trigger, in case of write command (0x10) of data outside the defined range for that particular register, the Exception frame response with:
1) Exception function code = Request function code + 128 (0x80)
2) Exception code = 03 (0x03) Illegal data value. The value in the requested data field is not an authorized value for the slave
How can I implement modbus slave exception code: 0x03 Illegal data value
How can I implement modbus slave exception code: 0x03 Illegal data value
- Attachments
-
- Exception frame response
- ExceptionFrame.png (7.69 KiB) Viewed 673 times
-
- Exception code is in the data field of exception frame response
- ExceptionCodes.png (27.61 KiB) Viewed 673 times
Re: How can I implement modbus slave exception code: 0x03 Illegal data value
Hello @mlotorto, did you receive a response to this post?
Thanks
Thanks
Who is online
Users browsing this forum: brushlow18 and 142 guests