do_blocking_move_to(X_MAX_POS+SLED_DOCKING_OFFSET+offset-1,current_position[Y_AXIS],current_position[Z_AXIS]);// Dock sled a bit closer to ensure proper capturing
do_blocking_move_to(X_MAX_POS+SLED_DOCKING_OFFSET+offset-1,current_position[Y_AXIS],current_position[Z_AXIS]);// Dock sled a bit closer to ensure proper capturing
digitalWrite(SLED_PIN,LOW);// turn off magnet
digitalWrite(SLED_PIN,LOW);// turn off magnet
do_blocking_move_to(oldXpos,current_position[Y_AXIS],current_position[Z_AXIS]);// return to position before docking
do_blocking_move_to(oldXpos,current_position[Y_AXIS],current_position[Z_AXIS]);// return to position before docking