Guest User

Untitled

a guest
Jan 18th, 2025
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.27 KB | None | 0 0
  1. [gcode_macro PRINT_START]
  2. #SUPER SLICER-PRUSA SLICER: YOU MUST ADD THESE LINES TO PRINT START CODE IN THE PRINTER GCODE SECTION OR NOT OF THIS WiLL WORK - EACH LINE MUST BE UNCOMMENTED
  3. #M104 S0 ; Stops PrusaSlicer from sending temp waits separately
  4. #M140 S0
  5. #print_start EXTRUDER=[first_layer_temperature[initial_extruder]] BED=[first_layer_bed_temperature]
  6. gcode:
  7.  
  8.  
  9. # This part fetches data from your slicer. Such as bed temp, extruder temp, chamber temp and size of your printer.
  10. {% set target_bed = params.BED|int %}
  11. {% set target_extruder = params.EXTRUDER|int %}
  12. {% set x_wait = printer.toolhead.axis_maximum.x|float / 2 %}
  13. {% set y_wait = printer.toolhead.axis_maximum.y|float / 2 %}
  14.  
  15. # Homes the printer, sets absolute positioning and updates the Stealthburner leds.
  16.  
  17. SET_DISPLAY_TEXT MSG="HOMING ALL" # Displays info
  18. STATUS_HOMING # Sets SB-leds to homing-mode
  19. G28 # Full home (XYZ)
  20. G90 # Absolut position
  21. ## Uncomment for bed mesh (1 of 2)
  22. BED_MESH_PROFILE LOAD="default"
  23. # Checks if the bed temp is higher than 90c - if so then trigger a heatsoak.
  24. {% if params.BED|int > 90 %}
  25. SET_DISPLAY_TEXT MSG="BED HEAT: {target_bed}c" # Displays info
  26. #STATUS_HEATING # Sets SB-leds to heating-mode
  27. M106 S255 # Turns on the PT-fan
  28.  
  29. G1 X{x_wait} Y{y_wait} Z15 F9000 # Goes to center of the bed
  30. M190 S{target_bed} # Sets the target temp for the bed
  31. SET_DISPLAY_TEXT MSG="Heatsoak: {target_chamber}c" # Displays info
  32.  
  33. # If the bed temp is not over 90c, then it skips the heatsoak and just heats up to set temp with a 5min soak
  34. {% else %}
  35. SET_DISPLAY_TEXT MSG="Bed: {target_bed}c" # Displays info
  36. # STATUS_HEATING # Sets SB-leds to heating-mode
  37. G1 X{x_wait} Y{y_wait} Z15 F9000 # Goes to center of the bed
  38. M190 S{target_bed} # Sets the target temp for the bed
  39. SET_DISPLAY_TEXT MSG="Soak for 1min" # Displays info
  40. G4 P6000 # Waits 5 min for the bedtemp to stabilize
  41. {% endif %}
  42.  
  43. # Heating nozzle to 150 degrees. This helps with getting a correct Z-home
  44. SET_DISPLAY_TEXT MSG="TAPPITY TaP 150c" # Displays info
  45. M109 S150 # Heats the nozzle to 150c
  46.  
  47. ## Uncomment for V2 (Quad gantry level AKA QGL)
  48. SET_DISPLAY_TEXT MSG="QGL" # Displays info
  49. STATUS_LEVELING # Sets SB-leds to leveling-mode
  50. quad_gantry_level # Levels the buildplate via QGL
  51. SET_DISPLAY_TEXT MSG="CALIBRATING Z" # Displays info
  52. status_calibrating_z
  53. G28 Z # Homes Z again after QGL
  54.  
  55. # Heats up the nozzle up to target via data from slicer
  56. SET_DISPLAY_TEXT MSG="Hotend: {target_extruder}c" # Displays info
  57. STATUS_HEATING # Sets SB-leds to heating-mode
  58. G1 X{x_wait} Y{y_wait} Z15 F9000 # Goes to center of the bed
  59. M107 # Turns off partcooling fan
  60. M109 S{target_extruder} # Heats the nozzle to printing temp
  61.  
  62.  
  63. # Gets ready to print by doing a purge line and updating the SB-leds
  64. SET_DISPLAY_TEXT MSG="Printer goes brr" # Displays info
  65. STATUS_PRINTING # Sets SB-leds to printing-mode
  66. G0 X{x_wait - 50} Y4 F10000 # Moves to starting point
  67. G0 Z0.4 # Raise Z to 0.4
  68. G91 # Incremental positioning
  69. G1 X100 E20 F1000 # Purge line
  70. G90 # Absolute position
  71.  
  72. ##------------------------------------------------------------------------------------------##
  73. ################################ END PRINT ###################################################
  74. ##------------------------------------------------------------------------------------------##
Advertisement
Add Comment
Please, Sign In to add comment