Report as inappropriate

Any idea how to change the height the Z axis will move to after a print? Moving it all the way to the lowest stop seems to be too much, especially when I'm only printing things of 40-50 layers. Is there a gcode value I can adjust depending on the height of the model I'm printing? The sample files included on the SD card have this kind of function where the build plate seems to move down only 5-10mm from the top of the print.