Advertisement
Guest User

XYZ Movement

a guest
Jun 14th, 2016
565
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.38 KB | None | 0 0
  1. // ################# XYZ movements ###################
  2.  
  3. // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
  4. #define X_ENABLE_ON 0
  5. #define Y_ENABLE_ON 0
  6. #define Z_ENABLE_ON 0
  7.  
  8. // Disables axis when it's not being used.
  9. #define DISABLE_X 0
  10. #define DISABLE_Y 0
  11. #define DISABLE_Z 0
  12. #define DISABLE_E 0
  13.  
  14. // Inverting motor direction. Only in case of pure cartesian printers, this
  15. // is also the axis you invert!
  16. #define INVERT_X_DIR false
  17. #define INVERT_Y_DIR true
  18. #define INVERT_Z_DIR false
  19.  
  20. //// ENDSTOP SETTINGS:
  21. // Sets direction of endstops when homing; 1=MAX, -1=MIN
  22. #define X_HOME_DIR 1
  23. #define Y_HOME_DIR 1
  24. #define Z_HOME_DIR 1
  25.  
  26. // maximum positions in mm - only fixed numbers!
  27. // For delta robot Z_MAX_LENGTH is the maximum travel of the towers and should be set to the distance between the hotend
  28. // and the platform when the printer is at its home position.
  29. // If EEPROM is enabled these values will be overridden with the values in the EEPROM
  30. #define X_MAX_LENGTH 95
  31. #define Y_MAX_LENGTH 95
  32. #define Z_MAX_LENGTH 577.212//574.600//580.000//564.581
  33.  
  34. // Coordinates for the minimum axis. Can also be negative if you want to have the bed start at 0 and the printer can go to the left side
  35. // of the bed. Maximum coordinate is given by adding the above X_MAX_LENGTH values.
  36. #define X_MIN_POS -95
  37. #define Y_MIN_POS -95
  38. #define Z_MIN_POS 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement