Whenever I have had to configure a Modbus system, it has gone something like this:
1
Decide which slave device is to have which address. Make a note so you dont forget.
It is usual to make the first slave device address #1, the second slave device address #2 etc.
Which addresses you use is not critical, as long as the addresses are in the range 1 to 255, and no two devices have the same address.
2
Set the addresses in the slave devices, either by setting DIP switches or links or in the configuration software of the slave device.
3
In the Application software on the Master device, configure the address for each slave as per the list you made when you decided the slave addresses.
4
Switch it all on and watch it working.
I cannot be any more specific as I do not know what hardware/software you have.
JimB