Modbus protocol Implimentation

Dear all,

Here i am attaching my code for reference. I can successfully upload code. Here i could not able to read data from Slave . I am getting below error messages.

Here i am adding my wiring diagram and its setup file