Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [gcode_macro START_PRINT]
- variable_prepare: 0
- gcode:
- WAIT_TEMP_END
- CLEAR_PAUSE
- {% set g28_extruder_temp = printer.custom_macro.g28_ext_temp %}
- #{% set bed_temp = printer.custom_macro.default_bed_temp %}
- #{% set bed_temp = 0 %}
- #{% set extruder_temp = printer.custom_macro.default_extruder_temp %}
- #{% set extruder_temp = 180 %}
- #{% if 'BED_TEMP' in params|upper and (params.BED_TEMP|float) %}
- {% set bed_temp = params.BED_TEMP|float %}
- #{% endif %}
- #{% if 'EXTRUDER_TEMP' in params|upper and (params.EXTRUDER_TEMP|float) %}
- {% set extruder_temp = params.EXTRUDER_TEMP|float %}
- #{% endif %}
- {% if printer['gcode_macro START_PRINT'].prepare|int == 0 %}
- PRINT_PREPARE_CLEAR
- CX_ROUGH_G28 EXTRUDER_TEMP={extruder_temp} BED_TEMP={bed_temp}
- #CX_ROUGH_G28 EXTRUDER_TEMP=180 BED_TEMP=0
- CX_NOZZLE_CLEAR
- ACCURATE_G28
- {% if printer['output_pin ADAPTIVE_BED_MESH'].value == 1 %}
- RESPOND TYPE=command MSG="Starting Adaptive Bed Mesh..."
- BED_MESH_CLEAR
- BED_MESH_CALIBRATE
- BED_MESH_PROFILE SAVE=adaptive
- BED_MESH_PROFILE LOAD=adaptive
- {% else %}
- {% if printer['output_pin FULL_BED_MESH'].value == 0 and (not printer['bed_mesh'].profile_name) %}
- RESPOND TYPE=command MSG="No bed mesh found. Starting Full Bed Mesh..."
- CX_PRINT_LEVELING_CALIBRATION
- {% endif %}
- {% if printer['output_pin FULL_BED_MESH'].value == 1 %}
- RESPOND TYPE=command MSG="Starting Full Bed Mesh..."
- CX_PRINT_LEVELING_CALIBRATION
- {% endif %}
- BED_MESH_PROFILE LOAD=default
- {% endif %}
- {% else %}
- PRINT_PREPARE_CLEAR
- {% endif %}
- {% if printer['output_pin ADAPTIVE_PURGE_LINE'].value == 1 %}
- _SMART_PARK
- M109 S{extruder_temp}
- M190 S{bed_temp}
- RESPOND TYPE=command MSG="Starting Adaptive Purge Line..."
- _LINE_PURGE
- {% else %}
- RESPOND TYPE=command MSG="Starting Classic Purge Line..."
- CX_PRINT_DRAW_ONE_LINE
- {% endif %}
- SET_VELOCITY_LIMIT ACCEL={printer.configfile.settings.printer.max_accel}
Advertisement
Add Comment
Please, Sign In to add comment