End_print settings

Printer Model: Anycubic Vyper

Hi im new to printing with Klipper and am having a very strange issue.
when i print a taller item the end part of the printer instruction seem to be sending the hot end smashing into the printed item and not staying away to move over and present the print. (if that makes any sense)

i have been doing some investigation and watched a much lower print, when it finished it raised the hot end up really high and moved over to present the print.

The taller item im trying to print seems to raise up above the print to start with and then just smashes down into the print like its trying to get to a certain level before moving to the side to present the print.

im assuming that this is a setting or setup of the END_PRINT setup. any advice on how to fix this would be amazing. i have destroyed three prints like this now and its getting annoying. below is the info from the setup of the printer for END_PRINT. hopefully someone can see what i have done wrong as i dont understand where its going wrong.

END_PRINT]
gcode:
# Turn off bed, extruder, and fan
M140 S0
M104 S0
M106 S0
# Move nozzle away from print while retracting
G91
G1 X-2 Y-2 E-3 F300
# Raise nozzle by 10mm
G1 Z10 F3000
G90
# move bed forward and extruder out of the way
SHOW_PRINT
# Disable steppers
M84

thanks
Rob

Hello @Swanny !

Is the a conspiracy withe the first-time-posters to delete the template right away?

Please attach the klippy.log to your next post.

And when you want to include code snippets, then please use the Preformatted Text feature of the forum editor.

Format

How much is tall (in mm)?

BTW: the provided code snippet seems not to be complete.

1 Like

Hi @EddyMI3D
sorry im not totally clued up on all this yet. i will have to work out where everything is and what i need to put on here to help people help me.

the item im trying to print that it keeps smashing into is 70mm tall. the item i printed as a test is only 15mm tall. i think its trying to get to some kind of datum before it makes its move to park but i dont understand where or how.

when i go into the programing that is that thats there for the END_PRINT section. should there be a lot more. :grimacing:

klippy.log (3.9 MB)

PRINT]
gcode:
    {% set BED_TEMP = params.BED_TEMP|default(60)|float %}
    {% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(190)|float %}
    # Start bed heating
    M140 S{BED_TEMP}
    # Use absolute coordinates
    G90 
    # Reset the G-Code Z offset (adjust Z offset if needed)
    SET_GCODE_OFFSET Z=0.0  
    # Home the printer
    G28
    # Move the nozzle near the bed
    G1 Z5 F3000
    # Move the nozzle very close to the bed
    G1 Z0.3 F300
    # Wait for bed to reach temperature
    M190 S{BED_TEMP}
    # Set and wait for nozzle to reach temperature
    M109 S{EXTRUDER_TEMP}
  # run prime line macro to prime nozzle
  PRIME_LINE
#
[gcode_macro END_PRINT]
gcode:
    # Turn off bed, extruder, and fan
    M140 S0
    M104 S0
    M106 S0
    # Move nozzle away from print while retracting
    G91
    G1 X-2 Y-2 E-3 F300
    # Raise nozzle by 10mm
    G1 Z10 F3000
    G90
    # move bed forward and extruder out of the way
    SHOW_PRINT
    # Disable steppers
    M84
#

[gcode_macro PAUSE_MACRO]
description: Pauses Print
gcode:
    PAUSE
    SET_IDLE_TIMEOUT TIMEOUT={ 30 * 60 }

[gcode_macro SHOW_PRINT]
description: Moves the extruder out of the way and bed forward
gcode:
    HOME_CHECK
    {% set Z = params.Z|default(50)|int %}
    {% set axis_max = printer.toolhead.axis_maximum %}
    {% set pos = printer.toolhead.position %}
 
    {% set z_diff = axis_max.z - pos.z %}
    {% set z_safe_lift = [ Z, z_diff ] | min%}
    G1 Z{ z_safe_lift }
    G1 X10 Y220 F4000

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.