Hi,
Steve is right if the home switch is triggering a limit event at the same time you can write code until the cows come home,
the limit event will stop Mach dead.
I personally prefer limit switches and home switches to be separate. This post is an example of why. You wish Mach to treat this
switch as a home switch at the moment and therefore to ignore it as a limit switch. The fault you describe is that Mach IS treating
it as a limit switch. If you had separate home and limit switches the problem wouldn't arise. Additionally it allows you to use
good quality microswitches for home switches, for which they are ideally suited, and proximity switches as limits, again an
ideal application for them. A proximity switch is a poor choice as a home switch, it is not sufficently repeatable.
Is there a particular reason that you have combined the limit and home functions?
Craig