I
I am doing a project of controlling a relay that will control another motor using modbus. A computer will be the master and a PIC16F877 connected using RS232 as the slave. The circuit is a lot similar to that of modbus.pl by Andrei (memory, max232)
My question is, how to assign modbus address of coils to a specific port in Microchip PIC? I have no idea of doing it. I am using PIC16F877 with the compiler PIC C.
This is like say, when I used function 05 which is to force a single coil to close or open, it will actually affect the relay. Any ideas?
Thanks in advance guys.
My question is, how to assign modbus address of coils to a specific port in Microchip PIC? I have no idea of doing it. I am using PIC16F877 with the compiler PIC C.
This is like say, when I used function 05 which is to force a single coil to close or open, it will actually affect the relay. Any ideas?
Thanks in advance guys.