My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2020 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 <https://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #include "../../inc/MarlinConfig.h"
  23. #if ENABLED(DIRECT_STEPPING)
  24. #include "../../feature/direct_stepping.h"
  25. #include "../gcode.h"
  26. #include "../../module/planner.h"
  27. /**
  28. * G6: Direct Stepper Move
  29. */
  30. void GcodeSuite::G6() {
  31. // TODO: feedrate support?
  32. if (parser.seen('R'))
  33. planner.last_page_step_rate = parser.value_ulong();
  34. if (!DirectStepping::Config::DIRECTIONAL) {
  35. if (parser.seen('X')) planner.last_page_dir.x = !!parser.value_byte();
  36. if (parser.seen('Y')) planner.last_page_dir.y = !!parser.value_byte();
  37. if (parser.seen('Z')) planner.last_page_dir.z = !!parser.value_byte();
  38. if (parser.seen('E')) planner.last_page_dir.e = !!parser.value_byte();
  39. }
  40. // No index means we just set the state
  41. if (!parser.seen('I')) return;
  42. // No speed is set, can't schedule the move
  43. if (!planner.last_page_step_rate) return;
  44. const page_idx_t page_idx = (page_idx_t) parser.value_ulong();
  45. uint16_t num_steps = DirectStepping::Config::TOTAL_STEPS;
  46. if (parser.seen('S')) num_steps = parser.value_ushort();
  47. planner.buffer_page(page_idx, 0, num_steps);
  48. reset_stepper_timeout();
  49. }
  50. #endif // DIRECT_STEPPING