Thanks for feeding back, it can help others later down the line.

I don't know UGS but suggest you investigate if you can use the switches for homing, and whether you can set soft-limits