Laser head hitting the sides and not resetting

This discussion may help sort out the configuration settings for each axis:

A summary on my blog gives a reasonable sequence, too.