modbus slave
Posted: Thu Mar 02, 2023 1:27 am
Hello,
I am using the AVR chipset with ATMEGA2560. I am really close to wrapping up my program. in my project I am sending a command to a device, get the data from the device and clean it, and lastly put the data into modbus registers.
My issue is with the modbus slave. I set the poll definition to slave ID 2, Function 03 reading holding registers. I have put my data into registers 100-104. I connect it to docklight to check if I have any errors. I do not have any error messages. I then modbus poll to read the registers but I keep getting error messages "Timeout Error" or "No Connection". Any advice? Thank you for your time. Attached is my code.
I am using the AVR chipset with ATMEGA2560. I am really close to wrapping up my program. in my project I am sending a command to a device, get the data from the device and clean it, and lastly put the data into modbus registers.
My issue is with the modbus slave. I set the poll definition to slave ID 2, Function 03 reading holding registers. I have put my data into registers 100-104. I connect it to docklight to check if I have any errors. I do not have any error messages. I then modbus poll to read the registers but I keep getting error messages "Timeout Error" or "No Connection". Any advice? Thank you for your time. Attached is my code.