Hello,
I have to interface PIC micro controller with PLC over modbus.
I have to read 120 number of holding registers of PLC and according to values received the port pin of micro controller is set or cleared.
I have used 15 74HCT574 latch IC and all are connected to one port of micro controller.
But in programming i am bit confused.
I am using switch case. But as I mentioned I have got 120 process values that I need to compare, it increases the size of code.
Please suggest any alternative to reduce the code size.
thanks,
paddy
I have to interface PIC micro controller with PLC over modbus.
I have to read 120 number of holding registers of PLC and according to values received the port pin of micro controller is set or cleared.
I have used 15 74HCT574 latch IC and all are connected to one port of micro controller.
But in programming i am bit confused.
I am using switch case. But as I mentioned I have got 120 process values that I need to compare, it increases the size of code.
Please suggest any alternative to reduce the code size.
thanks,
paddy