Will not home to X now

  • Hi, Machine has been running fine no problems. Finished a print and found the head was at the far right of the X axis, the limit switch is on the left.
    When trying to home the X, I get an error message "Error bad command"

    Manual move via the Paneldue will move the X away from the endstop but not more than a single movement towards it.

    I replaced the micro sd card with 3 different working backups that were all previously checked and confirmed working ,but the problem still persists.
    Any help would be appreciated.
    Thank you.

  • @Rattlemycage when do you get "Error bad command"? When you home X with G28 X? Then please post the homex.g file, there should be a syntax error.

    You can call
    M98 P"homex.g"
    to check whether there is an error.

  • G1 H1 X-305
    G1 H2 X5
    G1 H1 X-305 F360
    G1 H1 X-305

  • Additionally. when trying to home from the paneldue the head is moving about 10mm each time i press it AWAY from the home position.

  • Moderator

    @Rattlemycage Check the wiring and function of the X endstop. Usually moves away from the endstop indicate that the firmware thinks it has already been triggered. Send M119 to get endstop status.

    Did you try @JoergS5 suggestion of sending M98 P"homex.g"? This would report if there were any errors with the file, but I suspect this is a wiring issue.


  • Moderator

    @Rattlemycage said in Will not home to X now:

    the head is moving about 10mm each time i press it AWAY from the home position.

    Are you sure it's not 5mm? Your homing file has a 5mm move away from the endstop to back off that ignores the endstop status. If your endstop is falsely triggered at all times, then only the 5mm backoff move will work. The other moves do nothing because they think the endstop is already triggered.

    If nothing has changed recently then either your endstop is failing or it's picking up interference.

    It may help if you post your full config and the results of M122 to give us a clearer picture of your setup.

  • Found it guys, Thank you for all your assistance. The connector had come away from the endstop. All working great again now.

Log in to reply