Page 1 of 1

More limit switch questions

PostPosted: Thu Feb 24, 2022 10:15 pm
by DavidR8
Hoping someone can confirm my limit switch thinking as I plan out my wiring. I have a gantry style router. Two Y axis motors, one motor each for X and Z.
The Y switches are NPNs mounted at either end of the gantry with triggers attached to the Y axis beams so it triggers at each end of the Y axis travel.
The X has a NPN at each end of the gantry and the Z has one at the top of the travel.
Reading the UCCNC manual it says that I can connect any number of limit switches to one pin.
I know that to have auto squaring I need to have put Y1 and Y2 limit switches on separate pins.
If I put X and Z on the same pin, UCCNC config would have the same pin/port combo for X and Z.
How does homing work as I don't see how UCCNC would know which of X or Z had reached the home position.

Re: More limit switch questions

PostPosted: Thu Feb 24, 2022 11:01 pm
by dezsoe
It's easy: the UCCNC homes only one axis at a time, so it will know that the moving axis reached the sensor.

Re: More limit switch questions

PostPosted: Thu Feb 24, 2022 11:14 pm
by DavidR8
That's very helpful.
I'm coming from the grblHAL world where the Z homes first then X and Y home simultaneously.

Re: More limit switch questions

PostPosted: Thu Feb 24, 2022 11:29 pm
by dezsoe
Both have pros and cons. It's faster to home more axes parallel, but then you have to have more inputs for the home sensors. If you don't have any slaved axes then with UCCNC you may have only one input for all the homes and limits.