Hi,
So where to control how many steps or .mm axe going back before going to precise hiting the switch?
That is not how Mach operates. When homing it will drive until the switch activates and then backup until it
deactivates. Then it resets the machine coordinate for that axis. Mach does not move a certain distance.
There are some external motion controllers that DO have that capacity, the 57CNC by PoKeys for instance,
but it is not a supported feature of Mach's parallel port driver.
The real problem is that you have a switch with too little hysteresis. Snap action microswitches are good for home switches
whereas inductive proximity switches often have problems like you have described.
Ideally you would have three separate home switches, each with its own input pin AND six limit switches, there again ideally
all on their own inputs but commonly wired all together in series. The important idea is that limit switches should NOT
do double duty. This is easily possible if you have two parallel ports or an external controller with two or more ports
as you have plenty of inputs spare.
Craig