diff --git a/printer.cfg b/printer.cfg index bc33c9f..4bbc2eb 100644 --- a/printer.cfg +++ b/printer.cfg @@ -86,8 +86,8 @@ position_min: -10 #position_max: 250 ## Uncomment for 300mm build -position_endstop: 305 -position_max: 305 +position_endstop: 300 +position_max: 300 # Uncomment for 350mm build # position_endstop: 355 @@ -425,7 +425,7 @@ timeout: 1800 ## Update -10,-10 to the XY coordinates of your endstop pin ## (such as 157,305) after going through Z Endstop Pin ## Location Definition step. -home_xy_position:209,305 +home_xy_position:209,300 speed:100 z_hop:10 @@ -577,13 +577,96 @@ gcode: [gcode_macro PRINT_START] # Use PRINT_START for the slicer starting script - please customise for your slicer of choice gcode: - start_tones - BED_MESH_CLEAR - G32 ; home all axes - BED_MESH_PROFILE LOAD=default - G90 - G0 X175 Y175 Z30 F3600 ; move nozzle away from bed - status_printing + # This part fetches data from your slicer. Such as bed, extruder, and chamber temps and size of your printer. + {% set target_bed = params.BED|int %} + {% set target_extruder = params.EXTRUDER|int %} + {% set target_chamber = params.CHAMBER|default("45")|int %} + {% set x_wait = printer.toolhead.axis_maximum.x|float / 2 %} + {% set y_wait = printer.toolhead.axis_maximum.y|float / 2 %} + + ## Uncomment for Beacon Contact (1 of 4 for beacon contact) + #SET_GCODE_OFFSET Z=0 # Set offset to 0 + + # Home the printer, set absolute positioning and update the Stealthburner LEDs. + STATUS_HOMING # Set LEDs to homing-mode + G28 # Full home (XYZ) + G90 # Absolute position + + ## Uncomment for bed mesh (1 of 2 for bed mesh) + #BED_MESH_CLEAR # Clear old saved bed mesh (if any) + + # Check if the bed temp is higher than 90c - if so then trigger a heatsoak. + #{% if params.BED|int > 90 %} + #SET_DISPLAY_TEXT MSG="Bed: {target_bed}c" # Display info on display + #STATUS_HEATING # Set LEDs to heating-mode + #M106 S255 # Turn on the PT-fan + + ## Uncomment if you have a Nevermore. + #SET_PIN PIN=nevermore VALUE=1 # Turn on the nevermore + + #G1 X{x_wait} Y{y_wait} Z15 F9000 # Go to center of the bed + #M190 S{target_bed} # Set the target temp for the bed + #SET_DISPLAY_TEXT MSG="Heatsoak: {target_chamber}c" # Display info on display + #TEMPERATURE_WAIT SENSOR="temperature_sensor chamber" MINIMUM={target_chamber} # Waits for chamber temp + + # If the bed temp is not over 90c, then skip the heatsoak and just heat up to set temp with a 5 min soak + #{% else %} + #SET_DISPLAY_TEXT MSG="Bed: {target_bed}c" # Display info on display + #STATUS_HEATING # Set LEDs to heating-mode + #G1 X{x_wait} Y{y_wait} Z15 F9000 # Go to center of the bed + #M190 S{target_bed} # Set the target temp for the bed + #SET_DISPLAY_TEXT MSG="Soak for 5 min" # Display info on display + #G4 P300000 # Wait 5 min for the bedtemp to stabilize + #{% endif %} + + # Heat hotend to 150c. This helps with getting a correct Z-home. + SET_DISPLAY_TEXT MSG="Hotend: 150c" # Display info on display + M109 S150 # Heat hotend to 150c + + ## Uncomment for Beacon contact (2 of 4 for beacon contact) + #G28 Z METHOD=CONTACT CALIBRATE=1 # Calibrate z offset and beacon model + + ## Uncomment for Trident (Z_TILT_ADJUST) + #SET_DISPLAY_TEXT MSG="Leveling" # Display info on display + #STATUS_LEVELING # Set LEDs to leveling-mode + #Z_TILT_ADJUST # Level the printer via Z_TILT_ADJUST + #G28 Z # Home Z again after Z_TILT_ADJUST + + ## Uncomment for V2.4 (Quad gantry level AKA QGL) + SET_DISPLAY_TEXT MSG="Bed: {target_bed}c" + M140 S{target_bed} + SET_DISPLAY_TEXT MSG="Leveling" # Display info on display + STATUS_LEVELING # Set LEDs to leveling-mode + QUAD_GANTRY_LEVEL # Level the printer via QGL + G28 Z # Home Z again after QGL + + ## Uncomment for bed mesh (2 of 2 for bed mesh) + #SET_DISPLAY_TEXT MSG="Bed mesh" # Display info on display + #STATUS_MESHING # Set LEDs to bed mesh-mode + #BED_MESH_CALIBRATE # Start the bed mesh (add ADAPTIVE=1) for adaptive bed mesh + + ## Uncomment for Beacon Contact (3 of 4 for beacon contact) + #G28 Z METHOD=CONTACT CALIBRATE=0 # Calibrate z offset only with hot nozzle + + # Heat up the hotend up to target via data from slicer + SET_DISPLAY_TEXT MSG="Hotend: {target_extruder}c" # Display info on display + STATUS_HEATING # Set LEDs to heating-mode + G1 X{x_wait} Y{y_wait} Z15 F9000 # Go to center of the bed + M107 # Turn off partcooling fan + M109 S{target_extruder} # Heat the hotend to set temp + + ## Uncomment for Beacon Contact (4 of 4 for beacon contact) + #SET_GCODE_OFFSET Z=0.06 # Add a little offset for hotend thermal expansion + + # Get ready to print by doing a primeline and updating the LEDs + SET_DISPLAY_TEXT MSG="Printer goes brr" # Display info on display + STATUS_PRINTING # Set LEDs to printing-mode + G0 X{x_wait - 50} Y4 F10000 # Go to starting point + G0 Z0.4 # Raise Z to 0.4 + G91 # Incremental positioning + G1 X100 E20 F1000 # Primeline + G90 # Absolute position + [gcode_macro PRINT_END] # Use PRINT_END for the slicer ending script - please customise for your slicer of choice