My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

tool_change.h 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. *
  5. * Based on Sprinter and grbl.
  6. * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #ifndef TOOL_CHANGE_H
  23. #define TOOL_CHANGE_H
  24. #include "../inc/MarlinConfig.h"
  25. #if DO_SWITCH_EXTRUDER
  26. void move_extruder_servo(const uint8_t e);
  27. #endif
  28. #if ENABLED(SWITCHING_NOZZLE)
  29. void move_nozzle_servo(const uint8_t e);
  30. #endif
  31. #if ENABLED(PARKING_EXTRUDER)
  32. #if ENABLED(PARKING_EXTRUDER_SOLENOIDS_INVERT)
  33. #define PE_MAGNET_ON_STATE !PARKING_EXTRUDER_SOLENOIDS_PINS_ACTIVE
  34. #else
  35. #define PE_MAGNET_ON_STATE PARKING_EXTRUDER_SOLENOIDS_PINS_ACTIVE
  36. #endif
  37. void pe_set_magnet(const uint8_t extruder_num, const uint8_t state);
  38. inline void pe_activate_magnet(const uint8_t extruder_num) { pe_set_magnet(extruder_num, PE_MAGNET_ON_STATE); }
  39. inline void pe_deactivate_magnet(const uint8_t extruder_num) { pe_set_magnet(extruder_num, !PE_MAGNET_ON_STATE); }
  40. void pe_magnet_init();
  41. #endif // PARKING_EXTRUDER
  42. #if ENABLED(SINGLENOZZLE)
  43. extern float singlenozzle_swap_length;
  44. extern int16_t singlenozzle_prime_speed,
  45. singlenozzle_retract_speed;
  46. extern uint16_t singlenozzle_temp[EXTRUDERS];
  47. #if FAN_COUNT > 0
  48. extern uint8_t singlenozzle_fan_speed[EXTRUDERS];
  49. #endif
  50. #endif
  51. /**
  52. * Perform a tool-change, which may result in moving the
  53. * previous tool out of the way and the new tool into place.
  54. */
  55. void tool_change(const uint8_t tmp_extruder, const float fr_mm_s=0.0, bool no_move=false);
  56. #endif // TOOL_CHANGE_H