Send this Gcode on plate resume. It is a good place to set RAMPS position, as resume also could happend after crashes.