I would try to read the dipswitch in setup, transform it to an address and then use that address down in the code.