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

Add Z home ONLY in LCD

Discussion in 'Mods and Upgrades' started by tonycstech, Dec 14, 2014.

  1. tonycstech

    tonycstech Active Member

    Joined:
    Dec 16, 2013
    Messages:
    606
    Likes Received:
    196
    Is there a way to add feature to LCD controller to home Z axis only ?
     
  2. tonycstech

    tonycstech Active Member

    Joined:
    Dec 16, 2013
    Messages:
    606
    Likes Received:
    196
    I think i got it.
    New line that needs to be added is in BOLD RED text

    2 files need change.

    Edit language.h file
    Look for line
    #if LANGUAGE_CHOICE == 1
    This line stands for English

    #define MSG_AUTO_HOME "Auto home"
    #define MSG_AUTO_HOMEZ "Home Z Only."



    Edit ultralcd.cpp

    MENU_ITEM(gcode, MSG_AUTO_HOME, PSTR("G28"));
    //MENU_ITEM(gcode, MSG_SET_ORIGINZ, PSTR("G92 Z0"));
    MENU_ITEM(gcode, MSG_AUTO_HOMEZ, PSTR("G28 Z0"));
    //MENU_ITEM(gcode, MSG_SET_ORIGIN, PSTR("G92 X0 Y0 Z0"));


    }
    if (REPRAPWORLD_KEYPAD_MOVE_HOME) {
    reprapworld_keypad_move_home();
    if (REPRAPWORLD_KEYPAD_MOVE_HOMEZ) {
    reprapworld_keypad_move_homeZ();

    }

    }
    static void reprapworld_keypad_move_home() {
    enquecommand_P((PSTR("G28"))); // move all axis home
    static void reprapworld_keypad_move_homeZ() {
    enquecommand_P((PSTR("G28 Z0"))); // move Z axis home

    }
     

Share This Page