1. Got a question or need help troubleshooting? Post to the troubleshooting forum or Search the forums!

Answered Move y axis after print is finished

Discussion in 'Troubleshooting' started by Aflickted, Jul 6, 2017.

  1. Aflickted

    Aflickted Member

    Joined:
    Mar 25, 2016
    Messages:
    159
    Likes Received:
    21
    This is what is have in my END GCODE. I need my Y axis to move out but it moves in after the print is done. I think i need to change the G28(home) line but I'm not sure what to set it to. Would it be my max which is 248? Or do i remove Y from that line and add another line of code?

    G92 Z0
    M104 S0 ;extruder heater off
    M140 S0 ;heated bed heater off (if you have it)
    G91 ;relative positioning
    G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
    G1 Z+0.5 E-5 X-20 Y-20 F{travel_speed} ;move Z up a bit and retract filament even more
    G28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way
    M84 ;steppers off
    G90 ;absolute positioning
    ;{profile_string}
     
  2. Ryan TeGantvoort

    Ryan TeGantvoort Active Member

    Joined:
    Mar 11, 2016
    Messages:
    343
    Likes Received:
    172
    You have a G28 which is going to home the Y-Axis just like it does before a print. Now if our Y-Axis was not flipped that script would work, I think. You got kind of a mess going on in that script anyways. Perhaps you should look up the GCodes to see what they actually do. The second G1 in your script makes no sense, at least remove the X-20 and Y-20.

    Here is my Ending Script for reference, which does what you are trying to achieve:

    M117 Now You Can Touch!; LCD Message
    G91 ; set relative positioning
    G1 E-1 F300 ; retract the filament a bit before lifting the nozzle
    G1 Z10 F5000 ; lifts the nozzle off of the print 10mm
    M104 S0 ; turn off extruder
    M140 S0 ; turn off bed
    M106 S0 ; turns the fan off
    G90 ; set absolute positioning
    G1 X50 Y210 ; present the print
    M84 ; disable motors
     
  3. Aflickted

    Aflickted Member

    Joined:
    Mar 25, 2016
    Messages:
    159
    Likes Received:
    21
    I don't have an LCD screen. Does that matter? I didn't write this code. I got it from someone here. I'm just trying to learn what all this does since moving to Cura. lol
     
  4. Ryan TeGantvoort

    Ryan TeGantvoort Active Member

    Joined:
    Mar 11, 2016
    Messages:
    343
    Likes Received:
    172
    mark tomlinson likes this.
  5. Aflickted

    Aflickted Member

    Joined:
    Mar 25, 2016
    Messages:
    159
    Likes Received:
    21
    lol I've already found that cheat sheet and bookmarked it. Thank you for your help!!


    Sent from my iPhone using Tapatalk
     

Share This Page