This is all taken care of in the travel limits, If you are 10 mm over the X_Min then enter -10mm to set the edge of bed.
//************************************************************************************************************************
// Travel limits after homing (units are in mm)
#define X_MIN_POS 0
#define Y_MIN_POS 0
#define Z_MIN_POS 0
#define X_MAX_POS 220
#define Y_MAX_POS 270
#define Z_MAX_POS 190
//************************************************************************************************************************
Edited 2 time(s). Last edit at 10/31/2019 08:48AM by Roberts_Clif.
Computer Programmer / Electronics Technician