Adjunto las modificaciones del firmware:
-const bool Z_MIN_ENDSTOP_INVERTING = true;-------->const bool Z_MIN_ENDSTOP_INVERTING = false
-#define min_software_endstops true------>#define min_software_endstops false
-Copio modificaciones en seccion autolevel:
//===========================================================================
//============================ Bed Auto Leveling ============================
//===========================================================================
// @section bedlevel
#define ENABLE_AUTO_BED_LEVELING // Delete the comment to enable (remove // at the start of the line) Descomentar la linea para activar autolevel.
//#define Z_PROBE_REPEATABILITY_TEST // If not commented out, Z-Probe Repeatability test will be included if Auto Bed Leveling is Enabled. Opcional, si quereis tener activo el test de repeticion de medicion descomentar la linea
#ifdef ENABLE_AUTO_BED_LEVELING
// There are 2 different ways to specify probing locations
//
// - "grid" mode
// Probe several points in a rectangular grid.
// You specify the rectangle and the density of sample points.
// This mode is preferred because there are more measurements.
//
// - "3-point" mode
// Probe 3 arbitrary points on the bed (that aren't colinear)
// You specify the XY coordinates of all 3 points.
// Enable this to sample the bed in a grid (least squares solution)
// Note: this feature generates 10KB extra code size
#define AUTO_BED_LEVELING_GRID
#ifdef AUTO_BED_LEVELING_GRID
#define LEFT_PROBE_BED_POSITION 30 //SAG20150811---- Aqui las medidas en las cuales quieres que haga mediciones el bl touch(Limitada por la posicion respecto al extrusor
#define RIGHT_PROBE_BED_POSITION 165
#define FRONT_PROBE_BED_POSITION 20
#define BACK_PROBE_BED_POSITION 155
#define MIN_PROBE_EDGE 10 // The probe square sides can be no smaller than this
// Set the number of grid points per dimension
// You probably don't need more than 3 (squared=9)
#define AUTO_BED_LEVELING_GRID_POINTS 3 Aqui indicais cuantos puntos quereis para el autolevel, recomiendo 3 para camas cuadradas y 4 para rectangulares
#else // !AUTO_BED_LEVELING_GRID
// Arbitrary points to probe. A simple cross-product No es necesario modificar nada
// is used to estimate the plane of the bed.
#define ABL_PROBE_PT_1_X 15
#define ABL_PROBE_PT_1_Y 180
#define ABL_PROBE_PT_2_X 15
#define ABL_PROBE_PT_2_Y 20
#define ABL_PROBE_PT_3_X 140 //SAG20150811
#define ABL_PROBE_PT_3_Y 20
#endif // AUTO_BED_LEVELING_GRID
// Offsets to the probe relative to the extruder tip (Hotend - Probe) Aqui los offset del extrusor respecto del bl touch
// X and Y offsets must be integers //SAG20150811
#define X_PROBE_OFFSET_FROM_EXTRUDER -29 // Probe on: -left +right
#define Y_PROBE_OFFSET_FROM_EXTRUDER -20 // Probe on: -front +behind
#define Z_PROBE_OFFSET_FROM_EXTRUDER -0 // -below (always!)
//SAG20150811
#define Z_RAISE_BEFORE_HOMING 2 // (in mm) Raise Z before homing (G28) for Probe Clearance. Este valor puede ser necesario ser ajustado segun el offset del extrusor y bl touch, en mi caso no fue necesario
// Be sure you have this distance over your Z_MAX_POS in case
#define XY_TRAVEL_SPEED 8000 // X and Y axis travel speed between probes, in mm/min
//SAG20150811
#define Z_RAISE_BEFORE_PROBING 2 //How much the extruder will be raised before traveling to the first probing point. Este valor puede ser necesario ser ajustado segun el offset del extrusor y bl touch, en mi caso no fue necesario
#define Z_RAISE_BETWEEN_PROBINGS 2 //How much the extruder will be raised when traveling from between next probing points Este valor puede ser necesario ser ajustado segun el offset del extrusor y bl touch, en mi caso no fue necesario
#define Z_RAISE_AFTER_PROBING 0 //How much the extruder will be raised after the last probing point. Importante en mi caso el ajuste de este parametro es 0 si no la impresora imprime inexplicablemente en el aire
// #define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" //These commands will be executed in the end of G29 routine.
//Useful to retract a deployable probe.
//#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
//#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
//If defined, the Probe servo will be turned on only during movement and then turned off to avoid jerk
//The value is the delay to turn the servo off after powered on - depends on the servo speed; 300ms is good value, but you can try lower it.
// You MUST HAVE the SERVO_ENDSTOPS defined to use here a value higher than zero otherwise your code will not compile.
#define PROBE_SERVO_DEACTIVATION_DELAY 300 Descomentar esta linea, en mi caso si no no actua el servo.
-Configuracion de servos:
/*********************************************************************\
* R/C SERVO support
* Sponsored by TrinityLabs, Reworked by codexmas
**********************************************************************/
// Number of servos
//
// If you select a configuration below, this will receive a default value and does not need to be set manually
// set it manually if you have more servos than extruders and wish to manually control some
// leaving it undefined or defining as 0 will disable the servo subsystem
// If unsure, leave commented / disabled
//
#define NUM_SERVOS 1 // Servo index starts with 0 for M280 command //SAG20150811 Descomentar y colocar numero de serovos a 1
// Servo Endstops
//
// This allows for servo actuated endstops, primary usage is for the Z Axis to eliminate calibration or bed height changes.
// Use M851 to set the z-probe vertical offset from the nozzle. Store that setting with M500.
//
#define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1 Descomentar la linea e indicar que servo esta activo, en nuestro caso el z por tanto valor 0
#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 10,90} // X,Y,Z Axis Extend and Retract angles Descomentar la linea e indicar angulos de funcionamiento del servo, en el caso de bl touch 10,90
Con esta configuracion funciona perfectamente el autolevel con una placa lionheart pro.
Un saludo.