gnea / grbl

An open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on a straight Arduino
https://github.com/gnea/grbl/wiki
Other
4.1k stars 1.61k forks source link

Homing doesn't work but Hard Stops do #772

Open taaron17 opened 4 years ago

taaron17 commented 4 years ago

I'm trying to figure out how to get my homing sequence to work but the servos don't seem to move.

The board I'm using is a makerbase mks dlc v2.0. I have a single X axis motor and two Y axis. There are no Z axis motors being used. It's worked fine with LaserGRBL as far as just using it out of the box. The endstops I'm using are these (https://www.amazon.com/gp/product/B06XTB7WMK/). They plug directly into the endstop and the board. When I power on the board and press an endstop, the LED light on the end stop turns on.

I enabled the homing sequence, and upon pressing the home button, no servos move. Eventually it will just fault out. I have tried with both $5 = 0 and 1. I enabled the hardstops and jogged the system. When the laser hit the endstops it stopped the jog sequence immediately. So it's recognizing the end stops as endstops, but is having issues going into the homing sequence. Has anyone run into this before?

Also, I have tried also adding a third limit switch into my z axis to use as a false switch, to no avail.

langwadt commented 4 years ago

did you change the homing sequence to only do X and Y? line 105-113 in config.h

taaron17 commented 4 years ago

I've just been using the installable version of the machine. Is there a way to do this without having to compile the code yourself?

bdurbrow commented 4 years ago

No, you're going to have to re-compile Grbl to have configuration options from the .h files (config.h, cpu_map.h) take effect.

This wiki page has info on how to do that. https://github.com/gnea/grbl/wiki/Compiling-Grbl

night022 commented 4 years ago

Hello, do you have a solution for your problem?