Advertisement
rootiest

START_PRINT.cfg

Feb 19th, 2023 (edited)
752
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.67 KB | None | 0 0
  1. [gcode_macro START_PRINT]
  2. gcode:
  3.    {% set BED_TEMP = params.BED_TEMP|default(60)|float %}
  4.     {% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(190)|float %}
  5.     # Start bed heating
  6.     M140 S{BED_TEMP}
  7.     # Use absolute coordinates
  8.     G90
  9.     # Reset the G-Code Z offset (adjust Z offset if needed)
  10.     SET_GCODE_OFFSET Z=0.0
  11.     # Home the printer
  12.     G28
  13.     # Move the nozzle near the bed
  14.     G1 Z5 F3000
  15.     # Move the nozzle very close to the bed
  16.     G1 Z0.15 F300
  17.     # Wait for bed to reach temperature
  18.     M190 S{BED_TEMP}
  19.     # Load Bed Mesh
  20.     BED_MESH_PROFILE LOAD=default
  21.     # Set and wait for nozzle to reach temperature
  22.     M109 S{EXTRUDER_TEMP}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement