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

stepper.h 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. stepper.h - stepper motor driver: executes motion plans of planner.c using the stepper motors
  3. Part of Grbl
  4. Copyright (c) 2009-2011 Simen Svale Skogsrud
  5. Grbl is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 3 of the License, or
  8. (at your option) any later version.
  9. Grbl is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with Grbl. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #ifndef stepper_h
  17. #define stepper_h
  18. #include "planner.h"
  19. // Initialize and start the stepper motor subsystem
  20. void st_init();
  21. // Block until all buffered steps are executed
  22. void st_synchronize();
  23. // Set current position in steps
  24. void st_set_position(const long &x, const long &y, const long &z, const long &e);
  25. void st_set_e_position(const long &e);
  26. // Get current position in steps
  27. long st_get_position(char axis);
  28. // The stepper subsystem goes to sleep when it runs out of things to execute. Call this
  29. // to notify the subsystem that it is time to go to work.
  30. void st_wake_up();
  31. void checkHitEndstops(); //call from somwhere to create an serial error message with the locations the endstops where hit, in case they were triggered
  32. void endstops_hit_on_purpose(); //avoid creation of the message, i.e. after homeing and before a routine call of checkHitEndstops();
  33. void checkStepperErrors(); //Print errors detected by the stepper
  34. void finishAndDisableSteppers();
  35. extern block_t *current_block; // A pointer to the block currently being traced
  36. #endif