G28 [AXIS ...]
Home. Specify an axis, several, or use G28 with no parameters to home all.
G28 will cause an axis to seek its configured endstop. Smoothieware features a number of G28 sub commands implemented as G28.n.
G28 X Y
Instruct the printer to seek the configured endstop for both X and Y.