It looks to me as though you are making things more complicated than they need to be
If I understand correctly you want each cassette to have a unique combination of 6 inputs to the Arduino. Then, based on the combination of inputs the Arduino will do something different
Is that correct ?