Moves fast away from home..
Actually my HBP size is 300x300mm.
So x,y cordinate for Z xis home was calculating at X_max/2 and Y_max/2.
Bit it didn't worked..Then I made changes..
#ifdef Z_SAFE_HOMING
#define Z_SAFE_HOMING_X_POINT (X_MAX_LENGTH/2.0) // X point for Z homing when homing all axis (G28)
#define Z_SAFE_HOMING_Y_POINT (Y_MAX_LENGTH/2.0) // Y point for Z homing when homing all axis (G28)