Whenever I made a change to the modbus.cfg it’s like the previous version of the cfg is kept.
Even when I remove modbus.cfg and restart OH, modbus is still working.
The location of the file is /public/openHAB/conf/services.
Could it be that the conf folders are copied to another location?
Look to see if this file exists. If it does make sure it matches what you put into your modbus.cfg file. You can delete this file and restart OH if the contents do not look right.