paddy_p
Member level 2
- Joined
- May 31, 2012
- Messages
- 48
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,288
- Location
- Mumbai India
- Activity points
- 1,680
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. (using switch case)
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. (using switch case)
Please suggest any alternative to reduce the code size.
thanks,
paddy