No, the slave address is defined in software. If I recall correctly, the address is passed as a parameter in the modbus begin() function. You would need to read your switch settings and combine them together to create an address - do this in setup() before calling the modbus begin() function so you can pass the address.
1 Like