Guest User

Untitled

a guest
Nov 4th, 2025
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. [gcode_macro START_PRINT]
  2. variable_prepare: 0
  3. gcode:
  4. WAIT_TEMP_END
  5. CLEAR_PAUSE
  6. {% set g28_extruder_temp = printer.custom_macro.g28_ext_temp %}
  7. #{% set bed_temp = printer.custom_macro.default_bed_temp %}
  8. #{% set bed_temp = 0 %}
  9. #{% set extruder_temp = printer.custom_macro.default_extruder_temp %}
  10. #{% set extruder_temp = 180 %}
  11. #{% if 'BED_TEMP' in params|upper and (params.BED_TEMP|float) %}
  12. {% set bed_temp = params.BED_TEMP|float %}
  13. #{% endif %}
  14. #{% if 'EXTRUDER_TEMP' in params|upper and (params.EXTRUDER_TEMP|float) %}
  15. {% set extruder_temp = params.EXTRUDER_TEMP|float %}
  16. #{% endif %}
  17. {% if printer['gcode_macro START_PRINT'].prepare|int == 0 %}
  18. PRINT_PREPARE_CLEAR
  19. CX_ROUGH_G28 EXTRUDER_TEMP={extruder_temp} BED_TEMP={bed_temp}
  20. #CX_ROUGH_G28 EXTRUDER_TEMP=180 BED_TEMP=0
  21. CX_NOZZLE_CLEAR
  22. ACCURATE_G28
  23. {% if printer['output_pin ADAPTIVE_BED_MESH'].value == 1 %}
  24. RESPOND TYPE=command MSG="Starting Adaptive Bed Mesh..."
  25. BED_MESH_CLEAR
  26. BED_MESH_CALIBRATE
  27. BED_MESH_PROFILE SAVE=adaptive
  28. BED_MESH_PROFILE LOAD=adaptive
  29. {% else %}
  30. {% if printer['output_pin FULL_BED_MESH'].value == 0 and (not printer['bed_mesh'].profile_name) %}
  31. RESPOND TYPE=command MSG="No bed mesh found. Starting Full Bed Mesh..."
  32. CX_PRINT_LEVELING_CALIBRATION
  33. {% endif %}
  34. {% if printer['output_pin FULL_BED_MESH'].value == 1 %}
  35. RESPOND TYPE=command MSG="Starting Full Bed Mesh..."
  36. CX_PRINT_LEVELING_CALIBRATION
  37. {% endif %}
  38. BED_MESH_PROFILE LOAD=default
  39. {% endif %}
  40. {% else %}
  41. PRINT_PREPARE_CLEAR
  42. {% endif %}
  43. {% if printer['output_pin ADAPTIVE_PURGE_LINE'].value == 1 %}
  44. _SMART_PARK
  45. M109 S{extruder_temp}
  46. M190 S{bed_temp}
  47. RESPOND TYPE=command MSG="Starting Adaptive Purge Line..."
  48. _LINE_PURGE
  49. {% else %}
  50. RESPOND TYPE=command MSG="Starting Classic Purge Line..."
  51. CX_PRINT_DRAW_ONE_LINE
  52. {% endif %}
  53. SET_VELOCITY_LIMIT ACCEL={printer.configfile.settings.printer.max_accel}
  54.  
Advertisement
Add Comment
Please, Sign In to add comment