Modbus slave id change

Hi,

It is possible to change modbus slave id after reset to a value from a variable? I'm using Arduino PLC IDE and Arduino portenta machine control and i need to chagne the ID or other RS485 parameters of my device trought the modbus RTU. My idea is store the setting to the retain variables and load after restart. I can't acces any libraries of IDE where I can chagne this parametrs.

Do you have a code? Please show it

why?

I'm using IDE RS485 Modbus RTU settings


And I want to load this settings from variables after reset. Are there any libraries functions to set it?

What's this an interface?
How do you programmed the controller?
Do you using a C++ code?

This is Arduino PLC IDE interface, I use it for programimg the controller. Yes I also use C/C++ code but for setting the modbus I'm using the interface.