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

Solved Lift nozzle after G29 start code

Discussion in 'General Questions' started by xfire_dragonx, Jan 25, 2023.

  1. xfire_dragonx

    xfire_dragonx Member

    Joined:
    Jun 2, 2018
    Messages:
    83
    Likes Received:
    13
    Heyo, been a while since being here asking a question about my start code - did have my start code setup to have the nozzle lift after the G29 of my start code so that there's no dragging across the build area, Can't remember what code to use for this action.

    My start code:

    G21 ; set units to metric

    G28 X0 Y0 Z0 ; home all axis

    M565 Z-1.0 define Z offset at 1.0mm

    G1 Z5 F5000 ; lift nozzle

    G29 ; probe the bed

    thanks for the help..
     
    #1 xfire_dragonx, Jan 25, 2023
    Last edited: Jan 25, 2023
  2. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,915
    Likes Received:
    7,338
    G1 Z5 F5000 ; lift nozzle

    Lifts the nozzle 5mm
     
  3. xfire_dragonx

    xfire_dragonx Member

    Joined:
    Jun 2, 2018
    Messages:
    83
    Likes Received:
    13
    Should the G1 come after G29? Just want nozzle to lift and not drag on print bed.
     
  4. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,915
    Likes Received:
    7,338
    Yes, BUT if you do that then the leveling is off by whatever Z distance you add so before you actually commence printing GCode you need to drop the Z by that same amount.

    Better perhaps to tweak this number:

    M565 Z-1.0 define Z offset at 1.0mm
     
  5. xfire_dragonx

    xfire_dragonx Member

    Joined:
    Jun 2, 2018
    Messages:
    83
    Likes Received:
    13
    so my start code change would be this?

    G21 ; set units to metric

    G28 X0 Y0 Z0 ; home all axis

    M565 Z-1.0 define Z offset at 1.0mm

    G29 ; probe the bed

    G1 Z5 F5000 ; lift nozzle


    this time will save my code to a document lol
     
  6. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,915
    Likes Received:
    7,338
    Yes, that is a start. You then fine-tune the number in the M565 command as described in the FAQ. more or less negative in tiny increments to fine tune the offset for the perfect first layer
     

Share This Page