I am a full complete newbie, I have mainly program in ladder for PLC programming.
What I am trying to do is to read 4 digital pin ( 5 to 8 ) were the first input (5) will represent bit 0, second input (6) bit 1 and so on, after reading the inputs I will have a “number” that I would tell me what subroutine the program need to go.
Basically what I am trying to develop is a test program that depending of the connection to the fixture it will go to the subroutine that will test the product, I have read the bitwrite and bitread commands but I do not totally understand them.
Any help on this I would like to thank you in advance