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

Solved Start Gcode help

Discussion in 'General Questions' started by xfire_dragonx, Jun 30, 2022.

  1. xfire_dragonx

    xfire_dragonx Member

    Joined:
    Jun 2, 2018
    Messages:
    83
    Likes Received:
    13
    I'm looking for the gcode that raises the hot end after the last g29 before printing and can't remember the dang code.

    G28
    M565
    G1 Z5 F5000 ;Lift Nozzle
    G28
    G29
    G1 Z5 (do i add this or move to here?)
     
  2. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    from the m,arlinm docs: https://marlinfw.org/docs/gcode/G000-G001.html

    G1 [E<pos>][F<rate>][X<pos>][Y<pos>][Z<pos>]

    So make the Z number larger.

    FYI doing the G28 AFTER the M565 will toss the settings that the M565 stored. Those only 'stick' until the next M565. If you want autoleveling to work you need to remove the G28 after the M565 also you need to add a Z offset to the M565 like:

    M565 Z-1.0;

    Will use 1.0 mm for the Z offset. More negative is further from the bed and less negative is closer to the bed
     

Share This Page