Could You help Me Clean Up My Start G code?



  • Hey Guys, I just set up a new duet, and Everything is working flawlessly except for one thing.

    My prime line is happening at the same Y location as My Z Homing (center of bed but Starts at X0)

    I've been reading, and I cannot figure out how to get it to prime starting at X0 Y0.

    Could you assist me in fixing this?

    Also, Is it necessary to clear any Bed Transforms and then immediately Load the mesh leveling from the SD card?

    Thanks so much!


  • Moderator

    Post what you currently have.

    Here's what my nozzle prime looks like. It gets called after homing and before the print starts.

    G90 			; Absolute positioning
    G1 X1 Y270 F6000 	; Move to rear left corner
    M400 			; clear movement buffer
    M116 			; Wait for temps
    G1 Z0.3 F100		; Move Z to prime height
    G91 			; Relative positioning
    M83 			; Relative extrusion
    G1 X40 E10 F300 	; Prime nozzle
    G10			; Retract
    G1 Y-1 X1 F10000 	; Wipe nozzle
    M400
    


  • sorry, I thought I did... Duh!

    G28 X Y
    M561 ; Clear bed transforms
    G28 Z ; Home Z
    G29S1 ; Load mesh leveling from SD card
    G28 Z ; Home ZG1 X0.0 Y0.0 Z1.0 F1000.0 ; prepare to prime
    G92 E0 ; reset extrusion distance
    G1 Z0.2 F1000.0
    G1 X60.0 E9.0 F1000.0 ; priming
    G1 X125.0 E12.5 F1000.0 ; priming
    G1 Z0.5 F1000.0
    G92 E0 ; reset extrusion distance


  • Moderator

    Why are you clearing the heightmap, homing z, loading the heightmap, and then homing z again?

    You can eliminate the second home z.

    For the z prime you need to add a g1 x y move to place the nozzle where you want the prime to be.



  • And to load mesh from SD card you have to put space between command and parameter, so G29 S1, not G29S1.



  • That did it! Thanks man!


Log in to reply