How can I address the slaves for my master device?

No way I will use the time needed to plow through all material You posted here. It's not at all needed to handle the dip switch matter.

My guess is that You're producing papers but lacks simple knowledge like how to read some switch inputs and assign values to a variable.

Sorry but I jump off this train.

Good luck.