My Marlin configs for Fabrikator Mini and CTC i3 Pro B
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

tool_change.h 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. /**
  43. * Perform a tool-change, which may result in moving the
  44. * previous tool out of the way and the new tool into place.
  45. */
  46. void tool_change(const uint8_t tmp_extruder, const float fr_mm_s=0.0, bool no_move=false);
  47. #endif // TOOL_CHANGE_H