COMPLETE Custom Marlin Commands

Discussion in 'Guides, Mods, and Upgrades' started by zauberertz, May 25, 2016.

  1. zauberertz

    zauberertz Member

    Joined:
    May 10, 2016
    Messages:
    8
    Likes Received:
    3
    I wanted to share some little feature that I added to marlin firmware.
    It is the possibility to dock the extruder und retract 4mm of filament. This helped me a lot when experimenting with settings and profiles.

    //ultralcd.cpp
    static void lcd_prepare_menu() {
    ...
    //
    // Dock Extruder to waste box
    //
    MENU_ITEM(gcode, "Dock Head", PSTR("G90\nG1 X75 Y200 F3000\nG1 Y240 F2000\nG1 E-4 F4500"));


    Only the MENU_ITEM line is needed, the rest might help you to place the code properly.
     
    Mike Kelly and Stefan like this.
  2. Stefan

    Stefan Well-Known Member

    Joined:
    Feb 17, 2016
    Messages:
    323
    Likes Received:
    43
    Nice Idea
     

Share This Page