Any code to move up Z axis after finishing the printing?

  • Is the firts time that I saw this movement after the printing has finishig and causes the nozzle crashes to the printed part and I noticed due the part is 14x8 and the nozzle is to near and below to the border of the shape. I supposed that some scripts has changed but, seems to be everything ok.

    this is the end script:

    G92 E0
    G1 E-1.5000 F1800
    ; layer end
    M104 S0 ; turn off extruder
    M140 S0 ; turn off bed
    G28 X0 ; home X axis
    M84 ; disable motors
    ; Build Summary
    ; Build time: 3 hours 9 minutes
    ; Filament length: 12689.1 mm (12.69 m)
    ; Plastic volume: 30520.78 mm^3 (30.52 cc)
    ; Plastic weight: 38.15 g (0.08 lb)

    Z axis moves down 4mm after finishing going to X0, why? I don't want the nozzle crashes the part on going to zero.

  • mac

    mac Correct answer

    5 years ago

    You can use:

    G1 Z10

    G91 make the printer use ralative positioning, while G1 Z10 would move the gantry up of 10mm, reagrdless of its actual position.

    In order to understand what's going on, you could experiment with the position of those lines in the script.

    The safest bet it to insert them at the very top, but you could insert them straight after the homing of the X axis to understand if the drop you are seeing is caused by the homing command itself or by the ´M84´ one.

    My guess is that the drop is actually caused by the latter. M84 doesn't really "disable motors", rather it stops using energy to keep them still (i.e.: it stops the idle hold). What I believe is happening in your case is that when you stop the idle hold, the weight and mechanical play of the X gantry causes it to move slightly (a bit like when you relax your body on the sofa and you "sink" in it a bit more).

    This is actually very dangerous if you print at the max Z height, you then would not have the extra 10 mm.

    Care to elaborate? The worst thing that I can think can happen is that the stepper motor will skip a few steps. Not a big deal...

    E.g. acrylic frame printers are less sturdy, steppers are powerful and do not skip, I've seen this happen on my first printer.

License under CC-BY-SA with attribution

Content dated before 7/24/2021 11:53 AM

Tags used