Are you using a fully licenced version of Mach?

If not you are limited to, I think 500 lines of code.

You can set up soft limits in Mach were you tell Mach the max travel for each axis, which will stop over travel without the need for limit switches.


andy