46 |
46 |
47 //fast probe |
47 //fast probe |
48 //plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]); |
48 //plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]); |
49 destination[Z_AXIS] = 1.1 * max_length[Z_AXIS] * Z_HOME_DIR; |
49 destination[Z_AXIS] = 1.1 * max_length[Z_AXIS] * Z_HOME_DIR; |
50 feedrate = homing_feedrate[Z_AXIS]; |
50 feedrate = homing_feedrate[Z_AXIS]; |
51 plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate/60, active_extruder); |
51 plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate/60, active_extruder, false); |
52 st_synchronize(); |
52 st_synchronize(); |
53 |
53 |
54 //feedrate = 0.0; |
54 //feedrate = 0.0; |
55 |
55 |
56 SERIAL_ECHO("current_position[Z_AXIS]=");SERIAL_ECHOLN(current_position[Z_AXIS]); |
56 SERIAL_ECHO("current_position[Z_AXIS]=");SERIAL_ECHOLN(current_position[Z_AXIS]); |
79 //************************************************************************************************************************************************** |
79 //************************************************************************************************************************************************** |
80 //fast move clear |
80 //fast move clear |
81 plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], meas, current_position[E_AXIS]); |
81 plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], meas, current_position[E_AXIS]); |
82 destination[Z_AXIS] = Z_HOME_RETRACT_MM; |
82 destination[Z_AXIS] = Z_HOME_RETRACT_MM; |
83 feedrate = fast_home_feedrate[Z_AXIS]; |
83 feedrate = fast_home_feedrate[Z_AXIS]; |
84 plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate/60, active_extruder); |
84 plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate/60, active_extruder, false); |
85 st_synchronize(); |
85 st_synchronize(); |
86 |
86 |
87 //check z stop isn't still triggered |
87 //check z stop isn't still triggered |
88 if ( READ(X_MIN_PIN) != X_ENDSTOPS_INVERTING ) |
88 if ( READ(X_MIN_PIN) != X_ENDSTOPS_INVERTING ) |
89 { |
89 { |