Modbus slave programming


Thread Starter

Er. K

Hi all,

I am a beginner in modbus programming. As a part of my project, i need to implement modbus communication. mainly modbus slave part. I got a modbus_slave.c file. I am studying the flow of the program. I need to know 'how to set the address range for each section of registers such as holding and input registers?' since in this program starting address in each query will be checked for illegal address. if anyone could guide me to implement the slave part, that would be appreciated.

Er. K