Well, found how to increase the number of ports on the Mega to be used... it is on the Arduino code, the default value of ports is 14, we just have to change this number to the desired number, in my case I have activated all of the digital ports with the number of 54
Now, on the Modbus configurator how can we call the analog ports? as we cannot write "Axx", it allows just numbers