Advertisement
Guest User

Untitled

a guest
Mar 13th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. #ifndef ENDSTOPPULLUPS
  2. // fine Enstop settings: Individual Pullups. will be ignord if ENDSTOPPULLUPS is defined
  3. #define ENDSTOPPULLUP_XMAX
  4. #define ENDSTOPPULLUP_YMAX
  5. #define ENDSTOPPULLUP_ZMAX
  6. #define ENDSTOPPULLUP_XMIN
  7. #define ENDSTOPPULLUP_YMIN
  8. //#define ENDSTOPPULLUP_ZMIN
  9. #endif
  10.  
  11. #ifdef ENDSTOPPULLUPS
  12. #define ENDSTOPPULLUP_XMAX
  13. #define ENDSTOPPULLUP_YMAX
  14. #define ENDSTOPPULLUP_ZMAX
  15. #define ENDSTOPPULLUP_XMIN
  16. #define ENDSTOPPULLUP_YMIN
  17. #define ENDSTOPPULLUP_ZMIN
  18. #endif
  19.  
  20. // The pullups are needed if you directly connect a mechanical endswitch between the signal and ground pins.
  21. const bool X_ENDSTOPS_INVERTING = true; // set to true to invert the logic of the endstops.
  22. const bool Y_ENDSTOPS_INVERTING = true; // set to true to invert the logic of the endstops.
  23. const bool Z_ENDSTOPS_INVERTING = true; // set to true to invert the logic of the endstops.
  24. //#define DISABLE_MAX_ENDSTOPS
  25.  
  26. // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
  27. #define X_ENABLE_ON 0
  28. #define Y_ENABLE_ON 0
  29. #define Z_ENABLE_ON 0
  30. #define E_ENABLE_ON 0 // For all extruders
  31.  
  32. // Disables axis when it's not being used.
  33. #define DISABLE_X false
  34. #define DISABLE_Y false
  35. #define DISABLE_Z false
  36. #define DISABLE_E false // For all extruders
  37.  
  38. #define INVERT_X_DIR false // for Mendel set to false, for Orca set to true
  39. #define INVERT_Y_DIR true // for Mendel set to true, for Orca set to false
  40. #define INVERT_Z_DIR false // for Mendel set to false, for Orca set to true
  41. #define INVERT_E0_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false
  42. #define INVERT_E1_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false
  43. #define INVERT_E2_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false
  44.  
  45. // ENDSTOP SETTINGS:
  46. // Sets direction of endstops when homing; 1=MAX, -1=MIN
  47. #define X_HOME_DIR -1
  48. #define Y_HOME_DIR -1
  49. #define Z_HOME_DIR -1
  50.  
  51. #define min_software_endstops true //If true, axis won't move to coordinates less than HOME_POS.
  52. #define max_software_endstops true //If true, axis won't move to coordinates greater than the defined lengths below.
  53. // Travel limits after homing
  54. #define X_MAX_POS 180
  55. #define X_MIN_POS 0
  56. #define Y_MAX_POS 205
  57. #define Y_MIN_POS 0
  58. #define Z_MAX_POS 185
  59. #define Z_MIN_POS 0
  60.  
  61. #define X_MAX_LENGTH (X_MAX_POS - X_MIN_POS)
  62. #define Y_MAX_LENGTH (Y_MAX_POS - Y_MIN_POS)
  63. #define Z_MAX_LENGTH (Z_MAX_POS - Z_MIN_POS)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement