Advertisement
soapee01

screw-adjust.cfg

May 20th, 2025
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.67 KB | None | 0 0
  1. [gcode_macro Tram_Z] # Prusa's calibrate Z
  2. description: Tram Z axis
  3. gcode:
  4.     {% set max_z = printer.toolhead.axis_maximum.z|float %}
  5.     {% if printer.toolhead.homed_axes != "xyz" %}
  6.     G28
  7.     {% endif %}
  8.     G1 X20 Y0
  9.     G1 Z{max_z-10} F2000 #Update with Z height.
  10.     FORCE_MOVE STEPPER=stepper_z Distance=20 Velocity=10
  11.     G1 Z{max_z-50} F2000 # Move down
  12.     G28 Z # Home again
  13.  
  14. [screws_tilt_adjust]
  15. # SW Nylock Mod: Screw 1 uses the 6mm metallic spacer so its
  16. # height is considered the baseline. For tilt adjust using the
  17. # command SCREWS_TILT_CALCULATE or MACRO ADJUST_BED_SCREWS, this has to be your Screw 1:
  18. #
  19. # ******************
  20. # * S7 S8 S9 *
  21. # * *
  22. # Bed: * S5 S1 S6 *
  23. # * *
  24. # * S2 S3 S4 *
  25. # ******************
  26. #
  27. # soapee01: These coordinates appear to be Y,X. Odd. Nope, the guide had them in backwards.
  28. #screw1: 128,110
  29. screw1: 102.3,98.6
  30. screw1_name: Center
  31. #screw2: 13,6
  32. #screw2: -3.2,0.1
  33. screw2: 0.1,-3.2
  34. screw2_name: Front Left
  35. #screw3: 13,115
  36. #screw3: -2.5,98.2
  37. screw3: 98.2,-2.5
  38. screw3_name: Front Center
  39. #screw4: 13,210
  40. #screw4: -2.5,203.1
  41. screw4: 203.1,-2.5
  42. screw4_name: Front Right
  43. #screw5: 123,6
  44. #screw5: 102,0.1
  45. screw5: 0.1,102
  46. screw5_name: Center Left
  47. #screw6: 123,210
  48. #screw6: 102.8,203.4
  49. screw6: 203.4,102.8
  50. screw6_name: Center Right
  51. #screw7: 228,6
  52. #screw7:207.1,0.1
  53. screw7: 0.1,207.1
  54. screw7_name: Back Left
  55. #screw8: 228,115
  56. #screw8: 207.1,99
  57. screw8: 99,207.1
  58. screw8_name: Back Center
  59. #screw9: 228,210
  60. #screw9: 208.3,203.6
  61. screw9: 203.6,208.3
  62. screw9_name: Back Right
  63. horizontal_move_z: 10.
  64. speed: 50.
  65. screw_thread: CCW-M3
  66.  
  67. [gcode_macro ADJUST_BED_SCREWS]
  68. gcode:
  69.     # Heat the bed at 80ºc to proceed with a more accurate process
  70.     M140 S80 ; start heating bed to 80ºc
  71.     G28 ; home
  72.     Tram_Z ; tram z aka calibrate z
  73.    
  74.     M190 S80 ; wait for bed to reach 80ºc
  75.     G4 P300000 ; Waits 5 min for the bed temp to stabilize
  76.     # HOT TEMPERATURE! BE CAREFUL WHEN TOUCHING THE BED OR THE BED SCREWS
  77.     # HOT TEMPERATURE! BE CAREFUL WHEN TOUCHING THE BED OR THE BED SCREWS
  78.     # HOT TEMPERATURE! BE CAREFUL WHEN TOUCHING THE BED OR THE BED SCREWS
  79.     # HOT TEMPERATURE! BE CAREFUL WHEN TOUCHING THE BED OR THE BED SCREWS
  80.    
  81.     SCREWS_TILT_CALCULATE SAMPLE_RETRACT_DIST=1
  82.     G1 X180 Y199 Z50 F1000
  83.     M190 S0 ; turn off bed heater
  84.     M117 !! ATTENTION BED IS HOT !!
  85.     UPDATE_DELAYED_GCODE ID=clear_display DURATION=3
  86.     M117 remove pei sheet
  87.     UPDATE_DELAYED_GCODE ID=clear_display DURATION=3
  88.     M117 adjust bed screws
  89.     UPDATE_DELAYED_GCODE ID=clear_display DURATION=3
  90.     # REPEAT THIS MACRO UNTIL PERFECTION
  91.  
  92. [menu __main __setup __calib __Ajust_Bed_Screws]
  93. type: command
  94. enable: {not printer.idle_timeout.state == "Printing"}
  95. name: Adjust Bed Screws
  96. gcode:
  97.     ADJUST_BED_SCREWS
  98.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement