You need to be sure that your machine can withstand the higher temperatures or you could damage the machine or injure someone working nearby.
If the thermostat only allows 255 degrees, you would have to replace it with a thermostat that will go higher. Just be sure to use the correct solder for the application and temperature that you are working with.