Dual Nozzle, Dual Stepper, Servo Actuated Nozzle - Marlin Settings? February 27, 2017 04:28PM |
Registered: 7 years ago Posts: 14 |
Re: Dual Nozzle, Dual Stepper, Servo Actuated Nozzle - Marlin Settings? March 02, 2017 09:54AM |
Registered: 7 years ago Posts: 14 |
#define EXTRUDERS 2 #define SWITCHING_EXTRUDER #if ENABLED(SWITCHING_EXTRUDER) ... #define SWITCHING_EXTRUDER_WITH_MULTIPLE_STEPPERS #endif
#if ENABLED(SWITCHING_EXTRUDER_WITH_MULTIPLE_STEPPERS) #undef HOTENDS #undef E_STEPPERS #undef E_MANUAL #undef TOOL_E_INDEX #define HOTENDS EXTRUDERS #define E_STEPPERS EXTRUDERS #define E_MANUAL EXTRUDERS #define TOOL_E_INDEX current_block->active_extruder #endif #endif //CONDITIONALS_LCD_H
#if ENABLED(SWITCHING_EXTRUDER) #define E_STEP_WRITE(v) E0_STEP_WRITE(v) #define NORM_E_DIR() E0_DIR_WRITE(current_block->active_extruder ? INVERT_E0_DIR : !INVERT_E0_DIR) #define REV_E_DIR() E0_DIR_WRITE(current_block->active_extruder ? !INVERT_E0_DIR : INVERT_E0_DIR)
#if ENABLED(SWITCHING_EXTRUDER) && (!ENABLED(SWITCHING_EXTRUDER_WITH_MULTIPLE_STEPPERS))
M218 T1 X20 Z-2will set the offset of E1 as shown
Re: Dual Nozzle, Dual Stepper, Servo Actuated Nozzle - Marlin Settings? March 02, 2017 11:25AM |
Registered: 8 years ago Posts: 5,232 |
Re: Dual Nozzle, Dual Stepper, Servo Actuated Nozzle - Marlin Settings? March 02, 2017 01:47PM |
Registered: 7 years ago Posts: 14 |
void tool_change(const uint8_t tmp_extruder, const float fr_mm_m/*=0.0*/, bool no_move/*=false*/) { <...code cut here....> #if ENABLED(SWITCHING_EXTRUDER) // <0 if the new nozzle is higher, >0 if lower. A bigger raise when lower. float z_diff = hotend_offset[Z_AXIS][active_extruder] - hotend_offset[Z_AXIS][tmp_extruder], z_raise = 0.3 + (z_diff > 0.0 ? z_diff : 0.0); // Always raise by some amount planner.buffer_line( current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS] + z_raise, current_position[E_AXIS], planner.max_feedrate_mm_s[Z_AXIS], active_extruder ); stepper.synchronize(); move_extruder_servo(active_extruder); delay(500); // Move back down, if needed if (z_raise != z_diff) { planner.buffer_line( current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS] + z_diff, current_position[E_AXIS], planner.max_feedrate_mm_s[Z_AXIS], active_extruder ); stepper.synchronize(); } #endif
Re: Dual Nozzle, Dual Stepper, Servo Actuated Nozzle - Marlin Settings? May 25, 2017 09:53AM |
Registered: 6 years ago Posts: 1 |
Re: Dual Nozzle, Dual Stepper, Servo Actuated Nozzle - Marlin Settings? November 14, 2018 04:56PM |
Registered: 9 years ago Posts: 7 |
Re: Dual Nozzle, Dual Stepper, Servo Actuated Nozzle - Marlin Settings? November 14, 2018 07:04PM |
Registered: 7 years ago Posts: 14 |
Re: Dual Nozzle, Dual Stepper, Servo Actuated Nozzle - Marlin Settings? March 18, 2019 12:47PM |
Registered: 9 years ago Posts: 7 |
Re: Dual Nozzle, Dual Stepper, Servo Actuated Nozzle - Marlin Settings? April 06, 2019 01:36AM |
Registered: 6 years ago Posts: 15 |