mccafferty wrote:Ahhh, I see. When you hit a limit, it just stops motion..... Then the screen override button defeats this. No need to kill power to the drives....
Thanks
That is the normal procedure. Limit switch is not an emergency condition, so you don't need to cut power. UCCNC handles the limit switch, stops the movement and waits until the limit switch is inactive again. If you hit the Limit override button it will allow you to jog away from the limit.
If you want to kill power on hitting the limit switch, perhaps it is possible to switch it on again through a separate output connected to a relay. Maybe there is a function in UCCNC to set an output when "Limit Override" button is pressed. I don't know, have a look. If that is possible then you can go ahead the way you planned, but it is more complicated without any real benefits.
In my case the stepper drivers are disabled and that cuts the power to the steppers and stops them, which is what I want to do, because I want to release the torque in case a limit switch is hit. The disadvantage is that I have to reset the zeros for all axes after this. There is a different approach, some people don't want their drivers disabled in this situation so they have a manual disable/enable switch, and the benefit of that is that the steppers decelerate and don't lose zero position. Cutting the power to the drivers is a third approach which I have not seen before.
BTW, I would not use solid state switches as limit switch. The good old simple mechanical switches are in my opinion better and safer. I also don't know what the point is of connecting each limit switch to separate inputs. All my limit switches are connected in series, and unless you have a very advanced system, using up six (or eight with four axis) inputs for limit switches is waste of five (or seven) inputs. Is it important for you to indicate which limit switch is hit? Normally you have a look at the machine and you know which way to jog out of the limit.